imogenproject / gpuImogen

Codeveloped version of the Imogen code that runs on the GPU
http://imogenproject.org
5 stars 2 forks source link

Clean up implementation of pressure positivity #21

Closed ekeever1 closed 11 years ago

ekeever1 commented 11 years ago

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.

ekeever1 commented 11 years ago

Pressure positivity is enforced for the hydrodynamic flux routines. Needs to be implemented for the MHD routines.

ekeever1 commented 11 years ago

This has currently been disabled. It will need to be made more flexible because simply inserting energy to enforce positivity causes problems.