90 explicit Dyn_eos(
const string&) ;
166 virtual void sauve(FILE* )
const ;
172 virtual ostream&
operator>>(ostream &)
const = 0 ;
213 virtual double ent_nbar_p(
double nbar,
const Param* par=0x0)
const = 0 ;
336 ostream& operator<<(ostream& ,
const Dyn_eos& ) ;
461 Dyn_eos_poly(
double gamma,
double kappa,
double mass,
double mu_zero) ;
541 virtual void sauve(FILE* )
const ;
544 virtual ostream&
operator>>(ostream &)
const ;
692 Dyn_eos_tab(
const string& name_i,
const string& table_name,
693 bool compose =
true) ;
763 virtual void sauve(FILE* )
const ;
766 virtual ostream&
operator>>(ostream &)
const ;
854 Dyn_eos_cons(
const string& name_i,
const string& table_name,
855 bool compose =
true) ;
921 virtual ostream&
operator>>(ostream &)
const ;
void calcule(const Scalar &thermo, int nzet, int l_min, double(Dyn_eos::*fait)(double, const Param *) const, Param *par, Scalar &resu) const
General computational method for Scalar 's.
virtual double ent_nbar_p(double nbar, const Param *par=0x0) const
Computes the log-enthalpy from the baryon density and extra parameters (virtual function implemented ...
void set_name(const string &)
Sets the EOS name.
virtual ~Dyn_eos_poly()
Destructor.
Scalar csound_square_nbar(const Scalar &nbar, int nzet, int l_min=0, Param *par=0x0) const
Computes the sound speed squared from the baryon density with extra parameters.
double mu_0
Relativistic chemical potential at zero pressure [unit: , with ].
virtual int identify() const
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
virtual double csound_square_nbar_p(double nbar, const Param *par=0x0) const
Computes the sound speed squared from the baryon density with extra parameters.
virtual void sauve(FILE *) const
Save in a file.
virtual bool operator==(const Dyn_eos &) const
Comparison operator (egality)
virtual int identify() const =0
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
virtual ostream & operator>>(ostream &) const
Operator >>
virtual double ent_nbar_p(double nbar, const Param *par=0x0) const =0
Computes the log-enthalpy from the baryon density and extra parameters (virtual function implemented ...
virtual double csound_square_nbar_p(double nbar, const Param *par=0x0) const =0
Computes the sound speed squared from the baryon density with extra parameters (virtual function imp...
virtual bool operator==(const Dyn_eos &) const
Comparison operator (egality)
Equation of state base class.
virtual ostream & operator>>(ostream &) const =0
Operator >>
Dyn_eos_poly(double gamma, double kappa)
Standard constructor (sets both m_0 and mu_0 to 1).
Tensor field of valence 0 (or component of a tensorial field).
string tablename
Name of the file containing the tabulated data.
const string & get_name() const
Returns the EOS name.
virtual ~Dyn_eos()
Destructor.
virtual double press_nbar_p(double nbar, const Param *par=0x0) const
Computes the pressure from the baryon density and extra parameters (virtual function implemented in t...
Polytropic equation of state (relativistic case) for use in dynamical code.
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap...
double get_gam() const
Returns the adiabatic index (cf. Eq. (3))
virtual double ent_nbar_p(double nbar, const Param *par=0x0) const
Computes the log-enthalpy from the baryon density and extra parameters (virtual function implemented ...
Scalar press_nbar(const Scalar &nbar, int nzet, int l_min=0, Param *par=0x0) const
Computes the pressure from the baryon density and extra parameters.
virtual bool operator!=(const Dyn_eos &) const =0
Comparison operator (difference)
virtual double ener_nbar_p(double nbar, const Param *par=0x0) const
Computes the total energy density from the baryon density and extra parameters (virtual function impl...
virtual int identify() const
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
double nbmin
Lower boundary of the baryon density interval.
void operator=(const Dyn_eos_poly &)
Assignment to another Dyn_eos_poly.
Equation of state for use in dynamical code base class.
virtual ostream & operator>>(ostream &) const
Operator >>
virtual double press_nbar_p(double nbar, const Param *par=0x0) const =0
Computes the pressure from the baryon density and extra parameters (virtual function implemented in t...
virtual void sauve(FILE *) const
Save in a file.
Class for tabulated equations of state for use in dynamical code.
double get_mu_0() const
Return the relativistic chemical potential at zero pressure [unit: , with ].
virtual ~Dyn_eos_cons()
Destructor.
virtual double press_nbar_p(double nbar, const Param *par=0x0) const
Computes the pressure from the baryon density and extra parameters (virtual function implemented in t...
double gam
Adiabatic index (cf. Eq. (3))
friend ostream & operator<<(ostream &, const Dyn_eos &)
Display.
double get_kap() const
Returns the pressure coefficient (cf.
virtual double ener_nbar_p(double nbar, const Param *par=0x0) const
Computes the total energy density from the baryon density and extra parameters (virtual function impl...
virtual double ener_nbar_p(double nbar, const Param *par=0x0) const =0
Computes the total energy density from the baryon density and extra parameters (virtual function impl...
virtual bool operator==(const Dyn_eos &) const =0
Comparison operator (egality)
static Dyn_eos * convert_from_Eos(const Eos &)
Conversion operator from Eos to Dyn_eos.
virtual bool operator!=(const Dyn_eos &) const
Comparison operator (difference)
double get_m_0() const
Return the individual particule mass (cf.
virtual bool operator==(const Dyn_eos &) const
Comparison operator (egality)
virtual double csound_square_nbar_p(double nbar, const Param *par=0x0) const
Computes the sound speed squared from the baryon density with extra parameters.
Scalar ener_nbar(const Scalar &nbar, int nzet, int l_min=0, Param *par=0x0) const
Computes the total energy density from the baryon density and extra parameters.
Dyn_eos()
Standard constructor.
static Dyn_eos * eos_from_file(FILE *)
Construction of an EOS from a binary file.
virtual void read_table_compose()
Reads the files .nb and .thermo containing the table in CompOSE format and initializes the arrays log...
double kap
Pressure coefficient (cf.
string authors
Authors - reference for the table.
virtual void read_table_lorene()
Reads the file containing the table in LORENE format and initializes the arrays lognb ...
virtual int identify() const
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
virtual bool operator!=(const Dyn_eos &) const
Comparison operator (difference)
Dyn_eos_tab()
Default constructor to be called by derived classes.
virtual ~Dyn_eos_tab()
Destructor.
Equation of state for the CompOSE database with a consistent computation of the baryon density...
Scalar ent_nbar(const Scalar &nbar, int nzet, int l_min=0, Param *par=0x0) const
Computes the log-enthalpy field from the baryon density field and extra parameters.
virtual bool operator!=(const Dyn_eos &) const
Comparison operator (difference)
bool compose_format
Are(is) the table(s) in CompOSE format?
double nbmax
Upper boundary of the baryon density interval.
virtual void sauve(FILE *) const
Save in a file.
double m_0
Individual particule mass (cf.
virtual void read_table_compose()
Reads the files .nb and .thermo containing the table in CompOSE format and initializes the arrays log...
virtual void read_table_lorene()
Reads the file containing the table in LORENE format and initializes the arrays lognb ...
virtual ostream & operator>>(ostream &) const
Operator >>
Dyn_eos_cons(const string &name_i, const string &table_name, bool compose=true)
Standard constructor.