LORENE
Lorene::Piecewise_polytrope_1D Class Reference
Inheritance diagram for Lorene::Piecewise_polytrope_1D:
Lorene::Eos

Public Member Functions

 Piecewise_polytrope_1D (const Tbl &, const Tbl &, const Tbl &, const Tbl &, const Tbl &, const Tbl &, double, double, double)
 Standard constructor.
 Piecewise_polytrope_1D (const Piecewise_polytrope_1D &)
 Copy constructor.
virtual ~Piecewise_polytrope_1D ()
 Destructor.
void operator= (const Piecewise_polytrope_1D &)
 Assignment to another Piecewise_polytrope_1D.
virtual bool operator== (const Eos &) const
 Comparison operator (egality).
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 void sauve (FILE *) const
 Save in a file.
virtual double nbar_ent_p (double ent, const Param *par=0x0) const
 Computes the baryon density from the specific enthalpy.
virtual double ener_ent_p (double ent, const Param *par=0x0) const
 Computes the total energy density from the specific enthalpy.
virtual double press_ent_p (double ent, const Param *par=0x0) const
 Computes the pressure from the specific enthalpy.
virtual double der_nbar_ent_p (double ent, const Param *par=0x0) const
 Computes the logarithmic derivative $d\ln n/d\ln h$ from the specific enthalpy.
virtual double der_ener_ent_p (double ent, const Param *par=0x0) const
 Computes the logarithmic derivative $d\ln e/d\ln h$ from the specific enthalpy.
virtual double der_press_ent_p (double ent, const Param *par=0x0) const
 Computes the logarithmic derivative $d\ln p/d\ln h$ from the specific enthalpy.
virtual double csound_square_ent_p (double, const Param *) const
 Computes the sound speed squared $ c_s^2 = c^2 \frac{dp}{de}$ from the enthapy with extra parameters (virtual function implemented in the derived classes).
double get_ent_lim () const
Tblget_gamma_high () const
Tblget_kappa_high () const
Tblget_n_lim_high () const
Tblget_ent_lim_high () const
Tblget_Lambda_high () const
Tblget_a_high () const
const char * get_name () const
 Returns the EOS name.
void set_name (const char *name_i)
 Sets the EOS name.
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.
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.
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.
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.
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.
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.
Cmp der_nbar_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the logarithmic derivative $d\ln n/d\ln H$ from the log-enthalpy and extra parameters.
Scalar der_nbar_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the logarithmic derivative $d\ln n/d\ln H$ from the log-enthalpy and extra parameters.
Cmp der_ener_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the logarithmic derivative $d\ln e/d\ln H$ from the log-enthalpy and extra parameters.
Scalar der_ener_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the logarithmic derivative $d\ln e/d\ln H$ from the log-enthalpy and extra parameters.
Cmp der_press_ent (const Cmp &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the logarithmic derivative $d\ln p/d\ln H$ from the log-enthalpy and extra parameters.
Scalar der_press_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the logarithmic derivative $d\ln p/d\ln H$ from the log-enthalpy and extra parameters.
Scalar csound_square_ent (const Scalar &ent, int nzet, int l_min=0, Param *par=0x0) const
 Computes the sound speed squared $ c_s^2 = c^2 \frac{dp}{de}$ from the enthalpy with extra parameters.

Static Public Member Functions

static Eoseos_from_file (FILE *)
 Construction of an EOS from a binary file.
static Eoseos_from_file (ifstream &)
 Construction of an EOS from a formatted file.

Protected Member Functions

 Piecewise_polytrope_1D (FILE *)
 Constructor from a binary file (created by the function sauve(FILE*) ).
 Piecewise_polytrope_1D (ifstream &)
 Constructor from a formatted file.
virtual ostream & operator>> (ostream &) const
 Operator >>.
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.
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.

Protected Attributes

char name [100]
 EOS name.

Private Attributes

Tblgamma_high
Tblkappa_high
TblLambda_high
Tbla_high
Tbln_lim_high
Tblent_lim_high
double gamma_low
double kappa_low
double n_lim
double ent_lim
int n_param_high
Eos_polyeos_low

Friends

EosEos::eos_from_file (FILE *)
 The construction functions from a file.
EosEos::eos_from_file (ifstream &)

Detailed Description

Definition at line 1445 of file eos.h.

Constructor & Destructor Documentation

◆ Piecewise_polytrope_1D() [1/4]

Lorene::Piecewise_polytrope_1D::Piecewise_polytrope_1D ( const Tbl & Gamma,
const Tbl & Kappa,
const Tbl & Lambda,
const Tbl & AA,
const Tbl & N_lim,
const Tbl & Ent_lim,
double gamma,
double kappa,
double n_lim0 )

Standard constructor.

Parameters
gamma_high: 1D Tbl where the Gamma coefficients of piecewise polytropes are stored
kappa_high: 1D Tbl where the Kappa coefficients of piecewise polytropes are stored
Lambda_high: 1D Tbl where the Lamba coefficients of piecewise polytropes are stored
a_high: 1D Tbl where the a coefficients of piecewise polytropes are stored
n_lim_high: 1D Tbl where the limiting densities of piecewise polytropes are stored in Lorene units [0.1 fm^-3]
ent_lim_high: 1D Tbl where the limiting enthalpies of piecewise polytropes are stored
n_lim: Limiting density between "core" and "crust" in Lorene units [0.1 fm^-3].

Definition at line 54 of file piecewise_polytrope_1D.C.

References Lorene::Tbl::get_ndim(), Lorene::Tbl::get_taille(), and Lorene::Eos::set_name().

◆ Piecewise_polytrope_1D() [2/4]

Lorene::Piecewise_polytrope_1D::Piecewise_polytrope_1D ( const Piecewise_polytrope_1D & eosi)

Copy constructor.

Definition at line 85 of file piecewise_polytrope_1D.C.

References Lorene::Eos::Eos(), and Piecewise_polytrope_1D().

◆ Piecewise_polytrope_1D() [3/4]

Lorene::Piecewise_polytrope_1D::Piecewise_polytrope_1D ( FILE * fich)
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 92 of file piecewise_polytrope_1D.C.

References Lorene::Eos::Eos(), and Lorene::fread_be().

◆ Piecewise_polytrope_1D() [4/4]

Lorene::Piecewise_polytrope_1D::Piecewise_polytrope_1D ( ifstream & fich)
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&) .

