Main class for accessing Equation of State data.
This class provides an interface to an underlying EOS table (e.g., Helmholtz EOS). It handles loading the EOS data and provides a method to retrieve thermodynamic properties for given physical conditions.
- Examples
- /Users/tboudreaux/Programming/SERiF/src/eos/public/EOS.h.
Definition at line 216 of file EOS.h.
Retrieves thermodynamic properties for the given input conditions.
- Parameters
-
in | An EOSInput struct containing the density, temperature, and composition. |
- Returns
- An EOSOutput struct containing the calculated thermodynamic properties.
- Exceptions
-
std::runtime_error | If the underlying EOS calculation fails (e.g., out of table bounds for Helmholtz). |
This method queries the loaded EOS table (e.g., Helmholtz) using the provided density, temperature, and composition (mean atomic mass Abar, mean atomic number Zbar). It populates and returns an EOSOutput struct with various thermodynamic quantities such as pressure, energy, entropy, their derivatives, electron fraction, etc.
- Examples
- /Users/tboudreaux/Programming/SERiF/src/eos/public/EOS.h.
Definition at line 10 of file EOS.cpp.