Skip to content

Commit

Permalink
body-node tweak to iblank_to_mask_vof
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn committed Oct 11, 2024
1 parent 0a93f07 commit cc3dfa9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion amr-wind/overset/overset_ops_routines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,20 @@ void iblank_to_mask_vof(
}
}
}
// Check nodes neighboring node for being near solid
bool near_solid = false;
for (int ii = i - 1; ii < i + 2; ii++) {
for (int jj = j - 1; jj < j + 2; jj++) {
for (int kk = k - 1; kk < k + 2; kk++) {
near_solid = ibarrs[nbx](ii, jj, kk) == 0
? true
: near_solid;
}
}
}
// Do mask -1 cells near interface
if (ibarrs[nbx](i, j, k) == -1 && near_interface) {
if (ibarrs[nbx](i, j, k) == -1 &&
(near_interface && !near_solid)) {
marrs[nbx](i, j, k) = 1;
}
});
Expand Down

0 comments on commit cc3dfa9

Please sign in to comment.