Boundary Conditions/Sourcing with Adiabatic Equation of State #527
-
When an adiabatic equation of state is used (without magnetic fields), do the boundary conditions need to set ALL primitive variables (rho, v, P), or just rho and v (as in the isothermal case)? Similarly, when constructing the initial domain, does the cell energy also need to be specified (instead of just rho, M as in isothermal)? When custom source terms are included, am I correct in saying that any source terms which update momenta should NOT update the cell energies (cons(IEN) values), due to the barotropic equation of state? Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 probably not intended. |
Beta Was this translation helpful? Give feedback.
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…