95 explicit Hot_eos(
const string&) ;
176 virtual void sauve(FILE* )
const ;
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 ;
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 ;
Equation of state base class.
Base class for 2-parameters equations of state (abstract class).
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.
const string & get_name() const
Returns the hot EOS name.
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.
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 int identify() const =0
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
virtual void del_deriv() const
Deletes all the derived quantities.
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 const Eos & new_cold_Eos() const =0
Returns the corresponding cold Eos.
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 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...
Eos * p_cold_eos
Corresponding cold Eos.
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...
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 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.
Hot_eos()
Standard constructor.
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.
static Hot_eos * hoteos_from_file(FILE *)
Construction of an EOS from a binary file.
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 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 =0
Operator >>.
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...
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...
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.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
virtual bool operator==(const Hot_eos &) const =0
Comparison operator (egality).
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...
virtual ~Hot_eos()
Destructor.
virtual bool operator!=(const Hot_eos &) const =0
Comparison operator (difference).
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 void sauve(FILE *) const
Save in a file.
friend ostream & operator<<(ostream &, const Hot_eos &)
Display.
void set_name(const char *)
Sets the hot EOS name.
double hmin
Lower boundary of the enthalpy interval.
virtual void sauve(FILE *) const
Save in a file.
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 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 ~Hoteos_tabul()
Destructor.
double sbmax
Upper boundary of the entropy interval.
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...
Hoteos_tabul(const string &filename)
Standard constructor from a filename.
virtual bool operator!=(const Hot_eos &) const
Comparison operator (difference).
void set_arrays_0x0()
Sets all the arrays to the null pointer.
void operator=(const Hoteos_tabul &)
Assignment to another Hoteos_tabul.
virtual ostream & operator>>(ostream &) const
Operator >>.
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 bool operator==(const Hot_eos &) const
Comparison operator (egality).
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...
double hmax
Upper boundary of the enthalpy interval.
virtual const Eos & new_cold_Eos() const
Returns the corresponding cold Eos.
string tablename
Name of the file containing the tabulated data.
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...
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 double temp_Hs_p(double ent, double sb) const
Computes the temperature from the log-enthalpy and entropy per baryon (virtual function implemented i...
Hoteos_tabul(const Hoteos_tabul &)
Copy constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
string authors
Authors - reference for the table.
Tbl * s_B
Table of , entropy per baryon (in units of Boltzmann constant).
void read_table()
Reads the file containing the table and initializes in the arrays hhh , s_B, ppp, ....
Tbl * ppp
Table of pressure $P$.
double sbmin
Lower boundary of the entropy interval.
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap.
double get_m_0() const
Return the individual particule mass (cf.
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...
Ideal_gas(double gamma, double kappa, double mass=1.)
Standard constructor.
virtual void sauve(FILE *) const
Save in a file.
double get_kap() const
Returns the pressure coefficient (cf. Eq. (1)).
double m_0
Individual particule mass (cf.
virtual bool operator==(const Hot_eos &) const
Comparison operator (egality).
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...
double get_gam() const
Returns the adiabatic index (cf. Eq. (1)).
virtual ostream & operator>>(ostream &) const
Operator >>.
virtual bool operator!=(const Hot_eos &) const
Comparison operator (difference).
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 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 ~Ideal_gas()
Destructor.
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...
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 int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
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...
double gam
Adiabatic index .
virtual double mul_Hs_p(double ent, const double ye) const
Computes the electronic chemical potential from the enthapy with electronic fraction (virtual functio...
void operator=(const Ideal_gas &)
Assignment to another Ideal_gas.
double kap
Pressure coefficient (cf.
Tensor field of valence 0 (or component of a tensorial field).
void set_arrays_0x0()
Sets all the arrays to the null pointer.
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 double sigma_Hs_p(double ent, const double ye) const
Computes the source terms for electronic fraction advection equation from the enthapy with electronic...
string tablename
Name of the file containing the tabulated data.
Tbl * Y_e
Table of , electronic fraction (dimensionless).
virtual double press_Hs_p(double ent, double ye) const
Computes the pressure from the log-enthalpy and electronic fraction (virtual function implemented in ...
void read_table()
Reads the file containing the table and initializes in the arrays hhh , s_B, ppp, ....
void operator=(const Ye_eos_tabul &)
Assignment to another Ye_eos_tabul.
Tbl * Sourcetbl
Table of electronic fraction source.
double yemax
Upper boundary of the electronic fraction interval.
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 int identify() const
Returns a number to identify the sub-classe of Hot_eos the object belongs to.
Tbl * c_sound2
Table of , sound speed squared (units of c^2).
Tbl * ppp
Table of pressure $P$.
virtual ostream & operator>>(ostream &) const
Operator >>.
Ye_eos_tabul(const Ye_eos_tabul &)
Copy constructor.
double hmin
Lower boundary of the enthalpy interval.
virtual bool operator!=(const Hot_eos &) const
Comparison operator (difference).
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 double ener_Hs_p(double ent, double ye) const
Computes the total energy density from the log-enthalpy and electronic fraction (virtual function imp...
double yemin
Lower boundary of the electronic fraction interval.
virtual double nbar_Hs_p(double ent, double ye) const
Computes the baryon density from the log-enthalpy and electronic fraction (virtual function implement...
Ye_eos_tabul(const string &filename)
Standard constructor from a filename.
Tbl * mu_l
Table of , the electronic chemical potential (MeV).
string authors
Authors - reference for the table.
virtual void sauve(FILE *) const
Save in a file.
double hmax
Upper boundary of the enthalpy interval.
virtual bool operator==(const Hot_eos &) const
Comparison operator (egality).
virtual const Eos & new_cold_Eos() const
Returns the corresponding cold Eos.
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...