Definition at line 111 of file piecewise_polytrope_1D.C.

References Lorene::Eos::Eos().

◆ ~Piecewise_polytrope_1D()

Lorene::Piecewise_polytrope_1D::~Piecewise_polytrope_1D ( )
virtual

Destructor.

Definition at line 166 of file piecewise_polytrope_1D.C.

Member Function Documentation

◆ calcule() [1/2]

void Lorene::Eos::calcule ( const Cmp & thermo,
int nzet,
int l_min,
double(Eos::* fait )(double, const Param *) const,
Param * par,
Cmp & resu ) const
protectedinherited

General computational method for Cmp 's.

Parameters
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.
parpossible extra parameters of the EOS
resu[output] result of the computation.

Definition at line 213 of file eos.C.

References Lorene::Param::add_int_mod(), Lorene::Cmp::annule(), Lorene::Valeur::c, Lorene::Valeur::coef_i(), Eos(), Lorene::Cmp::get_etat(), Lorene::Tbl::get_etat(), Lorene::Cmp::get_mp(), Lorene::Mg3d::get_nzone(), Lorene::Tbl::get_taille(), Lorene::Map(), Lorene::Valeur::set_etat_c_qcq(), Lorene::Cmp::set_etat_qcq(), Lorene::Mtbl::set_etat_qcq(), Lorene::Tbl::set_etat_qcq(), Lorene::Cmp::set_etat_zero(), Lorene::Tbl::set_etat_zero(), Lorene::Mtbl::t, Lorene::Tbl::t, and Lorene::Cmp::va.

◆ calcule() [2/2]

void Lorene::Eos::calcule ( const Scalar & thermo,
int nzet,
int l_min,
double(Eos::* fait )(double, const Param *) const,
Param * par,
Scalar & resu ) const
protectedinherited

General computational method for Scalar 's.

Parameters
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.
parpossible extra parameters of the EOS
resu[output] result of the computation.

Definition at line 285 of file eos.C.

References Lorene::Param::add_int_mod(), Lorene::Scalar::annule(), Lorene::Valeur::c, Lorene::Valeur::coef_i(), Eos(), Lorene::Scalar::get_etat(), Lorene::Tbl::get_etat(), Lorene::Tensor::get_mp(), Lorene::Mg3d::get_nzone(), Lorene::Scalar::get_spectral_va(), Lorene::Tbl::get_taille(), Lorene::Map(), Lorene::Valeur::set_etat_c_qcq(), Lorene::Mtbl::set_etat_qcq(), Lorene::Scalar::set_etat_qcq(), Lorene::Tbl::set_etat_qcq(), Lorene::Scalar::set_etat_zero(), Lorene::Tbl::set_etat_zero(), Lorene::Scalar::set_spectral_va(), Lorene::Mtbl::t, and Lorene::Tbl::t.

