MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
Data Types | Variables
mod_eos_container Module Reference

EoS state container – the single thermodynamic authority for AMRVAC. More...

Data Types

type  eos_container
 
type  eos_table_container
 

Variables

integer, parameter, public eos_state = 1
 LTE method selector, decoded once from eosmethod into eosmethod_id so the runtime kernels dispatch on an integer rather than a string compare.
 
integer, parameter, public eos_analytic = 2
 
integer, parameter, public eos_entropy = 3
 
integer, parameter, public eos_type_fi = 1
 EoS-type selector, decoded once from eoseos_type into eostype_id. Used by the mode-specific kernels to mpistop if called under the wrong eos_type (e.g. an LTE table kernel invoked while running FI or PI).
 
integer, parameter, public eos_type_lte = 2
 
integer, parameter, public eos_type_pi = 3
 
type(eos_container), allocatable, public eos
 The single EoS state object, allocated in eos_init and shared (read-mostly) across all EoS sub-modules and the physics layer.
 
integer, public iw_log_nh = -1
 wextra index for the cached log10(nH) used during STS substeps (-1 = not allocated). Set by the physics module that owns the wextra slot.
 

Detailed Description

EoS state container – the single thermodynamic authority for AMRVAC.

Defines the eos_container derived type: its scalar fields (gamma, He_abundance, eos_type, method_id, ionE, the unit-normalisation factors) and its procedure-pointer slots – to_conserved/to_primitive, p_to_e, get_thermal_pressure, get_csound2, get_Rfactor, get_temperature_from_{eint, etot,pressure}, get_Te, get_ne_nH, get_rho/get_nH, update_eos – which ARE the EoS public API the physics modules call. Also defines eos_table_container (one lookup table + its axes/guards) and the global eos instance plus the cached-log10(nH) wextra index iw_log_nH.

Pure declarations – no logic. The routines bound to these pointers live in the EoS sub-modules (mod_eos*) and the physics seams (mod_(m)hd_eos).

Variable Documentation

◆ eos

type(eos_container), allocatable, public mod_eos_container::eos

The single EoS state object, allocated in eos_init and shared (read-mostly) across all EoS sub-modules and the physics layer.

Definition at line 235 of file mod_eos_container.t.

◆ eos_analytic

integer, parameter, public mod_eos_container::eos_analytic = 2

Definition at line 25 of file mod_eos_container.t.

◆ eos_entropy

integer, parameter, public mod_eos_container::eos_entropy = 3

Definition at line 25 of file mod_eos_container.t.

◆ eos_state

integer, parameter, public mod_eos_container::eos_state = 1

LTE method selector, decoded once from eosmethod into eosmethod_id so the runtime kernels dispatch on an integer rather than a string compare.

Definition at line 25 of file mod_eos_container.t.

◆ eos_type_fi

integer, parameter, public mod_eos_container::eos_type_fi = 1

EoS-type selector, decoded once from eoseos_type into eostype_id. Used by the mode-specific kernels to mpistop if called under the wrong eos_type (e.g. an LTE table kernel invoked while running FI or PI).

Definition at line 30 of file mod_eos_container.t.

◆ eos_type_lte

integer, parameter, public mod_eos_container::eos_type_lte = 2

Definition at line 30 of file mod_eos_container.t.

◆ eos_type_pi

integer, parameter, public mod_eos_container::eos_type_pi = 3

Definition at line 30 of file mod_eos_container.t.

◆ iw_log_nh

integer, public mod_eos_container::iw_log_nh = -1

wextra index for the cached log10(nH) used during STS substeps (-1 = not allocated). Set by the physics module that owns the wextra slot.

Definition at line 239 of file mod_eos_container.t.