LORENE
|
Base class for tabulated equations of state.
More...
#include <eos_tabul.h>
Public Member Functions | |
virtual | ~Eos_tabul () |
Destructor. More... | |
const string & | get_tablename () const |
const Tbl & | get_logh () const |
double | get_hmin () const |
Returns minimal value of log-enthalpy in the table. More... | |
double | get_hmax () const |
Returns maximal value of log-enthalpy in the table. More... | |
virtual void | sauve (FILE *) const |
Save in a file. More... | |
virtual double | nbar_ent_p (double ent, const Param *par=0x0) const |
Computes the baryon density from the log-enthalpy. More... | |
virtual double | ener_ent_p (double ent, const Param *par=0x0) const |
Computes the total energy density from the log-enthalpy. More... | |
virtual double | press_ent_p (double ent, const Param *par=0x0) const |
Computes the pressure from the log-enthalpy. More... | |
virtual double | der_nbar_ent_p (double ent, const Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy. More... | |
virtual double | der_ener_ent_p (double ent, const Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy. More... | |
virtual double | der_press_ent_p (double ent, const Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy. More... | |
virtual double | der_press_nbar_p (double ent, const Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy. More... | |
virtual double | csound_square_ent_p (double, const Param *) const |
Computes the sound speed squared from the enthapy with extra parameters (virtual function implemented in the derived classes). More... | |
const char * | get_name () const |
Returns the EOS name. More... | |
void | set_name (const char *name_i) |
Sets the EOS name. More... | |
virtual bool | operator== (const Eos &) const =0 |
Comparison operator (egality) More... | |
virtual bool | operator!= (const Eos &) const =0 |
Comparison operator (difference) More... | |
virtual int | identify () const =0 |
Returns a number to identify the sub-classe of Eos the object belongs to. More... | |
Cmp | nbar_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the baryon density field from the log-enthalpy field and extra parameters. More... | |
Scalar | nbar_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the baryon density field from the log-enthalpy field and extra parameters. More... | |
Cmp | ener_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the total energy density from the log-enthalpy and extra parameters. More... | |
Scalar | ener_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the total energy density from the log-enthalpy and extra parameters. More... | |
Cmp | press_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the pressure from the log-enthalpy and extra parameters. More... | |
Scalar | press_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the pressure from the log-enthalpy and extra parameters. More... | |
Cmp | der_nbar_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy and extra parameters. More... | |
Scalar | der_nbar_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy and extra parameters. More... | |
Cmp | der_ener_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy and extra parameters. More... | |
Scalar | der_ener_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy and extra parameters. More... | |
Cmp | der_press_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy and extra parameters. More... | |
Scalar | der_press_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the logarithmic derivative from the log-enthalpy and extra parameters. More... | |
Scalar | csound_square_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const |
Computes the sound speed squared from the enthalpy with extra parameters. More... | |
Static Public Member Functions | |
static Eos * | eos_from_file (FILE *) |
Construction of an EOS from a binary file. More... | |
static Eos * | eos_from_file (ifstream &) |
Construction of an EOS from a formatted file. More... | |
Protected Member Functions | |
Eos_tabul (const char *name_i, const char *table, const char *path) | |
Standard constructor. More... | |
Eos_tabul (const char *name_i, const char *file_name) | |
Standard constructor from the full filename. More... | |
Eos_tabul (const Eos_tabul &) | |
Copy constructor. More... | |
Eos_tabul (const char *name_i) | |
Standard constructor with a name. More... | |
Eos_tabul (FILE *) | |
Constructor from a binary file (created by the function sauve(FILE*) ). More... | |
Eos_tabul (ifstream &ist, const char *table) | |
Constructor from a formatted file. More... | |
Eos_tabul (ifstream &ist) | |
Constructor from a formatted file. More... | |
virtual void | read_table () |
Reads the file containing the table and initializes in the arrays logh , logp and dlpsdlh . More... | |
virtual ostream & | operator>> (ostream &) const =0 |
Operator >> More... | |
void | calcule (const Cmp &thermo, int nzet, int l_min, double(Eos::*fait)(double, const Param *) const, Param *par, Cmp &resu) const |
General computational method for Cmp 's. More... | |
void | calcule (const Scalar &thermo, int nzet, int l_min, double(Eos::*fait)(double, const Param *) const, Param *par, Scalar &resu) const |
General computational method for Scalar 's. More... | |
Protected Attributes | |
string | tablename |
Name of the file containing the tabulated data. More... | |
string | authors |
Authors - reference for the table. More... | |
double | hmin |
Lower boundary of the enthalpy interval. More... | |
double | hmax |
Upper boundary of the enthalpy interval. More... | |
Tbl * | logh |
Table of . More... | |
Tbl * | logp |
Table of . More... | |
Tbl * | dlpsdlh |
Table of . More... | |
Tbl * | lognb |
Table of . More... | |
Tbl * | dlpsdlnb |
Table of . More... | |
Tbl * | log_cs2 |
Table of . More... | |
double * | press |
double * | nb |
double * | ro |
char | name [100] |
EOS name. More... | |
Friends | |
Eos * | Eos::eos_from_file (FILE *) |
The construction functions from a file. More... | |
Eos * | Eos::eos_from_file (ifstream &) |
Base class for tabulated equations of state.
()
EoS data are to be stored in a formatted file in the following format. The first five lines are comments, preceded by hashes. Then is given the number of data lines. After, three other lines of comments, data are given in four columns. The first one is just a number, not used by Lorene. Second is the baryon number density in , then is the total energy density (including rest mass) and pressure, both in cgs units. Here is an example from the file eos_fps.d:
# Date: Tue, 21 Nov 2000 17:24:31 +0100 # From: xxx # FPS e.o.s.: BPS below n.drip, then FPS. Supplied by N.Stergioulas # (June 1998) crust bottom at n=0.0957 , rho=1.60E14 1.E50,1.60E14 # 129 <-- Number of lines # # n_B [fm^{-3}] rho [g/cm^3] p [dyn/cm^2] # 6 0.2722041559E-13 0.4518590000E+02 0.1701030000E+15 7 0.1279071657E-12 0.2123260000E+03 0.5817150000E+16
Note that units used in the table file are not those of Lorene. The interpolation through the tables is a cubic Hermite interpolation, which is thermodynamically consistent, i.e. preserves the Gibbs-Duhem relation. It is defined in [Nozawa, Stergioulas, Gourgoulhon & Eriguchi, Astron. Astrophys. Suppl. Ser. 132 , 431 (1998)], and derives from a general technique presented in [Swesty, J. Comp. Phys. 127 , 118 (1996)].
Definition at line 185 of file eos_tabul.h.
|
protected |
Standard constructor.
name_i | Name of the equation of state |
table | Name of the file containing the EOS table |
path | Path to the directory containing the EOS file |
Definition at line 167 of file eos_tabul.C.
References read_table(), and tablename.
|
protected |
Standard constructor from the full filename.
name_i | Name of the equation of state |
table | Full name of the file containing the EOS table (including the absolute path). |
Definition at line 179 of file eos_tabul.C.
References read_table(), and tablename.
|
protected |
Copy constructor.
|
protected |
Standard constructor with a name.
Definition at line 225 of file eos_tabul.C.
|
protected |
Constructor from a binary file (created by the function sauve(FILE*)
).
This constructor is protected because any EOS construction from a binary file must be done via the function Eos::eos_from_file(FILE*)
.
Definition at line 191 of file eos_tabul.C.
References read_table(), and tablename.
|
protected |
Constructor from a formatted file.
This constructor is protected because any EOS construction from a formatted file must be done via the function Eos::eos_from_file
(ifstream& ) .
ist | input file stream containing a name as first line and the path to the directory containing the EOS file as second line |
table | Name of the file containing the EOS table |
Definition at line 205 of file eos_tabul.C.
References read_table(), and tablename.
|
protected |
Constructor from a formatted file.
This constructor is protected because any EOS construction from a formatted file must be done via the function Eos::eos_from_file
(ifstream& ) .
ist | input file stream containing a name as first line and the full filename (including the path) containing the EOS file as second line |
table | Name of the file containing the EOS table |
Definition at line 216 of file eos_tabul.C.
References read_table(), and tablename.
|
virtual |
|
protectedinherited |
General computational method for Cmp
's.
thermo | [input] thermodynamical quantity (for instance the enthalpy field)from which the thermodynamical quantity resu is to be computed. |
nzet | [input] number of domains where resu is to be computed. |
l_min | [input] index of the innermost domain is which resu is to be computed [default value: 0]; resu is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
fait | [input] pointer on the member function of class Eos which performs the pointwise calculation. |
par | possible extra parameters of the EOS |
resu | [output] result of the computation. |
Definition at line 213 of file eos.C.
References Lorene::Cmp::get_etat().
|
protectedinherited |
General computational method for Scalar
's.
thermo | [input] thermodynamical quantity (for instance the enthalpy field)from which the thermodynamical quantity resu is to be computed. |
nzet | [input] number of domains where resu is to be computed. |
l_min | [input] index of the innermost domain is which resu is to be computed [default value: 0]; resu is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
fait | [input] pointer on the member function of class Eos which performs the pointwise calculation. |
par | possible extra parameters of the EOS |
resu | [output] result of the computation. |
Definition at line 285 of file eos.C.
References Lorene::Scalar::get_etat().
|
inherited |
Computes the sound speed squared from the enthalpy with extra parameters.
ent | [input, unit: c^2] enthalpy |
nzet | number of domains where the derivative dln(e)/dln(H) is to be computed. |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(e)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 499 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::csound_square_ent_p(), and Lorene::Tensor::get_mp().
|
virtual |
Computes the sound speed squared from the enthapy with extra parameters (virtual function implemented in the derived classes).
ent | [input, unit: c^2] enthalpy |
par | possible extra parameters of the EOS |
Implements Lorene::Eos.
Reimplemented in Lorene::Eos_consistent.
Definition at line 602 of file eos_tabul.C.
References Lorene::Tbl::get_taille(), hmax, hmin, Lorene::log10(), log_cs2, logh, lognb, and Lorene::pow().
|
inherited |
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the derivative dln(e)/dln(H) is to be computed. |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(e)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 454 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::der_ener_ent_p(), and Lorene::Cmp::get_mp().
|
inherited |
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the derivative dln(e)/dln(H) is to be computed. |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(e)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 464 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::der_ener_ent_p(), and Lorene::Tensor::get_mp().
|
virtual |
Computes the logarithmic derivative from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Implements Lorene::Eos.
Definition at line 526 of file eos_tabul.C.
References der_nbar_ent_p(), ener_ent_p(), hmax, hmin, and press_ent_p().
|
inherited |
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the derivative dln(n)/dln(H) is to be computed. |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(n)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 431 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::der_nbar_ent_p(), and Lorene::Cmp::get_mp().
|
inherited |
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the derivative dln(n)/dln(H) is to be computed. |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(n)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 441 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::der_nbar_ent_p(), and Lorene::Tensor::get_mp().
|
virtual |
Computes the logarithmic derivative from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Implements Lorene::Eos.
Definition at line 503 of file eos_tabul.C.
References der_press_ent_p(), der_press_nbar_p(), hmax, and hmin.
|
inherited |
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the derivative dln(p)/dln(H) is to be computed. |
par | possible extra parameters of the EOS |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(p)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
Definition at line 476 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::der_press_ent_p(), and Lorene::Cmp::get_mp().
|
inherited |
Computes the logarithmic derivative from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the derivative dln(p)/dln(H) is to be computed. |
par | possible extra parameters of the EOS |
l_min | index of the innermost domain is which the coefficient dln(n)/dln(H) is to be computed [default value: 0]; the derivative dln(p)/dln(H) is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
Definition at line 486 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::der_press_ent_p(), and Lorene::Tensor::get_mp().
|
virtual |
Computes the logarithmic derivative from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Implements Lorene::Eos.
Definition at line 546 of file eos_tabul.C.
References dlpsdlh, Lorene::Tbl::get_taille(), hmax, hmin, Lorene::log10(), logh, and logp.
|
virtual |
Computes the logarithmic derivative from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Definition at line 576 of file eos_tabul.C.
References dlpsdlnb, Lorene::Tbl::get_taille(), hmax, hmin, Lorene::log10(), and logh.
|
inherited |
Computes the total energy density from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the energy density is to be computed. |
l_min | index of the innermost domain is which the energy density is to be computed [default value: 0]; the energy density is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 387 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::ener_ent_p(), and Lorene::Cmp::get_mp().
|
inherited |
Computes the total energy density from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the energy density is to be computed. |
l_min | index of the innermost domain is which the energy density is to be computed [default value: 0]; the energy density is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 397 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Eos::ener_ent_p(), and Lorene::Tensor::get_mp().
|
virtual |
Computes the total energy density from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Implements Lorene::Eos.
Reimplemented in Lorene::Eos_consistent.
Definition at line 450 of file eos_tabul.C.
References dlpsdlh, Lorene::Tbl::get_taille(), hmax, hmin, Lorene::log10(), logh, logp, and Lorene::pow().
|
staticinherited |
Construction of an EOS from a binary file.
The file must have been created by the function sauve(FILE*)
.
Definition at line 193 of file eos_from_file.C.
References Lorene::fread_be().
|
staticinherited |
Construction of an EOS from a formatted file.
The fist line of the file must start by the EOS number, according to the following conventions:
Eos_poly
).Eos_poly_newt
).Eos_incomp
).Eos_incomp_newt
).Eos_Fermi
)MEos
)Eos_multi_poly
)The second line in the file should contain a name given by the user to the EOS. The following lines should contain the EOS parameters (one parameter per line), in the same order than in the class declaration.
Definition at line 345 of file eos_from_file.C.
|
inline |
Returns maximal value of log-enthalpy in the table.
Definition at line 302 of file eos_tabul.h.
References hmax.
|
inline |
Returns minimal value of log-enthalpy in the table.
Definition at line 299 of file eos_tabul.h.
References hmin.
|
inherited |
|
pure virtualinherited |
Returns a number to identify the sub-classe of Eos
the object belongs to.
Implemented in Lorene::MEos, Lorene::Eos_Fermi, Lorene::Eos_strange_cr, Lorene::Eos_strange, Lorene::Eos_incomp_newt, Lorene::Eos_incomp, Lorene::Piecewise_polytrope_1D, Lorene::Pseudo_polytrope_1D, Lorene::Eos_poly_newt, Lorene::Eos_GlendNH3, Lorene::Eos_poly, Lorene::Eos_BalbN1H1, Lorene::Eos_BBB2, Lorene::Eos_AkmalPR, Lorene::Eos_BPAL12, Lorene::Eos_FPS, Lorene::Eos_SLy4, Lorene::Eos_fit_AkmalPR, Lorene::Eos_fit_FPS, Lorene::Eos_consistent, Lorene::Eos_fit_SLy4, Lorene::Eos_multi_poly, Lorene::Eos_mag, Lorene::Eos_compose_fit, and Lorene::Eos_CompOSE.
|
inherited |
Computes the baryon density field from the log-enthalpy field and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the baryon density is to be computed. |
l_min | index of the innermost domain is which the baryon density is to be computed [default value: 0]; the baryon density is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 362 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Cmp::get_mp(), and Lorene::Eos::nbar_ent_p().
|
inherited |
Computes the baryon density field from the log-enthalpy field and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the baryon density is to be computed. |
l_min | index of the innermost domain is which the baryon density is to be computed [default value: 0]; the baryon density is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 372 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Tensor::get_mp(), and Lorene::Eos::nbar_ent_p().
|
virtual |
Computes the baryon density from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Implements Lorene::Eos.
Reimplemented in Lorene::Eos_consistent.
Definition at line 422 of file eos_tabul.C.
References dlpsdlh, Lorene::exp(), Lorene::Tbl::get_taille(), hmax, hmin, Lorene::log10(), logh, logp, and Lorene::pow().
|
pure virtualinherited |
Comparison operator (difference)
Implemented in Lorene::MEos, Lorene::Eos_Fermi, Lorene::Eos_strange_cr, Lorene::Eos_strange, Lorene::Eos_incomp_newt, Lorene::Eos_incomp, Lorene::Piecewise_polytrope_1D, Lorene::Pseudo_polytrope_1D, Lorene::Eos_poly_newt, Lorene::Eos_GlendNH3, Lorene::Eos_poly, Lorene::Eos_BalbN1H1, Lorene::Eos_BBB2, Lorene::Eos_AkmalPR, Lorene::Eos_BPAL12, Lorene::Eos_FPS, Lorene::Eos_SLy4, Lorene::Eos_fit_AkmalPR, Lorene::Eos_fit_FPS, Lorene::Eos_consistent, Lorene::Eos_fit_SLy4, Lorene::Eos_multi_poly, Lorene::Eos_mag, Lorene::Eos_compose_fit, and Lorene::Eos_CompOSE.
|
pure virtualinherited |
Comparison operator (egality)
Implemented in Lorene::MEos, Lorene::Eos_Fermi, Lorene::Eos_strange_cr, Lorene::Eos_strange, Lorene::Eos_incomp_newt, Lorene::Eos_incomp, Lorene::Piecewise_polytrope_1D, Lorene::Pseudo_polytrope_1D, Lorene::Eos_poly_newt, Lorene::Eos_GlendNH3, Lorene::Eos_poly, Lorene::Eos_BalbN1H1, Lorene::Eos_BBB2, Lorene::Eos_AkmalPR, Lorene::Eos_BPAL12, Lorene::Eos_FPS, Lorene::Eos_SLy4, Lorene::Eos_fit_AkmalPR, Lorene::Eos_fit_FPS, Lorene::Eos_consistent, Lorene::Eos_fit_SLy4, Lorene::Eos_multi_poly, Lorene::Eos_mag, Lorene::Eos_compose_fit, and Lorene::Eos_CompOSE.
|
protectedpure virtualinherited |
Operator >>
Implemented in Lorene::MEos, Lorene::Eos_Fermi, Lorene::Eos_strange_cr, Lorene::Eos_strange, Lorene::Eos_incomp_newt, Lorene::Eos_incomp, Lorene::Piecewise_polytrope_1D, Lorene::Pseudo_polytrope_1D, Lorene::Eos_poly_newt, Lorene::Eos_poly, Lorene::Eos_GlendNH3, Lorene::Eos_BalbN1H1, Lorene::Eos_BBB2, Lorene::Eos_AkmalPR, Lorene::Eos_BPAL12, Lorene::Eos_FPS, Lorene::Eos_SLy4, Lorene::Eos_fit_AkmalPR, Lorene::Eos_fit_FPS, Lorene::Eos_consistent, Lorene::Eos_multi_poly, Lorene::Eos_fit_SLy4, Lorene::Eos_compose_fit, Lorene::Eos_mag, and Lorene::Eos_CompOSE.
|
inherited |
Computes the pressure from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the pressure is to be computed. |
l_min | index of the innermost domain is which the pressure is to be computed [default value: 0]; the pressure is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 409 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Cmp::get_mp(), and Lorene::Eos::press_ent_p().
|
inherited |
Computes the pressure from the log-enthalpy and extra parameters.
ent | [input, unit: ] log-enthalpy H defined by , where e is the (total) energy density, p the pressure, n the baryon density, and the baryon mass |
nzet | number of domains where the pressure is to be computed. |
l_min | index of the innermost domain is which the pressure is to be computed [default value: 0]; the pressure is computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
par | possible extra parameters of the EOS |
Definition at line 419 of file eos.C.
References Lorene::Eos::calcule(), Lorene::Tensor::get_mp(), and Lorene::Eos::press_ent_p().
|
virtual |
Computes the pressure from the log-enthalpy.
ent | [input, unit: ] log-enthalpy H |
Implements Lorene::Eos.
Reimplemented in Lorene::Eos_consistent.
Definition at line 478 of file eos_tabul.C.
References dlpsdlh, Lorene::Tbl::get_taille(), hmax, hmin, Lorene::log10(), logh, logp, and Lorene::pow().
|
protectedvirtual |
Reads the file containing the table and initializes in the arrays logh
, logp
and dlpsdlh
.
Reimplemented in Lorene::Eos_consistent.
Definition at line 261 of file eos_tabul.C.
References authors, Lorene::compute_derivative(), dlpsdlh, dlpsdlnb, hmax, hmin, Lorene::log(), Lorene::log10(), log_cs2, logh, lognb, logp, Lorene::pow(), Lorene::Tbl::set(), Lorene::Tbl::set_etat_qcq(), and tablename.
|
virtual |
Save in a file.
Reimplemented from Lorene::Eos.
Reimplemented in Lorene::Eos_CompOSE.
Definition at line 248 of file eos_tabul.C.
References Lorene::Eos::sauve(), and tablename.
|
inherited |
|
friend |
The construction functions from a file.
|
protected |
Authors - reference for the table.
Definition at line 194 of file eos_tabul.h.
|
protected |
Table of .
Definition at line 209 of file eos_tabul.h.
|
protected |
Table of .
Definition at line 215 of file eos_tabul.h.
|
protected |
Upper boundary of the enthalpy interval.
Definition at line 200 of file eos_tabul.h.
|
protected |
Lower boundary of the enthalpy interval.
Definition at line 197 of file eos_tabul.h.
|
protected |
Table of .
Definition at line 218 of file eos_tabul.h.
|
protected |
Table of .
Definition at line 203 of file eos_tabul.h.
|
protected |
Table of .
Definition at line 212 of file eos_tabul.h.
|
protected |
Table of .
Definition at line 206 of file eos_tabul.h.
|
protected |
Name of the file containing the tabulated data.
Definition at line 192 of file eos_tabul.h.