65 #include "utilitaires.h" 77 Hot_eos(
"Ideal gas EOS"), gam(gam0), kap(kappa), m_0(mass) {
86 Hot_eos(eosi), gam(eosi.gam), kap(eosi.kap), m_0(eosi.m_0)
111 fich >>
gam ; fich.ignore(80,
'\n') ;
112 fich >>
kap ; fich.ignore(80,
'\n') ;
113 fich >>
m_0 ; fich.ignore(80,
'\n') ;
192 cout <<
"The second EOS is not of type Ideal_gas !" << endl ;
201 <<
"The two Ideal_gas have different gamma : " <<
gam <<
" <-> " 208 <<
"The two Ideal_gas have different kappa : " <<
kap <<
" <-> " 215 <<
"The two Ideal_gas have different m_0 : " <<
m_0 <<
" <-> " 245 ost <<
"Hot EOS of class Ideal_gas (relativistic ideal gas) : " << endl ;
246 ost <<
" Adiabatic index gamma : " <<
gam << endl ;
247 ost <<
" Pressure coefficient kappa : " <<
kap <<
248 " rho_nuc c^2 / n_nuc^gamma" << endl ;
249 ost <<
" Mean particle mass : " <<
m_0 <<
" m_B" << endl ;
320 cerr <<
"Ideal_gas::csound_square_Hs_p : function not implemented (yet !) ..." << endl;
321 cerr <<
"Aborting ..." << endl;
328 cerr <<
"Ideal_gas::chi2_Hs_p : function not implemented (yet !) ..." << endl;
329 cerr <<
"Aborting ..." << endl;
336 cerr <<
"Ideal_gas::mul_Hs_p : function not implemented (yet !) ..." << endl;
337 cerr <<
"Aborting ..." << endl;
344 cerr <<
"Ideal_gas::sigma_Hs_p : function not implemented (yet !) ..." << endl;
345 cerr <<
"Aborting ..." << endl;
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.
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap...
virtual ~Ideal_gas()
Destructor.
Cmp exp(const Cmp &)
Exponential.
Eos * p_cold_eos
Corresponding cold Eos.
double kap
Pressure coefficient (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...
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...
Standard units of space, time and mass.
Equation of state base class.
double m_0
Individual particule mass (cf.
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 get_gam() const
Returns the adiabatic index (cf. Eq. (1)).
Ideal-gas (temperature-dependent) equation of state, with mass-term in the energy density...
virtual ostream & operator>>(ostream &) const
Operator >>
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 bool operator!=(const Hot_eos &) const
Comparison operator (difference)
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...
virtual const Eos & new_cold_Eos() const
Returns the corresponding cold Eos.
Polytropic equation of state (relativistic case).
virtual int identify() const =0
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
Computes the electronic chemical potential from the enthapy with electronic fraction (virtual functio...
int fwrite_be(const int *aa, int size, int nb, FILE *fich)
Writes integer(s) into a binary file according to the big endian convention.
Cmp pow(const Cmp &, int)
Power .
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...
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
Base class for 2-parameters equations of state (abstract class).
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.
void operator=(const Ideal_gas &)
Assignment to another Ideal_gas.
virtual bool operator==(const Hot_eos &) const
Comparison operator (egality)
double get_kap() const
Returns the pressure coefficient (cf. Eq. (1)).
Ideal_gas(double gamma, double kappa, double mass=1.)
Standard constructor.
double get_m_0() const
Return the individual particule mass (cf.