Skip to content
Snippets Groups Projects

move outflow and pressure boundary conditions to BoundaryCondition Folder

1 unresolved thread

move outflow and pressure boundary conditions to BoundaryCondition Folder

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
179 f1_T + f1_B + f1_N + f1_S + f1_E + f1_W + ((dist.f[d000])[kzero]);
180
181 real vx1 = (((f1_TSE - f1_BNW) - (f1_TNW - f1_BSE)) + ((f1_TNE - f1_BSW) - (f1_TSW - f1_BNE)) +
182 ((f1_BE - f1_TW) + (f1_TE - f1_BW)) + ((f1_SE - f1_NW) + (f1_NE - f1_SW)) +
183 (f1_E - f1_W)) / (c1o1 + drho1);
184
185 real vx2 = ((-(f1_TSE - f1_BNW) + (f1_TNW - f1_BSE)) + ((f1_TNE - f1_BSW) - (f1_TSW - f1_BNE)) +
186 ((f1_BN - f1_TS) + (f1_TN - f1_BS)) + (-(f1_SE - f1_NW) + (f1_NE - f1_SW)) +
187 (f1_N - f1_S)) / (c1o1 + drho1);
188
189 real vx3 = (((f1_TSE - f1_BNW) + (f1_TNW - f1_BSE)) + ((f1_TNE - f1_BSW) + (f1_TSW - f1_BNE)) +
190 (-(f1_BN - f1_TS) + (f1_TN - f1_BS)) + ((f1_TE - f1_BW) - (f1_BE - f1_TW)) +
191 (f1_T - f1_B)) / (c1o1 + drho1);
192
193 real cusq = c3o2 * (vx1 * vx1 + vx2 * vx2 + vx3 * vx3);
194
  • Comment on lines +174 to +194

    We wanted to use getCompressibleMacroscopicValues() here, but we were unsure what data structure is needed for the distributions.

  • You will need a real[27] array. However, we also have more helper functions we could use here, like getPointersToDistributions. I suggest that we do changes, when we extract the BC to the lbm library.

  • Please register or sign in to reply
  • Looks good!

  • Sören Peters approved this merge request

    approved this merge request

  • mentioned in commit 5bb48810

  • mentioned in issue #137 (closed)

  • Please register or sign in to reply
    Loading