MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
Modules | Functions/Subroutines
mod_eos.t File Reference

Go to the source code of this file.

Modules

module  mod_eos
 Equation of state for AMRVAC, handled through a single eos_container object.
 

Functions/Subroutines

subroutine, public mod_eos::eos_init ()
 Phase 'create' (before units are known): allocate the EoS object, read its &eos_list parameters, and load the raw tables for the chosen method. The getters wired here must be live before (m)hd_link_eos runs.
 
subroutine, public mod_eos::eos_finalise ()
 Phase 'commit' (after units are known): finalise the dispatch for the loaded physics – wire the method's runtime pointers and finalise its tables. The cross-module wiring that follows (into the ghost-cell update and the physics source terms) is done by the caller in amrvac.t, so the EoS never reaches back into those modules. Finalise the EoS once units are set: dispatch on eos_type to the per-type finaliser (each owns its pointer wiring + backend table loading, living in mod_eos_FI / mod_eos_LTE / mod_eos_PI), then wire the shared total-energy temperature getter. Called from amrvac.t after phys init.
 
subroutine, public mod_eos::prepare_eos_w_fields ()