Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shkodm committed May 27, 2024
1 parent e20e665 commit fe4f08b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion models/multiphase/d3q27_pf_velocity/Boundary.c.Rt
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,12 @@ CudaDeviceFunction real_t Init_real_wallNorm()
// find in which direction to do reflection
// mirror in the beginning, in case of non-periodic boundaries,
// so we don't accidentally take the value from the other phase
/// Can keep if the setting set to true
// ===========================================================
// NOTE: Works only in X direction. To use pressure/velocity
// bondaries in other directions need to mark the boundaries
// with symmetry market, otherwise wall gradients might point
// to the other side. (I.e. SymmetryX_plus at the same location
// as EPressure, etc)
int nx = constContainer.nx;
for (i=-1;i<2;i++){for (j=-1;j<2;j++){for (k=-1;k<2;k++){
if (InvasionDrainage && (i == -1) && (X == 0.5)) {
Expand Down

0 comments on commit fe4f08b

Please sign in to comment.