98 explicit Hot_eos(
const string&) ;
101 explicit Hot_eos(
const char*) ;
179 virtual void sauve(FILE* )
const ;
185 virtual ostream&
operator>>(ostream &)
const = 0 ;
215 double (
Hot_eos::*fait)(
double,
double)
const,
Scalar& resu)
const ;
230 virtual double nbar_Hs_p(
double ent,
double sb)
const = 0 ;
266 virtual double ener_Hs_p(
double ent,
double sb)
const = 0 ;
301 virtual double press_Hs_p(
double ent,
double sb)
const = 0 ;
335 virtual double temp_Hs_p(
double ent,
double sb)
const = 0 ;
382 virtual double chi2_Hs_p(
double ent,
const double ye)
const = 0;
415 virtual double mul_Hs_p(
double ent,
const double ye)
const = 0;
469 virtual double sigma_Hs_p(
double ent,
const double ye)
const = 0 ;
492 ostream& operator<<(ostream& ,
const Hot_eos& ) ;
551 Ideal_gas(
double gamma,
double kappa,
double mass=1.) ;
621 virtual void sauve(FILE* )
const ;
624 virtual ostream&
operator>>(ostream &)
const ;
643 virtual double nbar_Hs_p(
double ent,
double sb)
const ;
657 virtual double ener_Hs_p(
double ent,
double sb)
const ;
671 virtual double press_Hs_p(
double ent,
double sb)
const ;
685 virtual double temp_Hs_p(
double ent,
double sb)
const ;
709 virtual double chi2_Hs_p(
double ent,
const double ye)
const ;
721 virtual double mul_Hs_p(
double ent,
const double ye)
const ;
733 virtual double sigma_Hs_p(
double ent,
const double ye)
const ;
856 virtual void sauve(FILE* )
const ;
859 virtual ostream&
operator>>(ostream &)
const ;
878 virtual double nbar_Hs_p(
double ent,
double sb)
const ;
892 virtual double ener_Hs_p(
double ent,
double sb)
const ;
906 virtual double press_Hs_p(
double ent,
double sb)
const ;
920 virtual double temp_Hs_p(
double ent,
double sb)
const ;
944 virtual double chi2_Hs_p(
double ent,
const double ye)
const ;
956 virtual double mul_Hs_p(
double ent,
const double ye)
const ;
968 virtual double sigma_Hs_p(
double ent,
const double ye)
const ;
1069 const string get_tablename()
const {
return tablename ;} ;
1084 void set_arrays_0x0() ;
1104 virtual void sauve(FILE* )
const ;
1107 virtual ostream&
operator>>(ostream &)
const ;
1127 virtual double nbar_Hs_p(
double ent,
double ye)
const ;
1143 virtual double ener_Hs_p(
double ent,
double ye)
const ;
1157 virtual double press_Hs_p(
double ent,
double ye)
const ;
1171 virtual double temp_Hs_p(
double ent,
double sb)
const ;
1197 virtual double chi2_Hs_p(
double ent,
const double ye)
const ;
1210 virtual double mul_Hs_p(
double ent,
const double ye)
const ;
1222 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)
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.
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.
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 =0
Comparison operator (difference)
Base class for 2-parameters equations of state (abstract class).
virtual ~Hoteos_tabul()
Destructor.
virtual const Eos & new_cold_Eos() const =0
Returns the corresponding cold Eos.
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.