Closed ekeever1 closed 11 years ago
Pressure positivity is enforced for the hydrodynamic flux routines. Needs to be implemented for the MHD routines.
This has currently been disabled. It will need to be made more flexible because simply inserting energy to enforce positivity causes problems.
Negative calculated pressure will manifest in high Mach (and in magnetic simulations, low-beta) situations where internal energy fails to contribute significantly to E, and is Bad with a capital B for all kinds of reasons.
Imogen's hydrodynamic pressure calculator in freezeAndPtot.cu currently implements a minimum pressure test & imposition, due to the fact that truncation error means that Imogen does not preserve the positivity of pressure.