125 Eos_mag(
const char* name_i,
const char* table,
const char* path) ;
133 Eos_mag(
const char* name_i,
const char* file_name) ;
157 Eos_mag(ifstream& ist,
const char* table) ;
202 virtual void sauve(FILE* )
const ;
206 virtual ostream&
operator>>(ostream &)
const ;
Class for a magnetized (tabulated) equation of state.
double mag_ent_p(double ent, const Param *par=0x0) const
Computes the magnetisation.
virtual bool operator!=(const Eos &) const
Comparison operator (difference)
virtual int identify() const
Returns a number to identify the sub-classe of Eos the object belongs to.
virtual double der_press_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the log-enthalpy.
virtual double press_ent_p(double ent, const Param *par=0x0) const
Computes the pressure from the log-enthalpy.
virtual void sauve(FILE *) const
Save in a file.
double Bmax
Upper boundary of the magnetic field interval.
virtual ~Eos_mag()
Destructor.
virtual double nbar_ent_p(double ent, const Param *par=0x0) const
Computes the baryon density from the log-enthalpy.
Eos_mag(const Eos_mag &)
Copy constructor
virtual double der_nbar_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the log-enthalpy.
virtual bool operator==(const Eos &) const
Comparison operator (egality)
double hmin
Lower boundary of the log-enthalpy interval.
virtual double der_ener_ent_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the log-enthalpy.
virtual double ener_ent_p(double ent, const Param *par=0x0) const
Computes the total energy density from the log-enthalpy.
string tablename
Name of the file containing the tabulated data.
void read_table()
Reads the file containing the table and initializes in the arrays logh , logp and dlpsdlh .
virtual double der_press_nbar_p(double ent, const Param *par=0x0) const
Computes the logarithmic derivative from the log-enthalpy.
double hmax
Upper boundary of the log-enthalpy interval.
virtual ostream & operator>>(ostream &) const
Operator >>
Equation of state base class.
static Eos * eos_from_file(FILE *)
Construction of an EOS from a binary file.