100 set_name(
"Newtonian polytropic EOS") ;
152 cout <<
"The second EOS is not of type Eos_poly_newt !" << endl ;
161 <<
"The two Eos_poly_newt have different gamma : " <<
gam <<
" <-> " 168 <<
"The two Eos_poly_newt have different kappa : " <<
kap <<
" <-> " 175 <<
"The two Eos_poly_newt have different m_0 : " <<
m_0 <<
" <-> " 205 ost <<
"EOS of class Eos_poly_newt (Newtonian polytrope) : " << endl ;
206 ost <<
" Adiabatic index gamma : " <<
gam << endl ;
207 ost <<
" Pressure coefficient kappa : " <<
kap <<
208 " rho_nuc c^2 / n_nuc^gamma" << endl ;
224 if ( ent >
double(0) ) {
238 if ( ent >
double(0) ) {
256 if ( ent >
double(0) ) {
273 return double(1) /
gam1 ;
282 if ( ent >
double(0) ) {
293 return (
double(1) + pp / ee) /
gam1 ;
297 return double(1) /
gam1 ;
virtual ostream & operator>>(ostream &) const
Operator >>
virtual bool operator==(const Eos &) const
Comparison operator (egality)
Cmp exp(const Cmp &)
Exponential.
void operator=(const Eos_poly_newt &)
Assignment to another Eos_poly_newt.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the specific enthalpy.
Equation of state base class.
virtual int identify() const =0
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual double der_ener_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
double kap
Pressure coefficient (cf.
virtual bool operator!=(const Eos &) const
Comparison operator (difference)
double m_0
Individual particule mass (cf.
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap...
Polytropic equation of state (relativistic case).
virtual void sauve(FILE *) const
Save in a file.
Cmp pow(const Cmp &, int)
Power .
virtual double der_nbar_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
Polytropic equation of state (Newtonian case).
double gam
Adiabatic index (cf. Eq. (3))
void set_name(const char *name_i)
Sets the EOS name.
virtual double der_press_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
virtual ~Eos_poly_newt()
Destructor.
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the specific enthalpy.
virtual double nbar_ent_p(double ent, const Param *par=0x0) const
Computes the baryon density from the specific enthalpy.
Eos_poly_newt(double gamma, double kappa)
Standard constructor.
virtual void sauve(FILE *) const
Save in a file.