90 explicit Dyn_eos(
const string&) ;
166 virtual void sauve(FILE* )
const ;
336ostream& 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 ;
virtual void read_table_compose()
Reads the files .nb and .thermo containing the table in CompOSE format and initializes the arrays log...
virtual ostream & operator>>(ostream &) const
Operator >>.
virtual bool operator==(const Dyn_eos &) const
Comparison operator (egality).
virtual ~Dyn_eos_cons()
Destructor.
virtual bool operator!=(const Dyn_eos &) const
Comparison operator (difference).
Dyn_eos_cons(const string &name_i, const string &table_name, bool compose=true)
Standard constructor.
virtual int identify() const
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
Dyn_eos_cons(const Dyn_eos_cons &)
Copy constructor (private to make Dyn_eos_cons a non-copiable class).
virtual void read_table_lorene()
Reads the file containing the table in LORENE format and initializes the arrays lognb ,...
virtual void sauve(FILE *) const
Save in a file.
double get_kap() const
Returns the pressure coefficient (cf.
double get_gam() const
Returns the adiabatic index (cf. Eq. (3)).
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.
double gam
Adiabatic index (cf. Eq. (3)).
double get_mu_0() const
Return the relativistic chemical potential at zero pressure [unit: , with ].
void set_auxiliary()
Computes the auxiliary quantities gam1 , unsgam1 , gam1sgamkap from the values of gam and kap.
virtual ~Dyn_eos_poly()
Destructor.
void operator=(const Dyn_eos_poly &)
Assignment to another Dyn_eos_poly.
double mu_0
Relativistic chemical potential at zero pressure [unit: , with ].
double get_m_0() const
Return the individual particule mass (cf.
double m_0
Individual particule mass (cf.
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...
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 bool operator!=(const Dyn_eos &) const
Comparison operator (difference).
virtual int identify() const
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
Dyn_eos_poly(double gamma, double kappa)
Standard constructor (sets both m_0 and mu_0 to 1).
virtual ostream & operator>>(ostream &) const
Operator >>.
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 ...
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.
Dyn_eos_tab(const Dyn_eos_tab &)
Copy constructor (private to make Dyn_eos_tab a non-copiable class).
virtual ostream & operator>>(ostream &) const
Operator >>.
Dyn_eos_tab()
Default constructor to be called by derived classes.
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...
string tablename
Name of the file containing the tabulated data.
virtual bool operator!=(const Dyn_eos &) const
Comparison operator (difference).
virtual void read_table_compose()
Reads the files .nb and .thermo containing the table in CompOSE format and initializes the arrays log...
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 ...
virtual void sauve(FILE *) const
Save in a file.
bool compose_format
Are(is) the table(s) in CompOSE format?
virtual ~Dyn_eos_tab()
Destructor.
Dyn_eos_tab(const string &name_i, const string &table_name, bool compose=true)
Standard constructor.
virtual bool operator==(const Dyn_eos &) const
Comparison operator (egality).
double nbmax
Upper boundary of the baryon density interval.
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 csound_square_nbar_p(double nbar, const Param *par=0x0) const
Computes the sound speed squared from the baryon density with extra parameters.
double nbmin
Lower boundary of the baryon density interval.
Equation of state for use in dynamical code base class.
const string & get_name() const
Returns the EOS name.
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 ...
static Dyn_eos * eos_from_file(FILE *)
Construction of an EOS from a binary file.
void set_name(const string &)
Sets the EOS name.
virtual ostream & operator>>(ostream &) const =0
Operator >>.
virtual ~Dyn_eos()
Destructor.
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.
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 void sauve(FILE *) const
Save in a file.
virtual bool operator!=(const Dyn_eos &) const =0
Comparison operator (difference).
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 =0
Comparison operator (egality).
static Dyn_eos * convert_from_Eos(const Eos &)
Conversion operator from Eos to Dyn_eos.
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.
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 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...
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.
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.
friend ostream & operator<<(ostream &, const Dyn_eos &)
Display.
virtual int identify() const =0
Returns a number to identify the sub-classe of Dyn_eos the object belongs to.
Dyn_eos()
Standard constructor.
Equation of state base class.
Tensor field of valence 0 (or component of a tensorial field).