LORENE
|
Analytic equation of state for two fluids (relativistic case). More...
#include <eos_bifluid.h>
Public Member Functions | |
Eos_bf_poly (double kappa1, double kappa2, double kappa3, double beta) | |
Standard constructor. More... | |
Eos_bf_poly (double gamma1, double gamma2, double gamma3, double gamma4, double gamma5, double gamma6, double kappa1, double kappa2, double kappa3, double beta, double mass1=1, double mass2=1, double relax=0.5, double precis=1.e-9, double ecart=1.e-8) | |
Standard constructor with all parameters. More... | |
Eos_bf_poly (const Eos_bf_poly &) | |
Copy constructor. More... | |
virtual | ~Eos_bf_poly () |
Destructor. More... | |
void | operator= (const Eos_bf_poly &) |
Assignment to another Eos_bf_poly . More... | |
virtual bool | operator== (const Eos_bifluid &) const |
Comparison operator (egality) More... | |
virtual bool | operator!= (const Eos_bifluid &) const |
Comparison operator (difference) More... | |
virtual int | identify () const |
Returns a number to identify the sub-classe of Eos_bifluid the object belongs to. More... | |
double | get_gam1 () const |
Returns the adiabatic index . More... | |
double | get_gam2 () const |
Returns the adiabatic index . More... | |
double | get_gam3 () const |
Returns the adiabatic index . More... | |
double | get_gam4 () const |
Returns the adiabatic index . More... | |
double | get_gam5 () const |
Returns the adiabatic index . More... | |
double | get_gam6 () const |
Returns the adiabatic index . More... | |
double | get_kap1 () const |
Returns the pressure coefficient [unit: ], where . More... | |
double | get_kap2 () const |
Returns the pressure coefficient [unit: ], where . More... | |
double | get_kap3 () const |
Returns the pressure coefficient [unit: ], where . More... | |
double | get_beta () const |
Returns the coefficient [unit: ], where . More... | |
int | get_typeos () const |
virtual void | sauve (FILE *) const |
Save in a file. More... | |
virtual bool | nbar_ent_p (const double ent1, const double ent2, const double delta2, double &nbar1, double &nbar2) const |
Computes both baryon densities from the log-enthalpies. More... | |
virtual double | nbar_ent_p1 (const double ent1) const |
Computes baryon density out of the log-enthalpy asuming that only fluid 1 is present. More... | |
virtual double | nbar_ent_p2 (const double ent2) const |
Computes baryon density out of the log-enthalpy assuming that only fluid 2 is present. More... | |
virtual double | ener_nbar_p (const double nbar1, const double nbar2, const double delta2) const |
Computes the total energy density from the baryonic densities and the relative velocity. More... | |
virtual double | press_nbar_p (const double nbar1, const double nbar2, const double delta2) const |
Computes the pressure from the baryonic densities and the relative velocity. More... | |
virtual Eos * | trans2Eos () const |
Makes a translation from Eos_bifluid to Eos . More... | |
virtual double | get_K11 (const double n1, const double n2, const double delta2) const |
Computes the derivative of the energy with respect to (baryonic density 1) . More... | |
virtual double | get_K12 (const double n1, const double n2, const double delta2) const |
Computes the derivative of the energy with respect to . More... | |
virtual double | get_K22 (const double n1, const double n2, const double delta2) const |
Computes the derivative of the energy/(baryonic density 2) . More... | |
string | get_name () const |
Returns the EOS name. More... | |
double | get_m1 () const |
Return the individual particule mass . More... | |
double | get_m2 () const |
Return the individual particule mass . More... | |
virtual void | calcule_tout (const Cmp &ent1, const Cmp &ent2, const Cmp &delta2, Cmp &nbar1, Cmp &nbar2, Cmp &ener, Cmp &press, int nzet, int l_min=0) const |
General computational method for Cmp 's, it computes both baryon densities, energy and pressure profiles. More... | |
void | nbar_ent (const Cmp &ent1, const Cmp &ent2, const Cmp &delta2, Cmp &nbar1, Cmp &nbar2, int nzet, int l_min=0) const |
Computes both baryon density fields from the log-enthalpy fields and the relative velocity. More... | |
Cmp | ener_ent (const Cmp &ent1, const Cmp &ent2, const Cmp &delta2, int nzet, int l_min=0) const |
Computes the total energy density from the log-enthalpy fields and the relative velocity. More... | |
Cmp | press_ent (const Cmp &ent1, const Cmp &ent2, const Cmp &delta2, int nzet, int l_min=0) const |
Computes the pressure from the log-enthalpy fields and the relative velocity. More... | |
Cmp | get_Knn (const Cmp &nbar1, const Cmp &nbar2, const Cmp &x2, int nzet, int l_min=0) const |
Computes the derivatives of the energy/(baryonic density 1) . More... | |
Cmp | get_Kpp (const Cmp &nbar1, const Cmp &nbar2, const Cmp &x2, int nzet, int l_min=0) const |
Computes the derivatives of the energy/(baryonic density 2) . More... | |
Cmp | get_Knp (const Cmp &nbar1, const Cmp &nbar2, const Cmp &x2, int nzet, int l_min=0) const |
Computes the derivatives of the energy with respect to . More... | |
void | calcule (const Cmp &nbar1, const Cmp &nbar2, const Cmp &x2, int nzet, int l_min, double(Eos_bifluid::*fait)(double, double, double) const, Cmp &resu) const |
General computational method for Cmp 's ( 's). More... | |
Static Public Member Functions | |
static Eos_bifluid * | eos_from_file (FILE *) |
Construction of an EOS from a binary file. More... | |
static Eos_bifluid * | eos_from_file (const char *fname) |
Construction of an EOS from a formatted file. More... | |
static Eos_bifluid * | eos_from_file (ifstream &) |
Construction of an EOS from a formatted file. More... | |
Protected Member Functions | |
Eos_bf_poly (FILE *) | |
Constructor from a binary file (created by the function sauve(FILE*) ). More... | |
Eos_bf_poly (const char *fname) | |
Constructor from a formatted file. More... | |
void | set_auxiliary () |
Computes the auxiliary quantities gam1m1 , gam2m1 and gam3m1 . More... | |
void | determine_type () |
Determines the type of the analytical EOS (see typeos ) More... | |
virtual ostream & | operator>> (ostream &) const |
Operator >> More... | |
Protected Attributes | |
double | gam1 |
Adiabatic indexes , see Eq.~eeosbfpolye}. More... | |
double | gam2 |
Adiabatic indexes , see Eq.~eeosbfpolye}. More... | |
double | gam3 |
Adiabatic indexes , see Eq.~eeosbfpolye}. More... | |
double | gam4 |
Adiabatic indexes , see Eq.~eeosbfpolye}. More... | |
double | gam5 |
Adiabatic indexes , see Eq.~eeosbfpolye}. More... | |
double | gam6 |
Adiabatic indexes , see Eq.~eeosbfpolye}. More... | |
double | kap1 |
Pressure coefficient , see Eq. More... | |
double | kap2 |
Pressure coefficient , see Eq. More... | |
double | kap3 |
Pressure coefficient , see Eq. More... | |
double | beta |
Coefficient , see Eq. More... | |
double | gam1m1 |
More... | |
double | gam2m1 |
More... | |
double | gam34m1 |
More... | |
double | gam56m1 |
More... | |
int | typeos |
The bi-fluid analytical EOS type: More... | |
double | relax |
Parameters needed for some inversions of the EOS. More... | |
double | precis |
contains the precision required in zerosec_b More... | |
double | ecart |
contains the precision required in the relaxation nbar_ent_p More... | |
string | name |
EOS name. More... | |
double | m_1 |
Individual particle mass [unit: ]. More... | |
double | m_2 |
Individual particle mass [unit: ]. More... | |
Friends | |
Eos_bifluid * | Eos_bifluid::eos_from_file (FILE *) |
The construction functions from a file. More... | |
Eos_bifluid * | Eos_bifluid::eos_from_file (const char *fname) |
Analytic equation of state for two fluids (relativistic case).
This equation of state (EOS) corresponds to two types of relativistic particles of rest mass is and , whose total energy density is related to their numerical densities , and relative velocity
( and being the 4-velocities of both fluids), by
The relativistic (i.e. including rest mass energy) chemical potentials are then
The pressure is given by the (zero-temperature) First Law of Thermodynamics: , so that
The log-enthalpies are defined as the logarithm of the ratio of the enthalpy per particle (see Eq.~eeosbfdefent}) by the particle rest mass energy :
From this system, the particle densities are obtained in term of the log-enthalpies. (The system (eeosbfentanal}) is a linear one if and ).
The energy density and pressure p can then be obtained as functions of baryonic densities.()
Definition at line 717 of file eos_bifluid.h.
Lorene::Eos_bf_poly::Eos_bf_poly | ( | double | kappa1, |
double | kappa2, | ||
double | kappa3, | ||
double | beta | ||
) |
Standard constructor.
The adiabatic indexes and are set to 2. All other adiabatic indexes , are set to 1. The individual particle masses and are set to the mean baryon mass . The inversion parameters are set to their default values (see hereafter the consrtuctor with all parameters).
kappa1 | pressure coefficient |
kappa2 | pressure coefficient |
kappa3 | pressure coefficient |
beta | coefficient in the entrainment term (cf. Eq.~(eeosbfpolye})) [unit: ], where |
Definition at line 160 of file eos_bf_poly.C.
References determine_type(), and set_auxiliary().
Lorene::Eos_bf_poly::Eos_bf_poly | ( | double | gamma1, |
double | gamma2, | ||
double | gamma3, | ||
double | gamma4, | ||
double | gamma5, | ||
double | gamma6, | ||
double | kappa1, | ||
double | kappa2, | ||
double | kappa3, | ||
double | beta, | ||
double | mass1 = 1 , |
||
double | mass2 = 1 , |
||
double | relax = 0.5 , |
||
double | precis = 1.e-9 , |
||
double | ecart = 1.e-8 |
||
) |
Standard constructor with all parameters.
gamma1 | adiabatic index |
gamma2 | adiabatic index |
gamma3 | adiabatic index |
gamma4 | adiabatic index |
gamma5 | adiabatic index |
gamma6 | adiabatic index (cf. Eq.~(eeosbfpolye})) |
kappa1 | pressure coefficient |
kappa2 | pressure coefficient |
kappa3 | pressure coefficient |
beta | coefficient in the entrainment term (cf. Eq.~(eeosbfpolye})) [unit: ], where |
mass1 | individual particule mass (neutrons) |
mass2 | individual particule mass (protons) [unit: ] |
relax | relaxation parameter (see par_inv ) |
precis | precision parameter for zerosec_b (see par_inv ) |
relax | precision parameter for relaxation procedure (see par_inv ) |
Definition at line 174 of file eos_bf_poly.C.
References determine_type(), and set_auxiliary().
Lorene::Eos_bf_poly::Eos_bf_poly | ( | const Eos_bf_poly & | eosi | ) |
|
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_bifluid::eos_from_file(FILE*)
.
Definition at line 208 of file eos_bf_poly.C.
References beta, determine_type(), ecart, Lorene::fread_be(), gam1, gam2, gam3, gam4, gam5, gam6, kap1, kap2, kap3, precis, relax, and set_auxiliary().
|
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_bifluid::eos_from_file(const char*)
.
Definition at line 234 of file eos_bf_poly.C.
References beta, determine_type(), ecart, gam1, gam2, gam3, gam4, gam5, gam6, kap1, kap2, kap3, precis, Lorene::read_variable(), relax, set_auxiliary(), and typeos.
|
virtual |
Destructor.
Definition at line 288 of file eos_bf_poly.C.
|
inherited |
General computational method for Cmp
's ( 's).
nbar1 | [input, unit ] baryonic density field of fluid 1 at which the derivatives are to be computed. |
nbar2 | [input, unit ] baryonic density field of fluid 2 at which the derivatives are to be computed |
x2 | [input, unit ] relative velocity both densities at which the derivative 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_bifluid which performs the pointwise calculation. |
resu | [output] result of the computation. |
Definition at line 661 of file eos_bifluid.C.
References Lorene::Cmp::get_etat().
|
virtualinherited |
General computational method for Cmp
's, it computes both baryon densities, energy and pressure profiles.
ent1 | [input] the first log-enthalpy field . |
ent2 | [input] the second log-enthalpy field . |
delta2 | [input] the relative velocity field |
nbar1 | [output] baryonic density of the first fluid |
nbar2 | [output] baryonic density of the second fluid [unit: ] |
ener | [output] total energy density of both fluids together |
press | [output] pressure p of both fluids together |
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. |
Definition at line 286 of file eos_bifluid.C.
References Lorene::Cmp::get_etat().
|
protected |
|
inherited |
Computes the total energy density from the log-enthalpy fields and the relative velocity.
ent1 | [input, unit: ] log-enthalpy |
ent2 | [input, unit: ] log-enthalpy |
delta2 | [input, unit: ] relative velocity |
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. |
Definition at line 504 of file eos_bifluid.C.
References Lorene::Cmp::get_etat(), and Lorene::Cmp::get_mp().
|
virtual |
Computes the total energy density from the baryonic densities and the relative velocity.
nbar1 | [input] baryonic density of the first fluid |
nbar2 | [input] baryonic density of the second fluid [unit: ] |
delta2 | [input, unit: ] relative velocity |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 892 of file eos_bf_poly.C.
References beta, gam1, gam2, gam3, gam4, gam5, gam6, kap1, kap2, kap3, Lorene::Eos_bifluid::m_1, Lorene::Eos_bifluid::m_2, 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 111 of file eos_bf_file.C.
References Lorene::fread_be().
|
staticinherited |
Construction of an EOS from a formatted file.
The following field has to be present:\ ident: [int] identifying the type of 2-fluid EOS 1 = relativistic polytropic EOS (class Eos_bf_poly
). \ 2 = Newtonian polytropic EOS (class Eos_bf_poly_newt
).
Definition at line 148 of file eos_bf_file.C.
References Lorene::read_variable().
|
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_bf_poly
).Eos_bf_poly_newt
).Eos_bf_tabul
). 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 190 of file eos_bf_file.C.
|
inline |
Returns the coefficient
[unit: ], where .
Definition at line 953 of file eos_bifluid.h.
References beta.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Computes the derivative of the energy with respect to (baryonic density 1) .
n1 | [input, unit ] baryonic density of fluid 1 at which the derivative is to be computed |
n2 | [input, unit ] baryonic density of fluid 2 at which the derivative is to be computed |
x | [input, unit ] relative Lorentz factor both densities at which the derivative is to be computed |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 933 of file eos_bf_poly.C.
References beta, gam1, gam3, gam4, gam5, gam6, kap1, kap3, Lorene::Eos_bifluid::m_1, and Lorene::pow().
|
virtual |
Computes the derivative of the energy with respect to .
n1 | [input, unit ] baryonic density of fluid 1 at which the derivative is to be computed |
n2 | [input, unit ] baryonic density of fluid 2 at which the derivative is to be computed |
x | [input, unit ] relative Lorentz factor both densities at which the derivative is to be computed |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 963 of file eos_bf_poly.C.
References beta, gam5, gam6, and Lorene::pow().
|
virtual |
Computes the derivative of the energy/(baryonic density 2) .
n1 | [input, unit ] baryonic density of fluid 1 at which the derivative is to be computed |
n2 | [input, unit ] baryonic density of fluid 2 at which the derivative is to be computed |
x | [input, unit ] relative Lorentz factor both densities at which the derivative is to be computed |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 948 of file eos_bf_poly.C.
References beta, gam2, gam3, gam4, gam5, gam6, kap2, kap3, Lorene::Eos_bifluid::m_2, and Lorene::pow().
|
inline |
Returns the pressure coefficient
[unit: ], where .
Definition at line 935 of file eos_bifluid.h.
References kap1.
|
inline |
Returns the pressure coefficient
[unit: ], where .
Definition at line 941 of file eos_bifluid.h.
References kap2.
|
inline |
Returns the pressure coefficient
[unit: ], where .
Definition at line 947 of file eos_bifluid.h.
References kap3.
|
inherited |
Computes the derivatives of the energy/(baryonic density 1) .
nbar1 | [input, unit ] baryonic density field of fluid 1 at which the derivatives are to be computed |
nbar2 | [input, unit ] baryonic density field of fluid 2 at which the derivatives are to be computed |
x2 | [input, unit ] relative velocity both densities at which the derivative is to be computed |
nzet | number of domains where the derivatives are to be computed. |
l_min | index of the innermost domain is which the derivatives are to be computed [default value: 0]; the derivatives are computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
get_K11
) Definition at line 750 of file eos_bifluid.C.
References Lorene::Eos_bifluid::calcule(), Lorene::Eos_bifluid::get_K11(), and Lorene::Cmp::get_mp().
|
inherited |
Computes the derivatives of the energy with respect to .
nbar1 | [input, unit ] baryonic density field of fluid 1 at which the derivatives are to be computed |
nbar2 | [input, unit ] baryonic density field of fluid 2 at which the derivatives are to be computed |
x2 | [input, unit ] relative velocity both densities at which the derivative is to be computed |
nzet | number of domains where the derivatives are to be computed. |
l_min | index of the innermost domain is which the derivatives are to be computed [default value: 0]; the derivatives are computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
get_K12
) Definition at line 761 of file eos_bifluid.C.
References Lorene::Eos_bifluid::calcule(), Lorene::Eos_bifluid::get_K12(), and Lorene::Cmp::get_mp().
|
inherited |
Computes the derivatives of the energy/(baryonic density 2) .
nbar1 | [input, unit ] baryonic density field of fluid 1 at which the derivatives are to be computed |
nbar2 | [input, unit ] baryonic density field of fluid 2 at which the derivatives are to be computed |
x2 | [input, unit ] relative velocity both densities at which the derivative is to be computed |
nzet | number of domains where the derivatives are to be computed. |
l_min | index of the innermost domain is which the derivatives are to be computed [default value: 0]; the derivatives are computed only in domains whose indices are in [l_min,l_min+nzet-1] . In the other domains, it is set to zero. |
get_K12
) Definition at line 772 of file eos_bifluid.C.
References Lorene::Eos_bifluid::calcule(), Lorene::Eos_bifluid::get_K22(), and Lorene::Cmp::get_mp().
|
inlineinherited |
Return the individual particule mass .
[unit: ].
Definition at line 263 of file eos_bifluid.h.
References Lorene::Eos_bifluid::m_1.
|
inlineinherited |
Return the individual particule mass .
[unit: ].
Definition at line 269 of file eos_bifluid.h.
References Lorene::Eos_bifluid::m_2.
|
inlineinherited |
Returns the EOS name.
Definition at line 253 of file eos_bifluid.h.
References Lorene::Eos_bifluid::name.
|
virtual |
Returns a number to identify the sub-classe of Eos_bifluid
the object belongs to.
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 101 of file eos_bf_file.C.
|
inherited |
Computes both baryon density fields from the log-enthalpy fields and the relative velocity.
ent1 | [input, unit: ] log-enthalpy |
ent2 | [input, unit: ] log-enthalpy |
delta2 | [input, unit: ] relative velocity |
nbar1 | [output] baryonic density of the first fluid |
nbar2 | [output] baryonic density of the second fluid [unit: ] |
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. |
Definition at line 416 of file eos_bifluid.C.
References Lorene::Cmp::get_etat().
|
virtual |
Computes both baryon densities from the log-enthalpies.
ent1 | [input, unit: ] log-enthalpy |
ent2 | [input, unit: ] log-enthalpy |
delta2 | [input, unit: ] relative velocity |
nbar1 | [output] baryonic density of the first fluid |
nbar2 | [output] baryonic density of the second fluid [unit: ] |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 510 of file eos_bf_poly.C.
References Lorene::Param::add_double(), Lorene::Param::add_double_mod(), beta, ecart, Lorene::exp(), gam1, gam1m1, gam2, gam2m1, gam3, gam4, gam5, gam6, Lorene::Param::get_double_mod(), kap1, kap2, kap3, Lorene::log(), Lorene::Eos_bifluid::m_1, Lorene::Eos_bifluid::m_2, Lorene::pow(), precis, relax, Lorene::sqrt(), typeos, and Lorene::zerosec_b().
|
virtual |
Computes baryon density out of the log-enthalpy asuming that only fluid 1 is present.
ent1 | [input, unit: ] log-enthalpy |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 881 of file eos_bf_poly.C.
References Lorene::exp(), gam1, gam1m1, kap1, and Lorene::Eos_bifluid::m_1.
|
virtual |
Computes baryon density out of the log-enthalpy assuming that only fluid 2 is present.
ent2 | [input, unit: ] log-enthalpy |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 885 of file eos_bf_poly.C.
References Lorene::exp(), gam2, gam2m1, kap2, and Lorene::Eos_bifluid::m_2.
|
virtual |
Comparison operator (difference)
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 444 of file eos_bf_poly.C.
References operator==().
void Lorene::Eos_bf_poly::operator= | ( | const Eos_bf_poly & | eosi | ) |
Assignment to another Eos_bf_poly
.
Definition at line 297 of file eos_bf_poly.C.
References beta, ecart, gam1, gam2, gam3, kap1, kap2, kap3, Lorene::Eos_bifluid::operator=(), precis, relax, set_auxiliary(), and typeos.
|
virtual |
Comparison operator (egality)
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 389 of file eos_bf_poly.C.
References beta, gam1, gam2, gam3, gam4, gam5, gam6, Lorene::Eos_bifluid::identify(), identify(), kap1, kap2, kap3, Lorene::Eos_bifluid::m_1, and Lorene::Eos_bifluid::m_2.
|
protectedvirtual |
|
inherited |
Computes the pressure from the log-enthalpy fields and the relative velocity.
ent1 | [input, unit: ] log-enthalpy |
ent2 | [input, unit: ] log-enthalpy |
delta2 | [input, unit: ] relative velocity |
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. |
Definition at line 584 of file eos_bifluid.C.
References Lorene::Cmp::get_etat(), and Lorene::Cmp::get_mp().
|
virtual |
Computes the pressure from the baryonic densities and the relative velocity.
nbar1 | [input] baryonic density of the first fluid |
nbar2 | [input] baryonic density of the second fluid [unit: ] |
delta2 | [input, unit: ] relative velocity |
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 912 of file eos_bf_poly.C.
References beta, gam1, gam1m1, gam2, gam2m1, gam3, gam34m1, gam4, gam5, gam56m1, gam6, kap1, kap2, kap3, and Lorene::pow().
|
virtual |
Save in a file.
Reimplemented from Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 455 of file eos_bf_poly.C.
References beta, ecart, Lorene::fwrite_be(), gam1, gam2, gam3, gam4, gam5, gam6, kap1, kap2, kap3, precis, relax, and Lorene::Eos_bifluid::sauve().
|
protected |
|
virtual |
Makes a translation from Eos_bifluid
to Eos
.
This is only useful for the construction of a Et_rot_bifluid
star and ought not to be used in other situations.
Implements Lorene::Eos_bifluid.
Reimplemented in Lorene::Eos_bf_poly_newt.
Definition at line 978 of file eos_bf_poly.C.
References gam1, kap1, and Lorene::Eos_bifluid::m_1.
|
friend |
The construction functions from a file.
|
protected |
Coefficient , see Eq.
~eeosbfpolye} [unit: ], where and .
Definition at line 767 of file eos_bifluid.h.
|
protected |
contains the precision required in the relaxation nbar_ent_p
Definition at line 807 of file eos_bifluid.h.
|
protected |
Adiabatic indexes , see Eq.~eeosbfpolye}.
Definition at line 724 of file eos_bifluid.h.
|
protected |
Definition at line 769 of file eos_bifluid.h.
|
protected |
Adiabatic indexes , see Eq.~eeosbfpolye}.
Definition at line 727 of file eos_bifluid.h.
|
protected |
Definition at line 770 of file eos_bifluid.h.
|
protected |
Adiabatic indexes , see Eq.~eeosbfpolye}.
Definition at line 730 of file eos_bifluid.h.
|
protected |
Definition at line 771 of file eos_bifluid.h.
|
protected |
Adiabatic indexes , see Eq.~eeosbfpolye}.
Definition at line 733 of file eos_bifluid.h.
|
protected |
Adiabatic indexes , see Eq.~eeosbfpolye}.
Definition at line 736 of file eos_bifluid.h.
|
protected |
Definition at line 772 of file eos_bifluid.h.
|
protected |
Adiabatic indexes , see Eq.~eeosbfpolye}.
Definition at line 739 of file eos_bifluid.h.
|
protected |
Pressure coefficient , see Eq.
~eeosbfpolye} [unit: ], where and .
Definition at line 746 of file eos_bifluid.h.
|
protected |
Pressure coefficient , see Eq.
~eeosbfpolye} [unit: ], where and .
Definition at line 753 of file eos_bifluid.h.
|
protected |
Pressure coefficient , see Eq.
~eeosbfpolye} [unit: ], where and .
Definition at line 760 of file eos_bifluid.h.
|
protectedinherited |
Individual particle mass
[unit: ].
Definition at line 191 of file eos_bifluid.h.
|
protectedinherited |
Individual particle mass
[unit: ].
Definition at line 196 of file eos_bifluid.h.
|
protectedinherited |
EOS name.
Definition at line 186 of file eos_bifluid.h.
|
protected |
contains the precision required in zerosec_b
Definition at line 804 of file eos_bifluid.h.
|
protected |
Parameters needed for some inversions of the EOS.
In particular, it is used for type 4 EOS: contains the relaxation parameter needed in the iteration
Definition at line 802 of file eos_bifluid.h.
|
protected |
The bi-fluid analytical EOS type:
0 - and . In this case, the EOS can be inverted analytically.
1 - , but or .
2 - , but none of the previous cases.
3 - , but none of the previous cases.
4 - None of the previous cases (the most general)
5 - special case of comparison to slow-rotation approximation: this is identical to typeos=0, but using a modified EOS-inversion method, namely we don't switch to a 1-fluid EOS in 1-fluid regions.
Definition at line 796 of file eos_bifluid.h.