23 <<
"Density: " << input.
density <<
" g/cm^3, "
44 name(std::move(name_)) {}
57 os << std::setprecision(5) <<
"<EOSParameter (" << param.
name <<
"): " << param.
total <<
" (gas: " << param.
gas
58 <<
", radiation: " << param.
radiation <<
") "
157 << output.
energy <<
"\n\t"
Manages the composition of elements.
EOSOutput get(const EOSInput &in)
Retrieves thermodynamic properties for the given input conditions.
EOSio m_reader
The EOS I/O handler responsible for reading and storing EOS table data.
EOSFormat getFormat() const
Gets the format of the loaded EOS data.
~EOS()=default
Default destructor.
const EOSio & getReader() const
Gets a constant reference to the internal EOSio reader.
EOS(const std::string &filename, EOSFormat format=EOSFormat::HELM)
Constructs an EOS object by loading data from a file.
Handles the input/output operations for EOS tables.
@ HELM
Helmholtz EOS format.
Output from an EOS calculation.
double electronChemicalPotential
Electron chemical potential (eta_e) in cgs (erg/g).
EOSParameter entropy
Entropy output data, including total, gas, radiation, and derivatives.
double neutronExcessFraction
Neutron excess fraction (xnefer), dimensionless.
double chiTemperature()
Calculates the temperature susceptibility (chi_T).
double gamma3()
Calculates the third adiabatic index (Gamma3).
double gamma2()
Calculates the second adiabatic index (Gamma2).
double chiRho()
Calculates the density susceptibility (chi_rho).
double electronFraction
Electron fraction (ye), dimensionless.
double soundSpeed()
Calculates the adiabatic sound speed.
EOSParameter pressure
Pressure output data, including total, gas, radiation, and derivatives.
double specificHeatCapacityAtConstantPressure()
Calculates the specific heat capacity at constant pressure (c_p).
EOSParameter energy
Internal energy output data, including total, gas, radiation, and derivatives.
double specificHeatCapacityAtConstantVolume()
Calculates the specific heat capacity at constant volume (c_v).
friend std::ostream & operator<<(std::ostream &os, const EOSOutput &output)
double gamma1()
Calculates the first adiabatic index (Gamma1).
double adiabaticGradient()
Calculates the adiabatic temperature gradient (nabla_ad).
Represents a thermodynamic parameter and its derivatives.
double dMeanAtomicNumber
Derivative of the total parameter with respect to mean atomic number (Zbar) (cgs units / dimensionles...
double total
Total value of the parameter (gas + radiation) (cgs).
double radiation
Radiation contribution to the parameter (cgs).
std::string name
Name of the parameter (e.g., "Pressure", "Energy", "Entropy").
double dDensity
Derivative of the total parameter with respect to density (cgs units / (g/cm^3)).
friend std::ostream & operator<<(std::ostream &os, const EOSParameter ¶m)
double dTemperature
Derivative of the total parameter with respect to temperature (cgs units / K).
EOSParameter(std::string name_)
double gas
Gas contribution to the parameter (cgs).
double dMeanAtomicMassNumber
Derivative of the total parameter with respect to mean atomic mass number (Abar) (cgs units / (g/mol)...