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