|
SpECTRE
v2026.04.01
|
Nuclear matter equation of state in tabulated form. More...
#include <Tabulated3d.hpp>
Classes | |
| struct | TableFilename |
| struct | TableSubFilename |
Public Types | |
| enum | : size_t { Epsilon = 0 , Pressure , CsSquared , DeltaMu , NumberOfVars } |
| Fields stored in the table. | |
| using | options = tmpl::list<TableFilename, TableSubFilename> |
Public Member Functions | |
| Tabulated3D (const Tabulated3D &)=default | |
| Tabulated3D & | operator= (const Tabulated3D &)=default |
| Tabulated3D (Tabulated3D &&)=default | |
| Tabulated3D & | operator= (Tabulated3D &&)=default |
| Tabulated3D (const std::string &filename, const std::string &subfilename) | |
| Tabulated3D (std::vector< double > electron_fraction, std::vector< double > log_density, std::vector< double > log_temperature, std::vector< double > table_data, double energy_shift, double enthalpy_minimum) | |
| Tabulated3D (const h5::EosTable &spectre_eos) | |
| template<class DataType> | |
| void | convert_to_table_quantities (const gsl::not_null< Scalar< DataType > * > converted_electron_fraction, const gsl::not_null< Scalar< DataType > * > log_rest_mass_density, const gsl::not_null< Scalar< DataType > * > log_temperature, const Scalar< DataType > &electron_fraction, const Scalar< DataType > &rest_mass_density, const Scalar< DataType > &temperature) const |
| std::unique_ptr< EquationOfState< IsRelativistic, 3 > > | get_clone () const override |
| void | initialize (std::vector< double > electron_fraction, std::vector< double > log_density, std::vector< double > log_temperature, std::vector< double > table_data, double energy_shift, double enthalpy_minimum) |
| void | initialize (const h5::EosTable &spectre_eos) |
| bool | is_equal (const EquationOfState< IsRelativistic, 3 > &rhs) const override |
| bool | is_barotropic () const override |
| Returns true if the EOS is barotropic. | |
| bool | is_equilibrium () const override |
| Returns true if the EOS is in beta-equilibrium. | |
| bool | operator== (const Tabulated3D< IsRelativistic > &rhs) const |
| bool | operator!= (const Tabulated3D< IsRelativistic > &rhs) const |
| template<class DataType> | |
| Scalar< DataType > | equilibrium_electron_fraction_from_density_temperature_impl (const Scalar< DataType > &rest_mass_density, const Scalar< DataType > &temperature) const |
| template<typename DataType> | |
| void | enforce_physicality (Scalar< DataType > &electron_fraction, Scalar< DataType > &density, Scalar< DataType > &temperature) const |
| WRAPPED_PUPable_decl_base_template (SINGLE_ARG(EquationOfState< IsRelativistic, 3 >), Tabulated3D) | |
| double | electron_fraction_lower_bound () const override |
| The lower bound of the electron fraction that is valid for this EOS. | |
| double | electron_fraction_upper_bound () const override |
| The upper bound of the electron fraction that is valid for this EOS. | |
| double | rest_mass_density_lower_bound () const override |
| The lower bound of the rest mass density that is valid for this EOS. | |
| double | rest_mass_density_upper_bound () const override |
| The upper bound of the rest mass density that is valid for this EOS. | |
| double | temperature_lower_bound () const override |
| The lower bound of the temperature that is valid for this EOS. | |
| double | temperature_upper_bound () const override |
| The upper bound of the temperature that is valid for this EOS. | |
| double | specific_internal_energy_lower_bound (const double rest_mass_density, const double electron_fraction) const override |
| The lower bound of the specific internal energy that is valid for this EOS at the given rest mass density \(\rho\) and electron fraction \(Y_e\). | |
| double | specific_internal_energy_upper_bound (const double rest_mass_density, const double electron_fraction) const override |
| The upper bound of the specific internal energy that is valid for this EOS at the given rest mass density \(\rho\). | |
| double | specific_enthalpy_lower_bound () const override |
| The lower bound of the specific enthalpy that is valid for this EOS. | |
| double | baryon_mass () const override |
| The baryon mass for this EoS. | |
| Scalar< double > | equilibrium_electron_fraction_from_density_temperature (const Scalar< double > &rest_mass_density, const Scalar< double > &temperature) const override |
| Scalar< DataVector > | equilibrium_electron_fraction_from_density_temperature (const Scalar< DataVector > &rest_mass_density, const Scalar< DataVector > &temperature) const override |
Static Public Attributes | |
| static constexpr size_t | thermodynamic_dim = 3 |
| static constexpr bool | is_relativistic = IsRelativistic |
| static constexpr Options::String | help |
Nuclear matter equation of state in tabulated form.
The equation of state takes the form
\[p = p (T, rho, Y_e) \]
where \(\rho\) is the rest mass density, \(T\) is the temperature, and \(Y_e\) is the electron fraction. The temperature is given in units of MeV.
|
inlineoverride |
Computes the electron fraction in beta-equilibrium \(Y_e^{\rm eq}\) from the rest mass density \(\rho\) and the temperature \(T\).
|
inlineoverride |
Computes the electron fraction in beta-equilibrium \(Y_e^{\rm eq}\) from the rest mass density \(\rho\) and the temperature \(T\).
|
staticconstexpr |