Skip to content

Specification of flow-field variables for bcnormal - s_int and s_ext #872

Answered by dmontgomeryNREL
SRkumar97 asked this question in Q&A
Discussion options

You must be logged in to vote

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 while s_ext is the exterior ghost cell. When using a Hard 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…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SRkumar97
Comment options

@SRkumar97
Comment options

@himcraft
Comment options

@SRkumar97
Comment options

Answer selected by SRkumar97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants