29char eos_poly_newt_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Eos/eos_poly_newt.C,v 1.5 2014/10/13 08:52:53 j_novak Exp $" ;
97 set_name(
"Newtonian polytropic EOS") ;
149 cout <<
"The second EOS is not of type Eos_poly_newt !" << endl ;
158 <<
"The two Eos_poly_newt have different gamma : " <<
gam <<
" <-> "
165 <<
"The two Eos_poly_newt have different kappa : " <<
kap <<
" <-> "
172 <<
"The two Eos_poly_newt have different m_0 : " <<
m_0 <<
" <-> "
202 ost <<
"EOS of class Eos_poly_newt (Newtonian polytrope) : " << endl ;
203 ost <<
" Adiabatic index gamma : " <<
gam << endl ;
204 ost <<
" Pressure coefficient kappa : " <<
kap <<
205 " rho_nuc c^2 / n_nuc^gamma" << endl ;
221 if ( ent >
double(0) ) {
235 if ( ent >
double(0) ) {
253 if ( ent >
double(0) ) {
270 return double(1) /
gam1 ;
279 if ( ent >
double(0) ) {
290 return (
double(1) + pp / ee) /
gam1 ;
294 return double(1) /
gam1 ;
Polytropic equation of state (Newtonian case).
virtual double der_press_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
virtual bool operator==(const Eos &) const
Comparison operator (egality)
void operator=(const Eos_poly_newt &)
Assignment to another Eos_poly_newt.
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the specific enthalpy.
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the specific enthalpy.
virtual double der_ener_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual void sauve(FILE *) const
Save in a file.
virtual ~Eos_poly_newt()
Destructor.
virtual bool operator!=(const Eos &) const
Comparison operator (difference)
virtual double der_nbar_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
virtual ostream & operator>>(ostream &) const
Operator >>
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.
Polytropic equation of state (relativistic case).
double kap
Pressure coefficient (cf.
virtual void sauve(FILE *) const
Save in a file.
double gam
Adiabatic index (cf. Eq. (3))
double m_0
Individual particule mass (cf.
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap.
Equation of state base class.
virtual int identify() const =0
Returns a number to identify the sub-classe of Eos the object belongs to.
void set_name(const char *name_i)
Sets the EOS name.
Cmp exp(const Cmp &)
Exponential.
Cmp pow(const Cmp &, int)
Power .