100 set_name(
"Newtonian EOS for incompressible matter") ;
109 set_name(
"Newtonian EOS for incompressible matter") ;
158 cout <<
"The second EOS is not of type Eos_incomp_newt !" << endl ;
168 <<
"The two Eos_incomp_newt have different rho0 : " <<
rho0 <<
" <-> " 169 << eos.
rho0 << endl ;
175 <<
"The two Eos_incomp_newt have different ent0 : " <<
ent0 <<
" <-> " 176 << eos.
ent0 << endl ;
206 ost <<
"EOS of class Eos_incomp_newt (Newtonian incompressible matter) : " 208 ost <<
" Constant density : " <<
rho0 <<
" rho_nuc" << endl ;
209 ost <<
" Log-enthalpy threshold for non-zero density : " <<
ent0 virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual ~Eos_incomp_newt()
Destructor.
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 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 double der_press_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
double rho0
Constant density .
virtual void sauve(FILE *) const
Save in a file.
virtual double der_ener_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_incomp_newt &)
Assignment to another Eos_incomp_newt.
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the specific enthalpy.
double ent0
Log-enthalpy threshold for setting the energy density to a non zero value (should be negative)...
void set_name(const char *name_i)
Sets the EOS name.
virtual double nbar_ent_p(double ent, const Param *par=0x0) const
Computes the baryon density from the specific enthalpy.
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the specific enthalpy.
Eos_incomp_newt(double rho_c)
Standard constructor.
virtual ostream & operator>>(ostream &) const
Operator >>
Equation of state of incompressible matter (Newtonian case).
virtual void sauve(FILE *) const
Save in a file.
Equation of state of incompressible matter (relativistic case).