◆ csound_square_ent()

Scalar Lorene::Eos::csound_square_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the sound speed squared $ c_s^2 = c^2 \frac{dp}{de}$ from the enthalpy with extra parameters.

Parameters
ent[input, unit: c^2] enthalpy
nzetnumber of domains where the derivative dln(e)/dln(H) is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
$c_s^2 $ [unit: c^2]

Definition at line 499 of file eos.C.

References calcule(), csound_square_ent_p(), and Lorene::Tensor::get_mp().

◆ csound_square_ent_p()

double Lorene::Piecewise_polytrope_1D::csound_square_ent_p ( double ent,
const Param *  ) const
virtual

Computes the sound speed squared $ c_s^2 = c^2 \frac{dp}{de}$ from the enthapy with extra parameters (virtual function implemented in the derived classes).

Parameters
ent[input, unit: c^2] enthalpy
parpossible extra parameters of the EOS
Returns
$c_s^2 $ [unit: c^2]

Implements Lorene::Eos.

Definition at line 455 of file piecewise_polytrope_1D.C.

References Lorene::exp().

◆ der_ener_ent() [1/2]

Cmp Lorene::Eos::der_ener_ent ( const Cmp & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the logarithmic derivative $d\ln e/d\ln H$ from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the derivative dln(e)/dln(H) is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
dln(e)/dln(H)

Definition at line 454 of file eos.C.

References calcule(), der_ener_ent_p(), and Lorene::Cmp::get_mp().

◆ der_ener_ent() [2/2]

Scalar Lorene::Eos::der_ener_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the logarithmic derivative $d\ln e/d\ln H$ from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the derivative dln(e)/dln(H) is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
dln(e)/dln(H)

Definition at line 464 of file eos.C.

References calcule(), der_ener_ent_p(), and Lorene::Tensor::get_mp().

◆ der_ener_ent_p()

double Lorene::Piecewise_polytrope_1D::der_ener_ent_p ( double ent,
const Param * par = 0x0 ) const
virtual

Computes the logarithmic derivative $d\ln e/d\ln h$ from the specific enthalpy.

Parameters
ent[input, unit: $c^2$] specific enthalpy H defined by Eq. (4)
Returns
dln(e)/dln(h)

Implements Lorene::Eos.

Definition at line 442 of file piecewise_polytrope_1D.C.

References Lorene::c_est_pas_fait().

◆ der_nbar_ent() [1/2]

Cmp Lorene::Eos::der_nbar_ent ( const Cmp & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the logarithmic derivative $d\ln n/d\ln H$ from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the derivative dln(n)/dln(H) is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
dln(n)/dln(H)

Definition at line 431 of file eos.C.

References calcule(), der_nbar_ent_p(), and Lorene::Cmp::get_mp().

◆ der_nbar_ent() [2/2]

Scalar Lorene::Eos::der_nbar_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the logarithmic derivative $d\ln n/d\ln H$ from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the derivative dln(n)/dln(H) is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
dln(n)/dln(H)

Definition at line 441 of file eos.C.

References calcule(), der_nbar_ent_p(), and Lorene::Tensor::get_mp().

◆ der_nbar_ent_p()

double Lorene::Piecewise_polytrope_1D::der_nbar_ent_p ( double ent,
const Param * par = 0x0 ) const
virtual

Computes the logarithmic derivative $d\ln n/d\ln h$ from the specific enthalpy.

Parameters
ent[input, unit: $c^2$] specific enthalpy H defined by Eq. (4)
Returns
dln(n)/dln(h)

Implements Lorene::Eos.

Definition at line 434 of file piecewise_polytrope_1D.C.

References Lorene::c_est_pas_fait().

◆ der_press_ent() [1/2]

Cmp Lorene::Eos::der_press_ent ( const Cmp & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the logarithmic derivative $d\ln p/d\ln H$ from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the derivative dln(p)/dln(H) is to be computed.
parpossible extra parameters of the EOS
l_minindex 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.
Returns
dln(p)/dln(H)

Definition at line 476 of file eos.C.

References calcule(), der_press_ent_p(), and Lorene::Cmp::get_mp().

◆ der_press_ent() [2/2]

Scalar Lorene::Eos::der_press_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the logarithmic derivative $d\ln p/d\ln H$ from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the derivative dln(p)/dln(H) is to be computed.
parpossible extra parameters of the EOS
l_minindex 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.
Returns
dln(p)/dln(H)

Definition at line 486 of file eos.C.

References calcule(), der_press_ent_p(), and Lorene::Tensor::get_mp().

◆ der_press_ent_p()

double Lorene::Piecewise_polytrope_1D::der_press_ent_p ( double ent,
const Param * par = 0x0 ) const
virtual

Computes the logarithmic derivative $d\ln p/d\ln h$ from the specific enthalpy.

Parameters
ent[input, unit: $c^2$] specific enthalpy H defined by Eq. (4)
Returns
dln(p)/dln(h)

Implements Lorene::Eos.

Definition at line 450 of file piecewise_polytrope_1D.C.

References Lorene::c_est_pas_fait().

◆ ener_ent() [1/2]

Cmp Lorene::Eos::ener_ent ( const Cmp & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the total energy density from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the energy density is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
energy density [unit: $\rho_{\rm nuc} c^2$], where $\rho_{\rm nuc} := 1.66\ 10^{17} \ {\rm kg/m}^3$

Definition at line 387 of file eos.C.

References calcule(), ener_ent_p(), and Lorene::Cmp::get_mp().

◆ ener_ent() [2/2]

Scalar Lorene::Eos::ener_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the total energy density from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the energy density is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
energy density [unit: $\rho_{\rm nuc} c^2$], where $\rho_{\rm nuc} := 1.66\ 10^{17} \ {\rm kg/m}^3$

Definition at line 397 of file eos.C.

References calcule(), ener_ent_p(), and Lorene::Tensor::get_mp().

◆ ener_ent_p()

double Lorene::Piecewise_polytrope_1D::ener_ent_p ( double ent,
const Param * par = 0x0 ) const
virtual

Computes the total energy density from the specific enthalpy.

Parameters
ent[input, unit: $c^2$] specific enthalpy H defined by Eq. (4)
Returns
energy density e [unit: $\rho_{\rm nuc} c^2$], where $\rho_{\rm nuc} := 1.66\ 10^{17} \ {\rm kg/m}^3$

Implements Lorene::Eos.

Definition at line 381 of file piecewise_polytrope_1D.C.

References Lorene::exp(), and Lorene::pow().

◆ eos_from_file() [1/2]

Eos * Lorene::Eos::eos_from_file ( FILE * fich)
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 Eos(), and Lorene::fread_be().

◆ eos_from_file() [2/2]

Eos * Lorene::Eos::eos_from_file ( ifstream & fich)
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:

  • 1 = relativistic polytropic EOS (class Eos_poly ).
  • 2 = Newtonian polytropic EOS (class Eos_poly_newt ).
  • 3 = Relativistic incompressible EOS (class Eos_incomp ).
  • 4 = Newtonian incompressible EOS (class Eos_incomp_newt ).
  • 5 = Strange matter (MIT Bag model)
  • 6 = Strange matter (MIT Bag model) with crust
  • 10 = SLy4 (Douchin & Haensel 2001)
  • 11 = FPS (Friedman-Pandharipande + Skyrme)
  • 12 = BPAL12 (Bombaci et al. 1995)
  • 13 = AkmalPR (Akmal, Pandharipande & Ravenhall 1998)
  • 14 = BBB2 (Baldo, Bombaci & Burgio 1997)
  • 15 = BalbN1H1 (Balberg 2000)
    • 16 = GlendNH3 (Glendenning 1985, case 3)
    • 17 = Tabulated EOS in CompOSE format
  • 18 = magnetized (tabulated) equation of state
  • 19 = relativistic ideal Fermi gas at zero temperature (class Eos_Fermi)
  • 20 = Tabulated EOS in CompOSE format corrected for thermo. consistency
  • 100 = Multi-domain EOS (class MEos )
  • 110 = Multi-polytropic EOS (class Eos_multi_poly )
  • 120 = Fitted SLy4 (Shibata 2004)
  • 121 = Fitted FPS (Shibata 2004)
  • 122 = Fitted AkmalPR (Taniguchi 2005)

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.

References Eos().

◆ get_a_high()

Tbl * Lorene::Piecewise_polytrope_1D::get_a_high ( ) const
inline

Definition at line 1616 of file eos.h.

◆ get_ent_lim()

double Lorene::Piecewise_polytrope_1D::get_ent_lim ( ) const
inline

Definition at line 1610 of file eos.h.

◆ get_ent_lim_high()

Tbl * Lorene::Piecewise_polytrope_1D::get_ent_lim_high ( ) const
inline

Definition at line 1614 of file eos.h.

◆ get_gamma_high()

Tbl * Lorene::Piecewise_polytrope_1D::get_gamma_high ( ) const
inline

Definition at line 1611 of file eos.h.

◆ get_kappa_high()

Tbl * Lorene::Piecewise_polytrope_1D::get_kappa_high ( ) const
inline

Definition at line 1612 of file eos.h.

◆ get_Lambda_high()

Tbl * Lorene::Piecewise_polytrope_1D::get_Lambda_high ( ) const
inline

Definition at line 1615 of file eos.h.

◆ get_n_lim_high()

Tbl * Lorene::Piecewise_polytrope_1D::get_n_lim_high ( ) const
inline

Definition at line 1613 of file eos.h.

◆ get_name()

const char * Lorene::Eos::get_name ( ) const
inherited

Returns the EOS name.

Definition at line 179 of file eos.C.

References name.

◆ identify()

int Lorene::Piecewise_polytrope_1D::identify ( ) const
virtual

Returns a number to identify the sub-classe of Eos the object belongs to.

Implements Lorene::Eos.

Definition at line 177 of file eos_from_file.C.

◆ nbar_ent() [1/2]

Cmp Lorene::Eos::nbar_ent ( const Cmp & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the baryon density field from the log-enthalpy field and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the baryon density is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
baryon density [unit: $n_{\rm nuc} := 0.1 \ {\rm fm}^{-3}$]

Definition at line 362 of file eos.C.

References calcule(), Lorene::Cmp::get_mp(), and nbar_ent_p().

◆ nbar_ent() [2/2]

Scalar Lorene::Eos::nbar_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the baryon density field from the log-enthalpy field and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the baryon density is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
baryon density [unit: $n_{\rm nuc} := 0.1 \ {\rm fm}^{-3}$]

Definition at line 372 of file eos.C.

References calcule(), Lorene::Tensor::get_mp(), and nbar_ent_p().

◆ nbar_ent_p()

double Lorene::Piecewise_polytrope_1D::nbar_ent_p ( double ent,
const Param * par = 0x0 ) const
virtual

Computes the baryon density from the specific enthalpy.

Parameters
ent[input, unit: $c^2$] specific enthalpy H defined by Eq. (4)
Returns
baryon density n [unit: $n_{\rm nuc} := 0.1 \ {\rm fm}^{-3}$]

Implements Lorene::Eos.

Definition at line 355 of file piecewise_polytrope_1D.C.

References Lorene::exp(), and Lorene::pow().

◆ operator!=()

bool Lorene::Piecewise_polytrope_1D::operator!= ( const Eos & eos_i) const
virtual

Comparison operator (difference).

Implements Lorene::Eos.

Definition at line 300 of file piecewise_polytrope_1D.C.

References Lorene::Eos::Eos(), and operator==().

◆ operator=()

void Lorene::Piecewise_polytrope_1D::operator= ( const Piecewise_polytrope_1D & eosi)

Assignment to another Piecewise_polytrope_1D.

Definition at line 181 of file piecewise_polytrope_1D.C.

References Lorene::Eos::name, Piecewise_polytrope_1D(), and Lorene::Eos::set_name().

◆ operator==()

bool Lorene::Piecewise_polytrope_1D::operator== ( const Eos & eos_i) const
virtual

Comparison operator (egality).

Implements Lorene::Eos.

Definition at line 203 of file piecewise_polytrope_1D.C.

References Lorene::Eos::Eos(), Lorene::Eos::identify(), identify(), and Piecewise_polytrope_1D().

◆ operator>>()

ostream & Lorene::Piecewise_polytrope_1D::operator>> ( ostream & ost) const
protectedvirtual

Operator >>.

Implements Lorene::Eos.

Definition at line 329 of file piecewise_polytrope_1D.C.

◆ press_ent() [1/2]

Cmp Lorene::Eos::press_ent ( const Cmp & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the pressure from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the pressure is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
pressure [unit: $\rho_{\rm nuc} c^2$], where $\rho_{\rm nuc} := 1.66\ 10^{17} \ {\rm kg/m}^3$

Definition at line 409 of file eos.C.

References calcule(), Lorene::Cmp::get_mp(), and press_ent_p().

◆ press_ent() [2/2]

Scalar Lorene::Eos::press_ent ( const Scalar & ent,
int nzet,
int l_min = 0,
Param * par = 0x0 ) const
inherited

Computes the pressure from the log-enthalpy and extra parameters.

Parameters
ent[input, unit: $c^2$] log-enthalpy H defined by $H = c^2 \ln\left( {e+p \over m_B c^2 n} \right) $, where e is the (total) energy density, p the pressure, n the baryon density, and $m_B$ the baryon mass
nzetnumber of domains where the pressure is to be computed.
l_minindex 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.
parpossible extra parameters of the EOS
Returns
pressure [unit: $\rho_{\rm nuc} c^2$], where $\rho_{\rm nuc} := 1.66\ 10^{17} \ {\rm kg/m}^3$

Definition at line 419 of file eos.C.

References calcule(), Lorene::Tensor::get_mp(), and press_ent_p().

◆ press_ent_p()

double Lorene::Piecewise_polytrope_1D::press_ent_p ( double ent,
const Param * par = 0x0 ) const
virtual

Computes the pressure from the specific enthalpy.

Parameters
ent[input, unit: $c^2$] specific enthalpy H defined by Eq. (4)
Returns
pressure p [unit: $\rho_{\rm nuc} c^2$], where $\rho_{\rm nuc} := 1.66\ 10^{17} \ {\rm kg/m}^3$

Implements Lorene::Eos.

Definition at line 408 of file piecewise_polytrope_1D.C.

References Lorene::exp(), and Lorene::pow().

◆ sauve()

void Lorene::Piecewise_polytrope_1D::sauve ( FILE * fich) const
virtual

Save in a file.

Reimplemented from Lorene::Eos.

Definition at line 311 of file piecewise_polytrope_1D.C.

References Lorene::fwrite_be(), and Lorene::Eos::sauve().

◆ set_name()

void Lorene::Eos::set_name ( const char * name_i)
inherited

Sets the EOS name.

Definition at line 173 of file eos.C.

References name.

◆ Eos::eos_from_file

Eos * Eos::eos_from_file ( FILE * )
friend

The construction functions from a file.

References Lorene::Eos::Eos(), and Piecewise_polytrope_1D().

Member Data Documentation

◆ a_high

Tbl * Lorene::Piecewise_polytrope_1D::a_high
private

Definition at line 1449 of file eos.h.

◆ ent_lim

double Lorene::Piecewise_polytrope_1D::ent_lim
private

Definition at line 1450 of file eos.h.

◆ ent_lim_high

Tbl * Lorene::Piecewise_polytrope_1D::ent_lim_high
private

Definition at line 1449 of file eos.h.

◆ eos_low

Eos_poly* Lorene::Piecewise_polytrope_1D::eos_low
private

Definition at line 1452 of file eos.h.

◆ gamma_high

Tbl* Lorene::Piecewise_polytrope_1D::gamma_high
private

Definition at line 1449 of file eos.h.

◆ gamma_low

double Lorene::Piecewise_polytrope_1D::gamma_low
private

Definition at line 1450 of file eos.h.

◆ kappa_high

Tbl * Lorene::Piecewise_polytrope_1D::kappa_high
private

Definition at line 1449 of file eos.h.

◆ kappa_low

double Lorene::Piecewise_polytrope_1D::kappa_low
private

Definition at line 1450 of file eos.h.

◆ Lambda_high

Tbl * Lorene::Piecewise_polytrope_1D::Lambda_high
private

Definition at line 1449 of file eos.h.

◆ n_lim

double Lorene::Piecewise_polytrope_1D::n_lim
private

Definition at line 1450 of file eos.h.

◆ n_lim_high

Tbl * Lorene::Piecewise_polytrope_1D::n_lim_high
private

Definition at line 1449 of file eos.h.

◆ n_param_high

int Lorene::Piecewise_polytrope_1D::n_param_high
private

Definition at line 1451 of file eos.h.

◆ name

char Lorene::Eos::name[100]
protectedinherited

EOS name.

Definition at line 212 of file eos.h.


The documentation for this class was generated from the following files: