28 #ifndef __EOS_COMPOSE_H_ 29 #define __EOS_COMPOSE_H_ 170 int get_format()
const {
return format ;} ;
194 virtual void sauve(FILE* )
const ;
198 virtual ostream&
operator>>(ostream &)
const ;
325 virtual ostream&
operator>>(ostream &)
const ;
virtual ostream & operator>>(ostream &) const
Operator >>
virtual bool operator==(const Eos &) const
Comparison operator (egality)
virtual ~Eos_consistent()
Destructor.
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the log-enthalpy.
Equation of state base class.
Eos_CompOSE(const string &files_path)
Constructor from CompOSE data.
virtual void read_compose_data()
Reads the files containing the table and initializes in the arrays logh , logp and dlpsdlh (CompOSE f...
virtual void read_table()
Reads the file containing the table and initializes in the arrays logh , logp and dlpsdlh ...
int format
0 for standard (old) LORENE format, 1 for CompOSE format
virtual double csound_square_ent_p(double, const Param *) const
Computes the sound speed squared from the enthapy with extra parameters (virtual function implemente...
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the log-enthalpy.
static Eos * eos_from_file(FILE *)
Construction of an EOS from a binary file.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
Equation of state for the CompOSE database with a consistent computation of the log-enthalpy (deriv...
virtual void sauve(FILE *) const
Save in a file.
virtual bool operator!=(const Eos &) const
Comparison operator (difference)
Base class for tabulated equations of state.
virtual void read_compose_data()
Reads the files containing the table and initializes in the arrays logh , logp and dlpsdlh (CompOSE f...
virtual double nbar_ent_p(double ent, const Param *par=0x0) const
Computes the baryon density from the log-enthalpy.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual ostream & operator>>(ostream &) const
Operator >>
virtual bool operator!=(const Eos &) const
Comparison operator (difference)
virtual bool operator==(const Eos &) const
Comparison operator (egality)
virtual ~Eos_CompOSE()
Destructor.
Eos_consistent(const string &files_path)
Constructor from CompOSE data.
Equation of state for the CompOSE database.