Skip to content

Boundary Conditions/Sourcing with Adiabatic Equation of State #527

Answered by c-white
hwhitehead asked this question in Q&A
Discussion options

You must be logged in to vote

If using a non-barotropic (e.g. adiabatic) equation of state, the gas has 5 degrees of freedom, and so all 5 must be set whenever any are. This includes pressure in boundary conditions, total energy density in initial conditions, and changes to total energy density in source terms.

For the source term, if you update momentum, you affect the implied velocity. This in turn changes the implied kinetic energy density. If this is not taken into account by modifying the total energy density, the code will subtract the new kinetic energy density from the old total energy density and infer the wrong internal energy density. That is, ignoring energy leads to spurious heating or cooling that is pro…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@hwhitehead
Comment options

@c-white
Comment options

@hwhitehead
Comment options

@c-white
Comment options

@hwhitehead
Comment options

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