29char Eos_incomp_newt_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Eos/eos_incomp_newt.C,v 1.5 2014/10/13 08:52:53 j_novak Exp $" ;
97 set_name(
"Newtonian EOS for incompressible matter") ;
106 set_name(
"Newtonian EOS for incompressible matter") ;
155 cout <<
"The second EOS is not of type Eos_incomp_newt !" << endl ;
165 <<
"The two Eos_incomp_newt have different rho0 : " <<
rho0 <<
" <-> "
166 << eos.
rho0 << endl ;
172 <<
"The two Eos_incomp_newt have different ent0 : " <<
ent0 <<
" <-> "
173 << eos.
ent0 << endl ;
203 ost <<
"EOS of class Eos_incomp_newt (Newtonian incompressible matter) : "
205 ost <<
" Constant density : " <<
rho0 <<
" rho_nuc" << endl ;
206 ost <<
" Log-enthalpy threshold for non-zero density : " <<
ent0
Equation of state of incompressible matter (Newtonian case).
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the specific enthalpy.
virtual double der_nbar_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the specific enthalpy.
virtual double nbar_ent_p(double ent, const Param *par=0x0) const
Computes the baryon density from the specific enthalpy.
virtual ~Eos_incomp_newt()
Destructor.
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the specific enthalpy.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual bool operator==(const Eos &) const
Comparison operator (egality)
virtual double der_ener_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.
Eos_incomp_newt(double rho_c)
Standard constructor.
virtual bool operator!=(const Eos &) const
Comparison operator (difference)
void operator=(const Eos_incomp_newt &)
Assignment to another Eos_incomp_newt.
virtual ostream & operator>>(ostream &) const
Operator >>
virtual void sauve(FILE *) const
Save in a file.
Equation of state of incompressible matter (relativistic case).
virtual void sauve(FILE *) const
Save in a file.
double ent0
Log-enthalpy threshold for setting the energy density to a non zero value (should be negative).
double rho0
Constant density .
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.