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 ;
int format
0 for standard (old) LORENE format, 1 for CompOSE format
Eos_CompOSE(const Eos_CompOSE &)
Copy constructor (private to make Eos_CompOSE a non-copiable class).
virtual void read_compose_data()
Reads the files containing the table and initializes in the arrays logh , logp and dlpsdlh (CompOSE f...
virtual ~Eos_CompOSE()
Destructor.
virtual bool operator==(const Eos &) const
Comparison operator (egality).
virtual bool operator!=(const Eos &) const
Comparison operator (difference).
Eos_CompOSE(const string &files_path)
Constructor from CompOSE data.
virtual ostream & operator>>(ostream &) const
Operator >>.
virtual void sauve(FILE *) const
Save in a file.
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual double csound_square_ent_p(double, const Param *) const
Computes the sound speed squared from the enthapy with extra parameters (virtual function implemente...
Eos_consistent(const Eos_consistent &)
Copy constructor (private to make Eos_consistent a non-copiable class).
virtual bool operator==(const Eos &) const
Comparison operator (egality).
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the log-enthalpy.
virtual bool operator!=(const Eos &) const
Comparison operator (difference).
virtual ostream & operator>>(ostream &) const
Operator >>.
Eos_consistent(const string &files_path)
Constructor from CompOSE data.
virtual double nbar_ent_p(double ent, const Param *par=0x0) const
Computes the baryon density from the log-enthalpy.
virtual void read_compose_data()
Reads the files containing the table and initializes in the arrays logh , logp and dlpsdlh (CompOSE f...
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual ~Eos_consistent()
Destructor.
virtual void read_table()
Reads the file containing the table and initializes in the arrays logh , logp and dlpsdlh .
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the log-enthalpy.
Eos_tabul(const char *name_i, const char *table, const char *path)
Standard constructor.
Equation of state base class.
static Eos * eos_from_file(FILE *)
Construction of an EOS from a binary file.