Specification of flow-field variables for bcnormal - s_int and s_ext #872
-
Hello! Whereas, in some cases the s_int (or) s_inter state is also declared within the body of bcnormal() function and values are specified for this s_int state I tried to infer from the description provided in the BCs page (https://amrex-combustion.github.io/PeleC/BoundaryConditions.html) but there is very little info on s_int vs s_ext The usage and relevance of these two states are very confusing, can someone please help? I just want to declare all my primitive variables for the left inlet boundary. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
PeleC is a cell-centered FVM solver that utilizes ghost cells outside of the domain to determine values at the boundary. In the code you quoted, See chapter 8 of Blazek's book Computational Fluid Dynamics: Principles and Applications for more information about the outflow conditions used in the |
Beta Was this translation helpful? Give feedback.
PeleC is a cell-centered FVM solver that utilizes ghost cells outside of the domain to determine values at the boundary.
s_int
represents the interior cell center closest to the boundary whiles_ext
is the exterior ghost cell. When using aHard
coded boundary condition, you must define the value of the ghost cell,s_ext
.In the code you quoted,
s_ext[UMX] = prob_parm.rho * prob_parm.vx_in
, is an inlet boundary condition for the x-component of momentum. This sets the ghost cell equal to the interior cell, which assumes that the inlet flow is constant from the ghost cell to the interior cell.See chapter 8 of Blazek's book Computational Fluid Dynamics: Principles and Applications for more i…