95 explicit Hot_eos(
const string&) ;
176 virtual void sauve(FILE* )
const ;
182 virtual ostream&
operator>>(ostream &)
const = 0 ;
212 double (
Hot_eos::*fait)(
double,
double)
const,
Scalar& resu)
const ;
227 virtual double nbar_Hs_p(
double ent,
double sb)
const = 0 ;
263 virtual double ener_Hs_p(
double ent,
double sb)
const = 0 ;
298 virtual double press_Hs_p(
double ent,
double sb)
const = 0 ;
332 virtual double temp_Hs_p(
double ent,
double sb)
const = 0 ;
379 virtual double chi2_Hs_p(
double ent,
const double ye)
const = 0;
412 virtual double mul_Hs_p(
double ent,
const double ye)
const = 0;
466 virtual double sigma_Hs_p(
double ent,
const double ye)
const = 0 ;
489 ostream& operator<<(ostream& ,
const Hot_eos& ) ;
548 Ideal_gas(
double gamma,
double kappa,
double mass=1.) ;
618 virtual void sauve(FILE* )
const ;
621 virtual ostream&
operator>>(ostream &)
const ;
640 virtual double nbar_Hs_p(
double ent,
double sb)
const ;
654 virtual double ener_Hs_p(
double ent,
double sb)
const ;
668 virtual double press_Hs_p(
double ent,
double sb)
const ;
682 virtual double temp_Hs_p(
double ent,
double sb)
const ;
706 virtual double chi2_Hs_p(
double ent,
const double ye)
const ;
718 virtual double mul_Hs_p(
double ent,
const double ye)
const ;
730 virtual double sigma_Hs_p(
double ent,
const double ye)
const ;
853 virtual void sauve(FILE* )
const ;
856 virtual ostream&
operator>>(ostream &)
const ;
875 virtual double nbar_Hs_p(
double ent,
double sb)
const ;
889 virtual double ener_Hs_p(
double ent,
double sb)
const ;
903 virtual double press_Hs_p(
double ent,
double sb)
const ;
917 virtual double temp_Hs_p(
double ent,
double sb)
const ;
941 virtual double chi2_Hs_p(
double ent,
const double ye)
const ;
953 virtual double mul_Hs_p(
double ent,
const double ye)
const ;
965 virtual double sigma_Hs_p(
double ent,
const double ye)
const ;
1063 const string get_tablename()
const {
return tablename ;} ;
1098 virtual void sauve(FILE* )
const ;
1101 virtual ostream&
operator>>(ostream &)
const ;
1121 virtual double nbar_Hs_p(
double ent,
double ye)
const ;
1137 virtual double ener_Hs_p(
double ent,
double ye)
const ;
1151 virtual double press_Hs_p(
double ent,
double ye)
const ;
1165 virtual double temp_Hs_p(
double ent,
double sb)
const ;
1191 virtual double chi2_Hs_p(
double ent,
const double ye)
const ;
1204 virtual double mul_Hs_p(
double ent,
const double ye)
const ;
1216 virtual double sigma_Hs_p(
double ent,
const double ye)
const ;
virtual double sigma_Hs_p(double ent, const double ye) const
Computes the source terms for electronic fraction advection equation from the enthapy with electronic...
virtual void sauve(FILE *) const
Save in a file.
virtual double press_Hs_p(double ent, double sb) const =0
Computes the pressure from the log-enthalpy and entropy per baryon (virtual function implemented in t...
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap...
string authors
Authors - reference for the table.
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
virtual double chi2_Hs_p(double ent, const double ye) const
Computes the chi^2 coefficient from the enthapy with electronic fraction (virtual function implemente...
virtual ~Ideal_gas()
Destructor.
Eos * p_cold_eos
Corresponding cold Eos.
Tbl * mu_l
Table of , the electronic chemical potential (MeV)
void set_arrays_0x0()
Sets all the arrays to the null pointer.
virtual double chi2_Hs_p(double ent, const double ye) const
Computes the chi^2 coefficient from the enthapy with electronic fraction (virtual function implemente...
double kap
Pressure coefficient (cf.
virtual double nbar_Hs_p(double ent, double sb) const =0
Computes the baryon density from the log-enthalpy and electronic fraction (virtual function implement...
virtual double sigma_Hs_p(double ent, const double ye) const
Computes the source terms for electronic fraction advection equation from the enthapy with electronic...
virtual double nbar_Hs_p(double ent, double sb) const
Computes the baryon density from the log-enthalpy and entropy per baryon (virtual function implemente...
virtual double temp_Hs_p(double ent, double sb) const =0
Computes the temperature from the log-enthalpy and entropy per baryon (virtual function implemented i...
virtual double temp_Hs_p(double ent, double sb) const
Computes the temperature from the log-enthalpy and entropy per baryon (virtual function implemented i...
const string & get_name() const
Returns the hot EOS name.
Equation of state base class.
double m_0
Individual particule mass (cf.
Tensor field of valence 0 (or component of a tensorial field).
Scalar chi2_Hs(const Scalar &ent, const Scalar &Ye, int nzet, int l_min=0) const
Computes the chi^2 coefficient from the enthalpy with ye.
virtual ostream & operator>>(ostream &) const
Operator >>
virtual double csound_square_Hs_p(double ent, const double ye) const
Computes the sound speed squared from the enthapy with electronic fraction (virtual function impleme...
Hoteos_tabul(const string &filename)
Standard constructor from a filename.
double get_gam() const
Returns the adiabatic index (cf. Eq. (1)).
virtual double press_Hs_p(double ent, double sb) const
Computes the pressure from the log-enthalpy and entropy per baryon (virtual function implemented in t...
Ideal-gas (temperature-dependent) equation of state, with mass-term in the energy density...
string tablename
Name of the file containing the tabulated data.
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
virtual double mul_Hs_p(double ent, const double ye) const =0
Computes the electronic chemical potential from the enthapy with electronic fraction (virtual functio...
virtual ostream & operator>>(ostream &) const
Operator >>
virtual bool operator==(const Hot_eos &) const
Comparison operator (egality)
virtual double sigma_Hs_p(double ent, const double ye) const =0
Computes the source terms for electronic fraction advection equation from the enthapy with electronic...
Hot (temperature-dependent) tabulated equation of state, read from a file.
Scalar press_Hs(const Scalar &ent, const Scalar &sb, int nzet, int l_min=0) const
Computes the pressure from the log-enthalpy and entropy per baryon.
Scalar temp_Hs(const Scalar &ent, const Scalar &sb, int nzet, int l_min=0) const
Computes the temperature field from the log-enthalpy field and entropy per baryon.
virtual double chi2_Hs_p(double ent, const double ye) const
Computes the chi^2 coefficient from the enthapy with electronic fraction (virtual function implemente...
Scalar ener_Hs(const Scalar &ent, const Scalar &sb, int nzet, int l_min=0) const
Computes the total energy density from the log-enthalpy and entropy per baryon.
void set_name(const char *)
Sets the hot EOS name.
virtual double ener_Hs_p(double ent, double sb) const =0
Computes the total energy density from the log-enthalpy and entropy per baryon (virtual function impl...
virtual double nbar_Hs_p(double ent, double ye) const
Computes the baryon density from the log-enthalpy and electronic fraction (virtual function implement...
virtual bool operator!=(const Hot_eos &) const
Comparison operator (difference)
Tbl * s_B
Table of , entropy per baryon (in units of Boltzmann constant).
double hmax
Upper boundary of the enthalpy interval.
virtual double mul_Hs_p(double ent, const double ye) const
Computes the electronic chemical potential from the enthapy with electronic fraction (virtual functio...
double gam
Adiabatic index .
virtual double ener_Hs_p(double ent, double sb) const
Computes the total energy density from the log-enthalpy and entropy per baryon (virtual function impl...
string authors
Authors - reference for the table.
friend ostream & operator<<(ostream &, const Hot_eos &)
Display.
double hmin
Lower boundary of the enthalpy interval.
Tbl * c_sound2
Table of , sound speed squared (units of c^2).
Scalar csound_square_Hs(const Scalar &ent, const Scalar &Y_e, int nzet, int l_min=0) const
Computes the sound speed squared from the enthalpy with ye.
virtual ~Hot_eos()
Destructor.
void operator=(const Ye_eos_tabul &)
Assignment to another Ye_eos_tabul.
Ye_eos_tabul(const string &filename)
Standard constructor from a filename.
string tablename
Name of the file containing the tabulated data.
virtual ostream & operator>>(ostream &) const =0
Operator >>
Tbl * Y_e
Table of , electronic fraction (dimensionless).
Out of beta-equilibrium tabulated equation of state, read from a file.
void set_arrays_0x0()
Sets all the arrays to the null pointer.
void read_table()
Reads the file containing the table and initializes in the arrays hhh , s_B, ppp, ...
virtual const Eos & new_cold_Eos() const
Returns the corresponding cold Eos.
virtual double csound_square_Hs_p(double ent, const double ye) const
Computes the sound speed squared from the enthapy with electronic fraction (virtual function impleme...
virtual int identify() const =0
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
Scalar sigma_Hs(const Scalar &ent, const Scalar &Y_e, int nzet, int l_min=0) const
Computes the source terms for electronic fraction advection equation from the enthalpy with ye...
virtual double mul_Hs_p(double ent, const double ye) const
Computes the electronic chemical potential from the enthapy with electronic fraction (virtual functio...
Scalar mul_Hs(const Scalar &ent, const Scalar &Ye, int nzet, int l_min=0) const
Computes the electronic chemical potential from the enthalpy with ye.
virtual double csound_square_Hs_p(double ent, const double ye) const
Computes the sound speed squared from the enthapy with electronic fraction (virtual function impleme...
Scalar nbar_Hs(const Scalar &ent, const Scalar &sb, int nzet, int l_min=0) const
Computes the baryon density field from the log-enthalpy field and entropy per baryon.
virtual void sauve(FILE *) const
Save in a file.
void calcule(const Scalar &thermo1, const Scalar &thermo2, int nzet, int l_min, double(Hot_eos::*fait)(double, double) const, Scalar &resu) const
General computational method for Scalar 's.
virtual double csound_square_Hs_p(double ent, const double ye) const =0
Computes the sound speed squared from the enthapy with electronic fraction (virtual function impleme...
virtual double ener_Hs_p(double ent, double ye) const
Computes the total energy density from the log-enthalpy and electronic fraction (virtual function imp...
Hot_eos()
Standard constructor.
virtual ~Ye_eos_tabul()
Destructor.
virtual double temp_Hs_p(double ent, double sb) const
Computes the temperature from the log-enthalpy and entropy per baryon (virtual function implemented i...
virtual const Eos & new_cold_Eos() const
Returns the corresponding cold Eos.
virtual void sauve(FILE *) const
Save in a file.
double yemax
Upper boundary of the electronic fraction interval.
virtual void del_deriv() const
Deletes all the derived quantities.
Tbl * Sourcetbl
Table of electronic fraction source.
virtual double press_Hs_p(double ent, double sb) const
Computes the pressure from the log-enthalpy and entropy per baryon (virtual function implemented in t...
virtual bool operator!=(const Hot_eos &) const
Comparison operator (difference)
virtual bool operator!=(const Hot_eos &) const =0
Comparison operator (difference)
Base class for 2-parameters equations of state (abstract class).
virtual bool operator==(const Hot_eos &) const
Comparison operator (egality)
virtual ~Hoteos_tabul()
Destructor.
virtual const Eos & new_cold_Eos() const =0
Returns the corresponding cold Eos.
Tbl * ppp
Table of pressure $P$.
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
virtual void sauve(FILE *) const
Save in a file.
static Hot_eos * hoteos_from_file(FILE *)
Construction of an EOS from a binary file.
void read_table()
Reads the file containing the table and initializes in the arrays hhh , s_B, ppp, ...
void operator=(const Hoteos_tabul &)
Assignment to another Hoteos_tabul.
virtual bool operator==(const Hot_eos &) const =0
Comparison operator (egality)
virtual double sigma_Hs_p(double ent, const double ye) const
Computes the source terms for electronic fraction advection equation from the enthapy with electronic...
virtual const Eos & new_cold_Eos() const
Returns the corresponding cold Eos.
void operator=(const Ideal_gas &)
Assignment to another Ideal_gas.
double hmax
Upper boundary of the enthalpy interval.
virtual double temp_Hs_p(double ent, double sb) const
Computes the temperature from the log-enthalpy and entropy per baryon (virtual function implemented i...
virtual double chi2_Hs_p(double ent, const double ye) const =0
Computes the chi^2 coefficient from the enthapy with electronic fraction (virtual function implemente...
Tbl * ppp
Table of pressure $P$.
virtual ostream & operator>>(ostream &) const
Operator >>
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
double sbmax
Upper boundary of the entropy interval.
virtual double press_Hs_p(double ent, double ye) const
Computes the pressure from the log-enthalpy and electronic fraction (virtual function implemented in ...
virtual bool operator!=(const Hot_eos &) const
Comparison operator (difference)
double yemin
Lower boundary of the electronic fraction interval.
virtual double mul_Hs_p(double ent, const double ye) const
Computes the electronic chemical potential from the enthapy with electronic fraction (virtual functio...
virtual bool operator==(const Hot_eos &) const
Comparison operator (egality)
virtual double nbar_Hs_p(double ent, double sb) const
Computes the baryon density from the log-enthalpy and entropy per baryon (virtual function implemente...
double get_kap() const
Returns the pressure coefficient (cf. Eq. (1)).
double hmin
Lower boundary of the enthalpy interval.
double sbmin
Lower boundary of the entropy interval.
Ideal_gas(double gamma, double kappa, double mass=1.)
Standard constructor.
virtual double ener_Hs_p(double ent, double sb) const
Computes the total energy density from the log-enthalpy and entropy per baryon (virtual function impl...
double get_m_0() const
Return the individual particule mass (cf.