|
LORENE
|
Class for stars in binary system. More...
#include <hot_star.h>
Public Member Functions | |
| Star_bin (Map &mp_i, int nzet_i, const Eos &eos_i, bool irrot, bool conf_flat) | |
| Standard constructor. More... | |
| Star_bin (const Star_bin &) | |
| Copy constructor. More... | |
| Star_bin (Map &mp_i, const Eos &eos_i, FILE *fich) | |
Constructor from a file (see sauve(FILE* )). More... | |
| virtual | ~Star_bin () |
| Destructor. More... | |
| void | operator= (const Star_bin &) |
Assignment to another Star_bin. More... | |
| Scalar & | set_pot_centri () |
| Read/write the centrifugal potential. More... | |
| Scalar & | set_logn_comp () |
| Read/write of the logarithm of the lapse generated principally by the companion. More... | |
| void | set_logn_auto (const Scalar &logn_auto_new) |
| Assignment of a new logn_auto. More... | |
| void | set_lnq_auto (const Scalar &lnq_auto_new) |
| Assignment of a new lnq_auto. More... | |
| Vector & | set_beta_auto () |
Read/write of . More... | |
| Vector & | set_beta () |
Read/write of . More... | |
| void | set_conf_flat (bool confflat) |
| Write if conformally flat. More... | |
| bool | is_irrotational () const |
Returns true for an irrotational motion, false for a corotating one. More... | |
| const Scalar & | get_psi0 () const |
| Returns the non-translational part of the velocity potential. More... | |
| const Vector & | get_d_psi () const |
| Returns the covariant derivative of the velocity potential (Spherical components with respect to the mapping of the star) More... | |
| const Vector & | get_wit_w () const |
| Returns the spatial projection of the fluid 3-velocity with respect to the co-orbiting observer. More... | |
| const Scalar & | get_loggam () const |
| Returns the logarithm of the Lorentz factor between the fluid and the co-orbiting observer. More... | |
| const Vector & | get_bsn () const |
Returns the shift vector, divided by N, of the rotating coordinates, . More... | |
| const Scalar & | get_pot_centri () const |
| Returns the centrifugal potential. More... | |
| const Scalar & | get_logn_auto () const |
| Returns the part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by the star. More... | |
| const Scalar & | get_logn_comp () const |
| Returns the part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by the companion star. More... | |
| const Vector & | get_beta_auto () const |
Returns the part of the shift vector generated principally by the star. More... | |
| const Vector & | get_beta_comp () const |
Returns the part of the shift vector generated principally by the star. More... | |
| const Scalar & | get_lnq_auto () const |
Returns the part of the vector field generated principally by the star. More... | |
| const Scalar & | get_lnq_comp () const |
Returns the part of the vector field generated principally by the companion star. More... | |
| const Vector & | get_dcov_logn () const |
Returns the covariant derivative of . More... | |
| const Vector & | get_dcon_logn () const |
Returns the contravariant derivative of . More... | |
| const Vector & | get_dcov_phi () const |
Returns the covariant derivative of (logarithm of the conformal factor). More... | |
| const Vector & | get_dcon_phi () const |
Returns the contravariant derivative of (logarithm of the conformal factor). More... | |
| const Scalar & | get_psi4 () const |
Return the conformal factor . More... | |
| const Metric & | get_flat () const |
| Return the flat metric defined on the mapping (Spherical components with respect to the mapping of the star) More... | |
| const Metric & | get_gtilde () const |
Return the conformal 3-metric . More... | |
| const Sym_tensor & | get_hij () const |
Return the total deviation of the inverse conformal metric from the inverse flat metric. More... | |
| const Sym_tensor & | get_hij_auto () const |
Return the deviation of the inverse conformal metric from the inverse flat metric principally generated by the star. More... | |
| const Sym_tensor & | get_hij_comp () const |
Return the deviation of the inverse conformal metric from the inverse flat metric generated principally by the companion star. More... | |
| const Sym_tensor & | get_tkij_auto () const |
Returns the part of the extrinsic curvature tensor generated by beta_auto. More... | |
| const Sym_tensor & | get_tkij_comp () const |
Returns the part of the extrinsic curvature tensor generated by beta_comp. More... | |
| const Scalar & | get_kcar_auto () const |
Returns the part of generated by beta_auto. More... | |
| const Scalar & | get_kcar_comp () const |
Returns the part of generated by beta_comp. More... | |
| const Scalar | get_decouple () const |
Returns the function used to construct beta_auto from beta. More... | |
| bool | is_conf_flat () const |
| virtual void | sauve (FILE *) const |
| Save in a file. More... | |
| virtual double | mass_b () const |
| Baryon mass. More... | |
| virtual double | mass_g () const |
| Gravitational mass. More... | |
| virtual double | xa_barycenter () const |
| Absolute coordinate X of the barycenter of the baryon density,. More... | |
| virtual void | hydro_euler () |
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid frame, as well as wit_w and loggam. More... | |
| void | update_metric (const Star_bin &comp, double omega) |
| Computes metric coefficients from known potentials, when the companion is another star. More... | |
| void | update_metric (const Star_bin &comp, const Star_bin &star_prev, double relax, double omega) |
Same as update_metric(const Star_bin& ) but with relaxation. More... | |
| void | update_metric_der_comp (const Star_bin &comp, double omega) |
| Computes the derivative of metric functions related to the companion star. More... | |
| void | kinematics (double omega, double x_axe) |
Computes the quantities bsn and pot_centri. More... | |
| void | fait_d_psi () |
Computes the gradient of the total velocity potential . More... | |
| void | extrinsic_curvature (double omega) |
Computes tkij_auto and akcar_auto from beta_auto, nn and Q. More... | |
| void | equilibrium (double ent_c, int mermax, int mermax_potvit, int mermax_poisson, double relax_poisson, double relax_potvit, double thres_adapt, Tbl &diff, double om) |
| Computes an equilibrium configuration. More... | |
| double | velocity_potential (int mermax, double precis, double relax) |
Computes the non-translational part of the velocity scalar potential by solving the continuity equation. More... | |
| void | relaxation (const Star_bin &star_prev, double relax_ent, double relax_met, int mer, int fmer_met) |
Performs a relaxation on ent, logn_auto, lnq_auto, beta_auto and hij_auto. More... | |
| void | test_K_Hi () const |
| Test if the gauge conditions we impose are well satisfied. More... | |
| void | helical (double omega) const |
| Test of the helical symmetry. More... | |
| Map & | set_mp () |
| Read/write of the mapping. More... | |
| void | set_enthalpy (const Scalar &) |
| Assignment of the enthalpy field. More... | |
| void | equation_of_state () |
| Computes the proper baryon and energy density, as well as pressure from the enthalpy. More... | |
| virtual void | equilibrium_spher (double ent_c, double precis=1.e-14, const Tbl *pent_limit=0x0) |
| Computes a spherical static configuration. More... | |
| const Map & | get_mp () const |
| Returns the mapping. More... | |
| int | get_nzet () const |
| Returns the number of domains occupied by the star. More... | |
| const Eos & | get_eos () const |
| Returns the equation of state. More... | |
| const Scalar & | get_ent () const |
| Returns the enthalpy field. More... | |
| const Scalar & | get_nbar () const |
| Returns the proper baryon density. More... | |
| const Scalar & | get_ener () const |
| Returns the proper total energy density. More... | |
| const Scalar & | get_press () const |
| Returns the fluid pressure. More... | |
| const Scalar & | get_ener_euler () const |
| Returns the total energy density with respect to the Eulerian observer. More... | |
| const Scalar & | get_s_euler () const |
| Returns the trace of the stress tensor in the Eulerian frame. More... | |
| const Scalar & | get_gam_euler () const |
| Returns the Lorentz factor between the fluid and Eulerian observers. More... | |
| const Vector & | get_u_euler () const |
| Returns the fluid 3-velocity with respect to the Eulerian observer. More... | |
| const Tensor & | get_stress_euler () const |
| Returns the spatial part of the stress-energy tensor with respect to the Eulerian observer. More... | |
| const Scalar & | get_logn () const |
| Returns the logarithm of the lapse N. More... | |
| const Scalar & | get_nn () const |
| Returns the lapse function N. More... | |
| const Vector & | get_beta () const |
Returns the shift vector . More... | |
| const Scalar & | get_lnq () const |
| const Metric & | get_gamma () const |
Returns the 3-metric . More... | |
| double | ray_eq () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_eq_pis2 () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_eq_pi () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_eq_3pis2 () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_pole () const |
Coordinate radius at [r_unit]. More... | |
| virtual const Itbl & | l_surf () const |
Description of the stellar surface: returns a 2-D Itbl containing the values of the domain index l on the surface at the collocation points in . More... | |
| const Tbl & | xi_surf () const |
Description of the stellar surface: returns a 2-D Tbl containing the values of the radial coordinate on the surface at the collocation points in . More... | |
| Map & | set_mp () |
| Read/write of the mapping. More... | |
| void | set_enthalpy (const Scalar &) |
| Assignment of the enthalpy field. More... | |
| void | equation_of_state () |
| Computes the proper baryon and energy density, as well as pressure from the enthalpy. More... | |
| virtual void | equilibrium_spher (double ent_c, double precis=1.e-14, const Tbl *pent_limit=0x0) |
| Computes a spherical static configuration. More... | |
| const Map & | get_mp () const |
| Returns the mapping. More... | |
| int | get_nzet () const |
| Returns the number of domains occupied by the star. More... | |
| const Hot_eos & | get_eos () const |
| Returns the equation of state. More... | |
| const Scalar & | get_ent () const |
| Returns the enthalpy field. More... | |
| const Scalar & | get_entropy () const |
| Returns the entropy field. More... | |
| const Scalar & | get_nbar () const |
| Returns the proper baryon density. More... | |
| const Scalar & | get_ener () const |
| Returns the proper total energy density. More... | |
| const Scalar & | get_press () const |
| Returns the fluid pressure. More... | |
| const Scalar & | get_temp () const |
| Returns the fluid temperature. More... | |
| const Scalar & | get_ener_euler () const |
| Returns the total energy density with respect to the Eulerian observer. More... | |
| const Scalar & | get_s_euler () const |
| Returns the trace of the stress tensor in the Eulerian frame. More... | |
| const Scalar & | get_gam_euler () const |
| Returns the Lorentz factor between the fluid and Eulerian observers. More... | |
| const Vector & | get_u_euler () const |
| Returns the fluid 3-velocity with respect to the Eulerian observer. More... | |
| const Tensor & | get_stress_euler () const |
| Returns the spatial part of the stress-energy tensor with respect to the Eulerian observer. More... | |
| const Scalar & | get_logn () const |
| Returns the logarithm of the lapse N. More... | |
| const Scalar & | get_nn () const |
| Returns the lapse function N. More... | |
| const Vector & | get_beta () const |
Returns the shift vector . More... | |
| const Scalar & | get_lnq () const |
| const Metric & | get_gamma () const |
Returns the 3-metric . More... | |
| double | ray_eq () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_eq_pis2 () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_eq_pi () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_eq_3pis2 () const |
Coordinate radius at , [r_unit]. More... | |
| double | ray_pole () const |
Coordinate radius at [r_unit]. More... | |
| virtual const Itbl & | l_surf () const |
Description of the stellar surface: returns a 2-D Itbl containing the values of the domain index l on the surface at the collocation points in . More... | |
| const Tbl & | xi_surf () const |
Description of the stellar surface: returns a 2-D Tbl containing the values of the radial coordinate on the surface at the collocation points in . More... | |
Protected Member Functions | |
| virtual void | del_deriv () const |
| Deletes all the derived quantities. More... | |
| virtual void | set_der_0x0 () const |
Sets to 0x0 all the pointers on derived quantities. More... | |
| virtual void | del_hydro_euler () |
Sets to ETATNONDEF (undefined state) the hydrodynamical quantities relative to the Eulerian observer. More... | |
| virtual ostream & | operator>> (ostream &) const |
| Operator >> (virtual function called by the operator <<). More... | |
Protected Attributes | |
| bool | irrotational |
true for an irrotational star, false for a corotating one More... | |
| Scalar | psi0 |
Scalar potential of the non-translational part of fluid 4-velocity (in the irrotational case) More... | |
| Vector | d_psi |
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star) More... | |
| Vector | wit_w |
| Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer. More... | |
| Scalar | loggam |
| Logarithm of the Lorentz factor between the fluid and the co-orbiting observer. More... | |
| Vector | bsn |
3-vector shift, divided by N, of the rotating coordinates, . More... | |
| Scalar | pot_centri |
| Centrifugal potential. More... | |
| Scalar | logn_auto |
| Part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by the star. More... | |
| Scalar | logn_comp |
| Part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by the companion star. More... | |
| Vector | dcov_logn |
| Covariant derivative of the total logarithm of the lapse. More... | |
| Vector | dcon_logn |
| Contravariant derivative of the total logarithm of the lapse. More... | |
| Scalar | lnq_auto |
Scalar field generated principally by the star. More... | |
| Scalar | lnq_comp |
Scalar field generated principally by the companion star. More... | |
| Scalar | psi4 |
Conformal factor . More... | |
| Vector | dcov_phi |
| Covariant derivative of the logarithm of the conformal factor. More... | |
| Vector | dcon_phi |
| Contravariant derivative of the logarithm of the conformal factor. More... | |
| Metric_flat | flat |
| Flat metric defined on the mapping (Spherical components with respect to the mapping of the star) . More... | |
| Metric | gtilde |
Conformal metric . More... | |
| Vector | beta_auto |
| Part of the shift vector generated principally by the star (Spherical components with respect to the mapping of the star) More... | |
| Vector | beta_comp |
| Part of the shift vector generated principally by the star (Spherical components with respect to the mapping of the star) More... | |
| Sym_tensor | hij |
Total deviation of the inverse conformal metric from the inverse flat metric. More... | |
| Sym_tensor | hij_auto |
Deviation of the inverse conformal metric from the inverse flat metric generated principally by the star. More... | |
| Sym_tensor | hij_comp |
Deviation of the inverse conformal metric from the inverse flat metric generated principally by the companion star. More... | |
| Sym_tensor | tkij_auto |
Part of the extrinsic curvature tensor generated by beta_auto. More... | |
| Sym_tensor | tkij_comp |
Part of the extrinsic curvature tensor generated by beta_comp. More... | |
| Scalar | kcar_auto |
Part of the scalar generated by beta_auto, i.e. More... | |
| Scalar | kcar_comp |
Part of the scalar generated by beta_auto and beta_comp, i.e. More... | |
| Scalar | ssjm1_logn |
Effective source at the previous step for the resolution of the Poisson equation for logn_auto. More... | |
| Scalar | ssjm1_lnq |
Effective source at the previous step for the resolution of the Poisson equation for lnq_auto. More... | |
| Scalar | ssjm1_khi |
Effective source at the previous step for the resolution of the Poisson equation for khi. More... | |
| Vector | ssjm1_wbeta |
| Scalar | ssjm1_h11 |
Effective source at the previous step for the resolution of the Poisson equation for h00_auto. More... | |
| Scalar | ssjm1_h21 |
Effective source at the previous step for the resolution of the Poisson equation for h10_auto. More... | |
| Scalar | ssjm1_h31 |
Effective source at the previous step for the resolution of the Poisson equation for h20_auto. More... | |
| Scalar | ssjm1_h22 |
Effective source at the previous step for the resolution of the Poisson equation for h11_auto. More... | |
| Scalar | ssjm1_h32 |
Effective source at the previous step for the resolution of the Poisson equation for h21_auto. More... | |
| Scalar | ssjm1_h33 |
Effective source at the previous step for the resolution of the Poisson equation for h22_auto. More... | |
| Scalar | decouple |
Function used to construct the part generated by the star from the total . More... | |
| bool | conf_flat |
true if the 3-metric is conformally flat, false for a more general metric. More... | |
| double * | p_xa_barycenter |
| Absolute coordinate X of the barycenter of the baryon density. More... | |
| Map & | mp |
| Mapping associated with the star. More... | |
| int | nzet |
Number of domains of *mp occupied by the star. More... | |
| const Eos & | eos |
| Equation of state of the stellar matter. More... | |
| Scalar | ent |
| Log-enthalpy. More... | |
| Scalar | nbar |
| Baryon density in the fluid frame. More... | |
| Scalar | ener |
| Total energy density in the fluid frame. More... | |
| Scalar | press |
| Fluid pressure. More... | |
| Scalar | ener_euler |
| Total energy density in the Eulerian frame. More... | |
| Scalar | s_euler |
| Trace of the stress scalar in the Eulerian frame. More... | |
| Scalar | gam_euler |
| Lorentz factor between the fluid and Eulerian observers. More... | |
| Vector | u_euler |
| Fluid 3-velocity with respect to the Eulerian observer. More... | |
| Sym_tensor | stress_euler |
| Spatial part of the stress-energy tensor with respect to the Eulerian observer. More... | |
| Scalar | logn |
| Logarithm of the lapse N . More... | |
| Scalar | nn |
| Lapse function N . More... | |
| Vector | beta |
| Shift vector. More... | |
| Scalar | lnq |
| Metric | gamma |
| 3-metric More... | |
| double * | p_ray_eq |
Coordinate radius at , . More... | |
| double * | p_ray_eq_pis2 |
Coordinate radius at , . More... | |
| double * | p_ray_eq_pi |
Coordinate radius at , . More... | |
| double * | p_ray_eq_3pis2 |
Coordinate radius at , . More... | |
| double * | p_ray_pole |
Coordinate radius at . More... | |
| Itbl * | p_l_surf |
Description of the stellar surface: 2-D Itbl containing the values of the domain index l on the surface at the collocation points in . More... | |
| Tbl * | p_xi_surf |
Description of the stellar surface: 2-D Tbl containing the values of the radial coordinate on the surface at the collocation points in . More... | |
| double * | p_mass_b |
| Baryon mass. More... | |
| double * | p_mass_g |
| Gravitational mass. More... | |
| Map & | mp |
| Mapping associated with the star. More... | |
| int | nzet |
Number of domains of *mp occupied by the star. More... | |
| const Hot_eos & | heos |
| Equation of state of the stellar matter. More... | |
| Scalar | ent |
| Log-enthalpy. More... | |
| Scalar | nbar |
| Baryon density in the fluid frame. More... | |
| Scalar | ener |
| Total energy density in the fluid frame. More... | |
| Scalar | press |
| Fluid pressure. More... | |
| Scalar | temp |
| Temperature field (in MeV) More... | |
| Scalar | entropy |
| Entropy per baryon field (in $k_B$) More... | |
| Scalar | ener_euler |
| Total energy density in the Eulerian frame. More... | |
| Scalar | s_euler |
| Trace of the stress scalar in the Eulerian frame. More... | |
| Scalar | gam_euler |
| Lorentz factor between the fluid and Eulerian observers. More... | |
| Vector | u_euler |
| Fluid 3-velocity with respect to the Eulerian observer. More... | |
| Sym_tensor | stress_euler |
| Spatial part of the stress-energy tensor with respect to the Eulerian observer. More... | |
| Scalar | logn |
| Logarithm of the lapse N . More... | |
| Scalar | nn |
| Lapse function N . More... | |
| Vector | beta |
| Shift vector. More... | |
| Scalar | lnq |
| Metric | gamma |
| 3-metric More... | |
| double * | p_ray_eq |
Coordinate radius at , . More... | |
| double * | p_ray_eq_pis2 |
Coordinate radius at , . More... | |
| double * | p_ray_eq_pi |
Coordinate radius at , . More... | |
| double * | p_ray_eq_3pis2 |
Coordinate radius at , . More... | |
| double * | p_ray_pole |
Coordinate radius at . More... | |
| Itbl * | p_l_surf |
Description of the stellar surface: 2-D Itbl containing the values of the domain index l on the surface at the collocation points in . More... | |
| Tbl * | p_xi_surf |
Description of the stellar surface: 2-D Tbl containing the values of the radial coordinate on the surface at the collocation points in . More... | |
| double * | p_mass_b |
| Baryon mass. More... | |
| double * | p_mass_g |
| Gravitational mass. More... | |
Friends | |
| class | Binary |
Class for stars in binary system.
*** UNDER DEEVELOPMENT ***()
A Star_bin can be construted in two states, represented by the bool member irrotational: (i) irrotational (i.e. the fluid motion is irrotational) or (ii) rigidly corotating with respect to the orbital motion (synchronized binary).
*** UNDER DEEVELOPMENT ***()
A Star_bin can be construted in two states, represented by the bool member irrotational: (i) irrotational (i.e. the fluid motion is irrotational) or (ii) rigidly corotating with respect to the orbital motion (synchronized binary).
Definition at line 394 of file hot_star.h.
| Lorene::Star_bin::Star_bin | ( | Map & | mp_i, |
| int | nzet_i, | ||
| const Eos & | eos_i, | ||
| bool | irrot, | ||
| bool | conf_flat | ||
| ) |
Standard constructor.
| mp_i | Mapping on which the star will be defined |
| nzet_i | Number of domains occupied by the star |
| eos_i | Equation of state of the stellar matter |
| irrot | should be true for an irrotational star, false for a corotating one |
| conf_flat | should be true for a conformally flat metric false for a general one |
Definition at line 118 of file star_bin.C.
References Lorene::Hot_star::beta, beta_auto, beta_comp, bsn, Lorene::Vector::change_triad(), Lorene::Tensor::change_triad(), d_psi, dcon_logn, dcon_phi, dcov_logn, dcov_phi, Lorene::Map::flat_met_cart(), Lorene::Hot_star::gamma, Lorene::Map::get_bvect_cart(), hij, hij_auto, hij_comp, kcar_auto, kcar_comp, lnq_auto, lnq_comp, loggam, logn_auto, logn_comp, Lorene::Hot_star::mp, pot_centri, psi0, psi4, set_der_0x0(), Lorene::Tensor::set_etat_zero(), ssjm1_h11, ssjm1_h21, ssjm1_h22, ssjm1_h31, ssjm1_h32, ssjm1_h33, ssjm1_khi, ssjm1_lnq, ssjm1_logn, Lorene::Hot_star::stress_euler, tkij_auto, tkij_comp, Lorene::Hot_star::u_euler, and wit_w.
| Lorene::Star_bin::Star_bin | ( | const Star_bin & | star | ) |
Constructor from a file (see sauve(FILE* )).
| mp_i | Mapping on which the star will be defined |
| eos_i | Equation of state of the stellar matter |
| fich | input file (must have been created by the function sauve) |
Definition at line 261 of file star_bin.C.
References Lorene::Hot_star::beta, beta_comp, bsn, Lorene::Vector::change_triad(), Lorene::Tensor::change_triad(), conf_flat, d_psi, dcon_logn, dcon_phi, dcov_logn, dcov_phi, Lorene::Map::flat_met_cart(), Lorene::Hot_star::gam_euler, Lorene::Hot_star::gamma, Lorene::Map::get_bvect_cart(), Lorene::Map::get_mg(), hij, hij_comp, irrotational, kcar_auto, kcar_comp, lnq_comp, loggam, logn_comp, Lorene::Hot_star::mp, pot_centri, psi0, psi4, set_der_0x0(), Lorene::Tensor::set_etat_zero(), Lorene::Hot_star::stress_euler, tkij_auto, tkij_comp, Lorene::Hot_star::u_euler, and wit_w.
|
virtual |
|
protectedvirtual |
Deletes all the derived quantities.
Reimplemented from Lorene::Hot_star.
Definition at line 372 of file star_bin.C.
References Lorene::Star::del_deriv(), p_xa_barycenter, and set_der_0x0().
|
protectedvirtual |
Sets to ETATNONDEF (undefined state) the hydrodynamical quantities relative to the Eulerian observer.
Reimplemented from Lorene::Hot_star.
Definition at line 392 of file star_bin.C.
References del_deriv(), and Lorene::Star::del_hydro_euler().
|
inherited |
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
Definition at line 489 of file hot_star.C.
References Lorene::Scalar::allocate_all(), Lorene::Hot_star::del_deriv(), Lorene::Hot_star::ener, Lorene::Hot_eos::ener_Hs(), Lorene::Hot_star::ent, Lorene::Hot_star::entropy, Lorene::Mg3d::get_grille3d(), Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), Lorene::Hot_star::heos, Lorene::Hot_star::mp, Lorene::Hot_star::nbar, Lorene::Hot_eos::nbar_Hs(), Lorene::Hot_star::nzet, Lorene::Hot_star::press, Lorene::Hot_eos::press_Hs(), Lorene::Mtbl::set(), Lorene::Scalar::set_domain(), Lorene::Mtbl::set_etat_qcq(), Lorene::Tbl::set_etat_qcq(), Lorene::Scalar::set_etat_qcq(), Lorene::Scalar::std_spectral_base(), Lorene::Mtbl::t, Lorene::Hot_star::temp, Lorene::Hot_eos::temp_Hs(), and Lorene::Grille3d::x.
|
inherited |
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
Definition at line 465 of file star.C.
References Lorene::Param::add_int(), Lorene::Scalar::allocate_all(), Lorene::Star::del_deriv(), Lorene::Star::ener, Lorene::Eos::ener_ent(), Lorene::Star::ent, Lorene::Star::eos, Lorene::Mg3d::get_grille3d(), Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), Lorene::Star::mp, Lorene::Star::nbar, Lorene::Eos::nbar_ent(), Lorene::Star::nzet, Lorene::Star::press, Lorene::Eos::press_ent(), Lorene::Mtbl::set(), Lorene::Scalar::set_domain(), Lorene::Mtbl::set_etat_qcq(), Lorene::Tbl::set_etat_qcq(), Lorene::Scalar::set_etat_qcq(), Lorene::Scalar::std_spectral_base(), Lorene::Mtbl::t, and Lorene::Grille3d::x.
| void Lorene::Star_bin::equilibrium | ( | double | ent_c, |
| int | mermax, | ||
| int | mermax_potvit, | ||
| int | mermax_poisson, | ||
| double | relax_poisson, | ||
| double | relax_potvit, | ||
| double | thres_adapt, | ||
| Tbl & | diff, | ||
| double | om | ||
| ) |
Computes an equilibrium configuration.
| ent_c | [input] Central enthalpy |
| mermax | [input] Maximum number of steps |
| mermax_poisson | [input] Maximum number of steps in poisson scalar |
| relax_poisson | [input] Relaxation factor in poisson scalar |
| mermax_potvit | [input] Maximum number of steps in Map_radial::poisson_compact |
| relax_potvit | [input] Relaxation factor in Map_radial::poisson_compact |
| thres_adapt | [input] Threshold on dH/dr for the adaptation of the mapping |
| diff | [output] 1-D Tbl for the storage of some error indicators |
Definition at line 146 of file star_bin_equilibrium.C.
References Lorene::abs(), Lorene::Map::adapt(), Lorene::Param::add_cmp_mod(), Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Param::add_int_mod(), Lorene::Param::add_tbl(), Lorene::Param::add_tenseur_mod(), Lorene::Hot_star::beta, beta_auto, Lorene::Metric::con(), Lorene::contract(), Lorene::Metric::cov(), dcon_logn, dcon_phi, dcov_logn, dcov_phi, Lorene::Tensor::derive_con(), Lorene::Tensor_sym::derive_con(), Lorene::Tensor::derive_cov(), Lorene::Scalar::derive_cov(), Lorene::Tensor_sym::derive_cov(), Lorene::diffrel(), Lorene::Sym_tensor::divergence(), Lorene::Vector::divergence(), Lorene::Scalar::dsdr(), Lorene::Hot_star::ener_euler, Lorene::Hot_star::ent, Lorene::Hot_star::equation_of_state(), Lorene::exp(), flat, Lorene::Map::get_bvect_cart(), Lorene::Connection::get_delta(), Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), Lorene::Map::get_ori_x(), gtilde, hij, hij_auto, Lorene::Map_et::homothetie(), hydro_euler(), Lorene::Tensor::inc_dzpuis(), irrotational, kcar_auto, kcar_comp, Lorene::Scalar::laplacian(), lnq_auto, loggam, Lorene::Hot_star::logn, logn_auto, logn_comp, Lorene::max(), Lorene::Hot_star::mp, Lorene::Hot_star::nn, Lorene::norme(), Lorene::Hot_star::nzet, Lorene::Scalar::poisson(), pot_centri, Lorene::pow(), Lorene::Hot_star::press, psi4, Lorene::Hot_star::ray_eq(), Lorene::Hot_star::ray_eq_pi(), Lorene::Hot_star::ray_pole(), Lorene::Map::reevaluate_symy(), Lorene::Map::resize(), Lorene::Hot_star::s_euler, Lorene::Tbl::set(), Lorene::Tbl::set_etat_qcq(), Lorene::Tenseur::set_etat_qcq(), Lorene::Cmp::set_etat_qcq(), Lorene::Scalar::set_spectral_va(), Lorene::Valeur::smooth(), Lorene::sqrt(), ssjm1_h11, ssjm1_h21, ssjm1_h22, ssjm1_h31, ssjm1_h32, ssjm1_h33, ssjm1_khi, ssjm1_lnq, ssjm1_logn, Lorene::Scalar::std_spectral_base(), tkij_auto, Lorene::Hot_star::u_euler, Lorene::Scalar::val_grid_point(), Lorene::Scalar::val_point(), Lorene::Map::val_r(), and velocity_potential().
|
virtualinherited |
Computes a spherical static configuration.
| ent_c | [input] central value of the enthalpy |
| precis | [input] threshold in the relative difference between the enthalpy fields of two consecutive steps to stop the iterative procedure (default value: 1.e-14) |
| ent_limit | [input] : array of enthalpy values to be set at the boundaries between the domains; if set to 0x0 (default), the initial values will be kept. |
Definition at line 104 of file hot_star_equil_spher.C.
References Lorene::Map_et::adapt(), Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Param::add_int_mod(), Lorene::Param::add_tbl(), Lorene::Scalar::annule(), Lorene::diffrel(), Lorene::Scalar::dsdr(), Lorene::Map_af::dsdr(), Lorene::Hot_star::ener, Lorene::Hot_star::ener_euler, Lorene::Hot_star::ent, Lorene::Hot_star::equation_of_state(), Lorene::exp(), Lorene::Hot_star::gam_euler, Lorene::Hot_star::gamma, Lorene::Map_af::get_alpha(), Lorene::Map_et::get_alpha(), Lorene::Map_af::get_beta(), Lorene::Map_et::get_beta(), Lorene::Map::get_bvect_cart(), Lorene::Map::get_mg(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), Lorene::Map_af::homothetie(), Lorene::Scalar::integrale(), Lorene::Hot_star::logn, Lorene::Hot_star::mass_b(), Lorene::Hot_star::mass_g(), Lorene::Hot_star::mp, Lorene::Hot_star::nn, Lorene::norme(), Lorene::Hot_star::nzet, Lorene::Map_af::poisson(), Lorene::Hot_star::press, Lorene::Hot_star::s_euler, Lorene::Vector::set(), Lorene::Map_af::set_alpha(), Lorene::Map_af::set_beta(), Lorene::Scalar::set_dzpuis(), Lorene::Cmp::set_etat_qcq(), Lorene::Tensor::set_etat_zero(), Lorene::sqrt(), Lorene::Scalar::std_spectral_base(), Lorene::Hot_star::u_euler, Lorene::Scalar::val_grid_point(), and Lorene::Map::val_r().
|
virtualinherited |
Computes a spherical static configuration.
| ent_c | [input] central value of the enthalpy |
| precis | [input] threshold in the relative difference between the enthalpy fields of two consecutive steps to stop the iterative procedure (default value: 1.e-14) |
| ent_limit | [input] : array of enthalpy values to be set at the boundaries between the domains; if set to 0x0 (default), the initial values will be kept. |
Definition at line 101 of file star_equil_spher.C.
References Lorene::Star_rot::a_car, Lorene::Map_et::adapt(), Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Param::add_int_mod(), Lorene::Param::add_tbl(), Lorene::Scalar::annule(), Lorene::Star_rot::b_car, Lorene::Star_rot::bbb, Lorene::diffrel(), Lorene::Scalar::dsdr(), Lorene::Map_af::dsdr(), Lorene::Star_rot::dzeta, Lorene::Star::ener, Lorene::Star::ener_euler, Lorene::Star::ent, Lorene::Star::equation_of_state(), Lorene::exp(), Lorene::Star::gam_euler, Lorene::Star::gamma, Lorene::Map_af::get_alpha(), Lorene::Map_et::get_alpha(), Lorene::Map_af::get_beta(), Lorene::Map_et::get_beta(), Lorene::Map::get_bvect_cart(), Lorene::Map::get_mg(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), Lorene::Map_af::homothetie(), Lorene::Scalar::integrale(), Lorene::Star::logn, Lorene::Star::mass_b(), Lorene::Star::mass_g(), Lorene::Star::mp, Lorene::Star::nn, Lorene::norme(), Lorene::Star::nzet, Lorene::Map_af::poisson(), Lorene::Star::press, Lorene::Star::s_euler, Lorene::Vector::set(), Lorene::Map_af::set_alpha(), Lorene::Map_af::set_beta(), Lorene::Scalar::set_dzpuis(), Lorene::Cmp::set_etat_qcq(), Lorene::Tensor::set_etat_zero(), Lorene::sqrt(), Lorene::Scalar::std_spectral_base(), Lorene::Star::u_euler, Lorene::Scalar::val_grid_point(), and Lorene::Map::val_r().
| void Lorene::Star_bin::extrinsic_curvature | ( | double | omega | ) |
Computes tkij_auto and akcar_auto from beta_auto, nn and Q.
| omega | angular velocity with respect to an asymptotically inertial observer |
Definition at line 78 of file star_bin_extr_curv.C.
References Lorene::Scalar::annule_hard(), beta_auto, Lorene::Metric::con(), Lorene::contract(), del_deriv(), Lorene::Tensor::derive_con(), Lorene::Sym_tensor::derive_lie(), Lorene::Vector::divergence(), Lorene::Map::get_bvect_cart(), Lorene::Map::get_mg(), Lorene::Mg3d::get_nzone(), Lorene::Map::get_rot_phi(), gtilde, hij_auto, kcar_auto, Lorene::Hot_star::mp, Lorene::Hot_star::nn, Lorene::Coord::set(), Lorene::Tensor::set(), Lorene::Mg3d::std_base_vect_cart(), tkij_auto, Lorene::Tensor::up_down(), Lorene::Map::xa, and Lorene::Map::ya.
| void Lorene::Star_bin::fait_d_psi | ( | ) |
Computes the gradient of the total velocity potential
.
Definition at line 648 of file star_bin.C.
References bsn, Lorene::Vector::change_triad(), d_psi, Lorene::Scalar::derive_cov(), Lorene::Hot_star::ent, Lorene::exp(), flat, Lorene::Hot_star::gam_euler, Lorene::Map::get_bvect_cart(), irrotational, Lorene::Hot_star::mp, psi0, psi4, Lorene::Vector::set(), Lorene::Tensor::set_etat_nondef(), and Lorene::Vector::std_spectral_base().
|
inlineinherited |
Returns the shift vector
.
Definition at line 313 of file hot_star.h.
References Lorene::Hot_star::beta.
|
inlineinherited |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Returns the proper total energy density.
Definition at line 278 of file hot_star.h.
References Lorene::Hot_star::ener.
|
inlineinherited |
Returns the proper total energy density.
Definition at line 370 of file star.h.
References Lorene::Star::ener.
|
inlineinherited |
Returns the total energy density with respect to the Eulerian observer.
Definition at line 287 of file hot_star.h.
References Lorene::Hot_star::ener_euler.
|
inlineinherited |
Returns the total energy density with respect to the Eulerian observer.
Definition at line 376 of file star.h.
References Lorene::Star::ener_euler.
|
inlineinherited |
Returns the enthalpy field.
Definition at line 269 of file hot_star.h.
References Lorene::Hot_star::ent.
|
inlineinherited |
|
inlineinherited |
Returns the entropy field.
Definition at line 272 of file hot_star.h.
References Lorene::Hot_star::ent.
|
inlineinherited |
Returns the equation of state.
Definition at line 266 of file hot_star.h.
References Lorene::Hot_star::heos.
|
inlineinherited |
|
inline |
|
inlineinherited |
Returns the Lorentz factor between the fluid and Eulerian observers.
Definition at line 293 of file hot_star.h.
References Lorene::Hot_star::gam_euler.
|
inlineinherited |
Returns the Lorentz factor between the fluid and Eulerian observers.
Definition at line 382 of file star.h.
References Lorene::Star::gam_euler.
|
inlineinherited |
Returns the 3-metric
.
Definition at line 320 of file hot_star.h.
References Lorene::Hot_star::gamma.
|
inlineinherited |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Returns the logarithm of the lapse N.
In the Newtonian case, this is the Newtonian gravitational potential (in units of
).
Definition at line 307 of file hot_star.h.
References Lorene::Hot_star::logn.
|
inlineinherited |
Returns the logarithm of the lapse N.
In the Newtonian case, this is the Newtonian gravitational potential (in units of
).
Definition at line 396 of file star.h.
References Lorene::Star::logn.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns the proper baryon density.
Definition at line 275 of file hot_star.h.
References Lorene::Hot_star::nbar.
|
inlineinherited |
Returns the proper baryon density.
Definition at line 367 of file star.h.
References Lorene::Star::nbar.
|
inlineinherited |
Returns the lapse function N.
Definition at line 310 of file hot_star.h.
References Lorene::Hot_star::nn.
|
inlineinherited |
|
inlineinherited |
Returns the number of domains occupied by the star.
Definition at line 263 of file hot_star.h.
References Lorene::Hot_star::nzet.
|
inlineinherited |
Returns the number of domains occupied by the star.
Definition at line 358 of file star.h.
References Lorene::Star::nzet.
|
inline |
|
inlineinherited |
Returns the fluid pressure.
Definition at line 281 of file hot_star.h.
References Lorene::Hot_star::press.
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
Returns the trace of the stress tensor in the Eulerian frame.
Definition at line 290 of file hot_star.h.
References Lorene::Hot_star::s_euler.
|
inlineinherited |
Returns the trace of the stress tensor in the Eulerian frame.
Definition at line 379 of file star.h.
References Lorene::Star::s_euler.
|
inlineinherited |
Returns the spatial part of the stress-energy tensor with respect to the Eulerian observer.
Definition at line 301 of file hot_star.h.
References Lorene::Hot_star::stress_euler.
|
inlineinherited |
Returns the spatial part of the stress-energy tensor with respect to the Eulerian observer.
Definition at line 390 of file star.h.
References Lorene::Star::stress_euler.
|
inlineinherited |
Returns the fluid temperature.
Definition at line 284 of file hot_star.h.
References Lorene::Hot_star::temp.
|
inline |
|
inline |
|
inlineinherited |
Returns the fluid 3-velocity with respect to the Eulerian observer.
Definition at line 296 of file hot_star.h.
References Lorene::Hot_star::u_euler.
|
inlineinherited |
Returns the fluid 3-velocity with respect to the Eulerian observer.
Definition at line 385 of file star.h.
References Lorene::Star::u_euler.
|
inline |
| void Lorene::Star_bin::helical | ( | double | omega | ) | const |
Test of the helical symmetry.
|
virtual |
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid frame, as well as wit_w and loggam.
The calculation is performed starting from the quantities ent, ener, press and bsn,
which are supposed to be up to date.
From these, the following fields are updated: gam_euler, u_euler, ener_euler, s_euler, stress_euler,
wit_w and loggam.
Reimplemented from Lorene::Hot_star.
Definition at line 69 of file star_bin_hydro.C.
References Lorene::Tensor::annule_domain(), bsn, Lorene::Tensor::change_triad(), Lorene::Metric::con(), Lorene::contract(), Lorene::Metric::cov(), d_psi, del_deriv(), Lorene::Hot_star::ener, Lorene::Hot_star::ener_euler, Lorene::Hot_star::ent, Lorene::exp(), Lorene::Hot_star::gam_euler, Lorene::Hot_star::gamma, Lorene::Map::get_bvect_cart(), Lorene::Map::get_mg(), Lorene::Mg3d::get_nzone(), irrotational, Lorene::log(), loggam, Lorene::Hot_star::mp, Lorene::norme(), Lorene::Hot_star::press, Lorene::Hot_star::s_euler, Lorene::Tensor::set(), Lorene::Scalar::set_dzpuis(), Lorene::Tensor::set_etat_zero(), Lorene::sqrt(), Lorene::Vector::std_spectral_base(), Lorene::Scalar::std_spectral_base(), Lorene::Hot_star::stress_euler, Lorene::Hot_star::u_euler, and wit_w.
|
inline |
Returns true for an irrotational motion, false for a corotating one.
Definition at line 773 of file star.h.
References irrotational.
| void Lorene::Star_bin::kinematics | ( | double | omega, |
| double | x_axe | ||
| ) |
Computes the quantities bsn and pot_centri.
The calculation is performed starting from the quantities nn, beta, Q,
which are supposed to be up to date.
| omega | angular velocity with respect to an asymptotically inertial observer |
| x_axe | absolute X coordinate of the rotation axis |
Definition at line 78 of file star_bin_kinema.C.
References Lorene::Tensor::annule(), Lorene::Scalar::annule(), Lorene::Hot_star::beta, bsn, Lorene::Vector::change_triad(), Lorene::Tensor::change_triad(), Lorene::contract(), Lorene::Metric::cov(), del_deriv(), Lorene::Hot_star::gamma, Lorene::Map::get_bvect_cart(), Lorene::Map::get_mg(), Lorene::Mg3d::get_nzone(), Lorene::Map::get_rot_phi(), Lorene::log(), Lorene::Hot_star::mp, Lorene::Hot_star::nn, pot_centri, Lorene::Vector::set(), Lorene::sqrt(), Lorene::Vector::std_spectral_base(), Lorene::Scalar::std_spectral_base(), Lorene::Map::xa, and Lorene::Map::ya.
|
virtualinherited |
Description of the stellar surface: returns a 2-D Itbl containing the values of the domain index l on the surface at the collocation points in
.
The stellar surface is defined as the location where the enthalpy (member ent) vanishes.
Definition at line 69 of file hot_star_global.C.
References Lorene::Hot_star::ent, Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Scalar::get_spectral_va(), Lorene::Hot_star::mp, Lorene::Hot_star::nzet, Lorene::Hot_star::p_l_surf, and Lorene::Hot_star::p_xi_surf.
|
virtualinherited |
Description of the stellar surface: returns a 2-D Itbl containing the values of the domain index l on the surface at the collocation points in
.
The stellar surface is defined as the location where the enthalpy (member ent) vanishes.
Reimplemented in Lorene::Star_rot.
Definition at line 66 of file star_global.C.
References Lorene::Star::ent, Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Scalar::get_spectral_va(), Lorene::Star::mp, Lorene::Star::nzet, Lorene::Star::p_l_surf, and Lorene::Star::p_xi_surf.
|
virtual |
Baryon mass.
Implements Lorene::Hot_star.
Definition at line 70 of file star_bin_global.C.
References Lorene::Metric::determinant(), Lorene::Hot_star::gam_euler, Lorene::Hot_star::gamma, Lorene::Scalar::integrale(), Lorene::Hot_star::nbar, Lorene::Hot_star::p_mass_b, Lorene::sqrt(), and Lorene::Scalar::std_spectral_base().
|
virtual |
Gravitational mass.
Implements Lorene::Hot_star.
Definition at line 96 of file star_bin_global.C.
References Lorene::Metric::determinant(), Lorene::Hot_star::ener_euler, Lorene::Hot_star::gamma, Lorene::Scalar::integrale(), Lorene::Hot_star::nn, Lorene::Hot_star::p_mass_g, Lorene::Hot_star::s_euler, Lorene::sqrt(), and Lorene::Scalar::std_spectral_base().
| void Lorene::Star_bin::operator= | ( | const Star_bin & | star | ) |
Assignment to another Star_bin.
Definition at line 407 of file star_bin.C.
References beta_auto, beta_comp, bsn, conf_flat, d_psi, dcon_logn, dcon_phi, dcov_logn, dcov_phi, decouple, del_deriv(), flat, gtilde, hij, hij_auto, hij_comp, irrotational, kcar_auto, kcar_comp, lnq_auto, lnq_comp, loggam, logn_auto, logn_comp, Lorene::Star::operator=(), pot_centri, psi0, psi4, ssjm1_h11, ssjm1_h21, ssjm1_h22, ssjm1_h31, ssjm1_h32, ssjm1_h33, ssjm1_khi, ssjm1_lnq, ssjm1_logn, tkij_auto, tkij_comp, and wit_w.
|
protectedvirtual |
Operator >> (virtual function called by the operator <<).
Reimplemented from Lorene::Hot_star.
Definition at line 525 of file star_bin.C.
References Lorene::Hot_star::beta, beta_auto, bsn, d_psi, Lorene::Hot_star::gam_euler, Lorene::Map::get_ori_x(), irrotational, kcar_auto, kcar_comp, loggam, logn_auto, logn_comp, Lorene::max(), Lorene::min(), Lorene::Hot_star::mp, Lorene::Star::operator>>(), Lorene::Hot_star::ray_eq(), Lorene::Hot_star::ray_eq_pi(), tkij_auto, tkij_comp, Lorene::Hot_star::u_euler, Lorene::Scalar::val_grid_point(), Lorene::Map::val_r(), wit_w, and xa_barycenter().
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 114 of file hot_star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Hot_star::mp, and Lorene::Hot_star::p_ray_eq.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 111 of file star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Star::mp, and Lorene::Star::p_ray_eq.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 239 of file hot_star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Hot_star::mp, and Lorene::Hot_star::p_ray_eq_3pis2.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 236 of file star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Star::mp, and Lorene::Star::p_ray_eq_3pis2.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 192 of file hot_star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Hot_star::mp, and Lorene::Hot_star::p_ray_eq_pi.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 189 of file star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Star::mp, and Lorene::Star::p_ray_eq_pi.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 144 of file hot_star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Hot_star::mp, and Lorene::Hot_star::p_ray_eq_pis2.
|
inherited |
Coordinate radius at
,
[r_unit].
Definition at line 141 of file star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_type_p(), Lorene::Mg3d::get_type_t(), Lorene::Star::mp, and Lorene::Star::p_ray_eq_pis2.
|
inherited |
Coordinate radius at
[r_unit].
Definition at line 284 of file hot_star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_type_t(), Lorene::Hot_star::mp, and Lorene::Hot_star::p_ray_pole.
|
inherited |
Coordinate radius at
[r_unit].
Definition at line 281 of file star_global.C.
References Lorene::Map::get_mg(), Lorene::Mg3d::get_type_t(), Lorene::Star::mp, and Lorene::Star::p_ray_pole.
| void Lorene::Star_bin::relaxation | ( | const Star_bin & | star_prev, |
| double | relax_ent, | ||
| double | relax_met, | ||
| int | mer, | ||
| int | fmer_met | ||
| ) |
Performs a relaxation on ent, logn_auto, lnq_auto, beta_auto and hij_auto.
| star_prev | [input] star at the previous step. |
| relax_ent | [input] Relaxation factor for ent |
| relax_met | [input] Relaxation factor for logn_auto, lnq_auto, beta_auto, only if (mer % fmer_met == 0). |
| mer | [input] Step number |
| fmer_met | [input] Step interval between metric updates |
Definition at line 704 of file star_bin.C.
References beta_auto, del_deriv(), Lorene::Hot_star::ent, Lorene::Star::ent, Lorene::Hot_star::equation_of_state(), hij_auto, lnq_auto, and logn_auto.
|
virtual |
Save in a file.
Reimplemented from Lorene::Hot_star.
Definition at line 492 of file star_bin.C.
References beta_auto, conf_flat, Lorene::Hot_star::gam_euler, hij_auto, irrotational, lnq_auto, logn_auto, psi0, Lorene::Star::sauve(), Lorene::Tensor::sauve(), Lorene::Scalar::sauve(), Lorene::Tensor_sym::sauve(), ssjm1_h11, ssjm1_h21, ssjm1_h22, ssjm1_h31, ssjm1_h32, ssjm1_h33, ssjm1_khi, ssjm1_lnq, and ssjm1_logn.
| Vector & Lorene::Star_bin::set_beta | ( | ) |
Read/write of
.
Definition at line 478 of file star_bin.C.
References Lorene::Hot_star::beta, and del_deriv().
| Vector & Lorene::Star_bin::set_beta_auto | ( | ) |
|
inline |
|
protectedvirtual |
Sets to 0x0 all the pointers on derived quantities.
Reimplemented from Lorene::Hot_star.
Definition at line 384 of file star_bin.C.
References p_xa_barycenter, and Lorene::Star::set_der_0x0().
|
inherited |
Assignment of the enthalpy field.
Definition at line 397 of file hot_star.C.
References Lorene::Hot_star::del_deriv(), Lorene::Hot_star::ent, and Lorene::Hot_star::equation_of_state().
|
inherited |
Assignment of the enthalpy field.
Definition at line 382 of file star.C.
References Lorene::Star::del_deriv(), Lorene::Star::ent, and Lorene::Star::equation_of_state().
|
inline |
|
inline |
| Scalar & Lorene::Star_bin::set_logn_comp | ( | ) |
Read/write of the logarithm of the lapse generated principally by the companion.
Definition at line 464 of file star_bin.C.
References del_deriv(), and logn_comp.
|
inlineinherited |
Read/write of the mapping.
Definition at line 227 of file hot_star.h.
References Lorene::Hot_star::mp.
|
inlineinherited |
| Scalar & Lorene::Star_bin::set_pot_centri | ( | ) |
Read/write the centrifugal potential.
Definition at line 457 of file star_bin.C.
References del_deriv(), and pot_centri.
| void Lorene::Star_bin::test_K_Hi | ( | ) | const |
Test if the gauge conditions we impose are well satisfied.
Definition at line 730 of file star_bin.C.
References Lorene::Metric::con(), Lorene::Tensor_sym::derive_cov(), Lorene::Sym_tensor::divergence(), flat, Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), gtilde, Lorene::Hot_star::mp, and Lorene::norme().
| void Lorene::Star_bin::update_metric | ( | const Star_bin & | comp, |
| double | omega | ||
| ) |
Computes metric coefficients from known potentials, when the companion is another star.
The calculation is performed starting from the quantities logn_auto, lnq_auto, beta_auto, hij_auto, comp.logn_auto, comp.lnq_auto, comp.beta_auto, comp.hij_auto which are supposed to be up to date. From these, the following fields are updated: logn_comp, lnq_comp, beta_comp, hij_comp, nn, psi4, beta,
| comp | companion star. |
| omega | angular velocity with respect to an asymptotically inertial observer |
Definition at line 96 of file star_bin_upmetr.C.
References Lorene::Map::get_mg(), Lorene::Star::get_mp(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), logn_auto, and Lorene::Hot_star::mp.
| void Lorene::Star_bin::update_metric | ( | const Star_bin & | comp, |
| const Star_bin & | star_prev, | ||
| double | relax, | ||
| double | omega | ||
| ) |
Same as update_metric(const Star_bin& ) but with relaxation.
| comp | companion star. |
| star_prev | previous value of the star. |
| relax | relaxation parameter. |
| omega | angular velocity with respect to an asymptotically inertial observer |
Definition at line 279 of file star_bin_upmetr.C.
References Lorene::Map::get_mg(), Lorene::Star::get_mp(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), logn_auto, and Lorene::Hot_star::mp.
| void Lorene::Star_bin::update_metric_der_comp | ( | const Star_bin & | comp, |
| double | omega | ||
| ) |
Computes the derivative of metric functions related to the companion star.
| omega | angular velocity with respect to an asymptotically inertial observer |
Definition at line 104 of file star_bin_upmetr_der.C.
References Lorene::Scalar::annule_hard(), beta_comp, Lorene::Vector::change_triad(), Lorene::Scalar::change_triad(), Lorene::Metric::con(), Lorene::contract(), dcon_logn, dcon_phi, dcov_logn, dcov_phi, Lorene::Tensor::dec_dzpuis(), Lorene::Scalar::dec_dzpuis(), del_deriv(), Lorene::Tensor::derive_con(), Lorene::Scalar::derive_con(), Lorene::Scalar::derive_cov(), Lorene::Sym_tensor::derive_lie(), Lorene::Vector::divergence(), flat, Lorene::Valeur::get_base(), Lorene::Map::get_bvect_cart(), get_flat(), Lorene::Map::get_mg(), Lorene::Tensor::get_mp(), Lorene::Mg3d::get_nzone(), Lorene::Map::get_rot_phi(), Lorene::Scalar::get_spectral_va(), Lorene::Tensor::get_triad(), gtilde, hij_comp, Lorene::Scalar::import(), Lorene::Tensor::inc_dzpuis(), kcar_comp, lnq_auto, logn_auto, Lorene::Hot_star::mp, Lorene::Hot_star::nn, Lorene::Coord::set(), Lorene::Vector::set(), Lorene::Tensor::set(), Lorene::Valeur::set_base(), Lorene::Scalar::set_spectral_va(), Lorene::Mg3d::std_base_vect_cart(), Lorene::Hot_star::temp, tkij_auto, tkij_comp, Lorene::Tensor::up_down(), Lorene::Map::xa, and Lorene::Map::ya.
| double Lorene::Star_bin::velocity_potential | ( | int | mermax, |
| double | precis, | ||
| double | relax | ||
| ) |
Computes the non-translational part of the velocity scalar potential
by solving the continuity equation.
| mermax | [input] Maximum number of steps in the iteration |
| precis | [input] Required precision: the iteration will be stopped when the relative difference on between two successive steps is lower than precis. |
| relax | [input] Relaxation factor. |
Definition at line 79 of file star_bin_vel_pot.C.
References Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Param::add_int_mod(), Lorene::Scalar::annule(), bsn, Lorene::Vector::change_triad(), Lorene::contract(), Lorene::Eos::der_nbar_ent(), Lorene::Scalar::derive_con(), Lorene::Tensor::derive_cov(), Lorene::Scalar::derive_cov(), Lorene::Tensor::down(), Lorene::Hot_star::ent, Lorene::Star::eos, Lorene::exp(), flat, Lorene::Map::flat_met_spher(), Lorene::Hot_star::gam_euler, Lorene::Map::get_bvect_cart(), Lorene::Scalar::get_etat(), Lorene::Map::get_mg(), Lorene::Mg3d::get_nzone(), Lorene::Tensor::get_triad(), hij, Lorene::Tensor::inc_dzpuis(), Lorene::Hot_star::mp, Lorene::Hot_star::nzet, psi0, psi4, Lorene::Scalar::set_domain(), Lorene::Tensor::set_etat_qcq(), Lorene::Tensor::set_triad(), and Lorene::Scalar::std_spectral_base().
|
virtual |
Absolute coordinate X of the barycenter of the baryon density,.
Definition at line 121 of file star_bin_global.C.
References Lorene::Tensor::annule_domain(), Lorene::Metric::determinant(), Lorene::Hot_star::gam_euler, Lorene::Hot_star::gamma, Lorene::Map::get_mg(), Lorene::Mg3d::get_nzone(), Lorene::Scalar::integrale(), mass_b(), Lorene::Hot_star::mp, Lorene::Hot_star::nbar, p_xa_barycenter, Lorene::sqrt(), Lorene::Scalar::std_spectral_base(), and Lorene::Map::xa.
|
inherited |
Description of the stellar surface: returns a 2-D Tbl containing the values of the radial coordinate
on the surface at the collocation points in
.
The stellar surface is defined as the location where the enthalpy (member ent) vanishes.
Definition at line 95 of file hot_star_global.C.
References Lorene::Hot_star::l_surf(), Lorene::Hot_star::p_l_surf, and Lorene::Hot_star::p_xi_surf.
|
inherited |
Description of the stellar surface: returns a 2-D Tbl containing the values of the radial coordinate
on the surface at the collocation points in
.
The stellar surface is defined as the location where the enthalpy (member ent) vanishes.
Definition at line 92 of file star_global.C.
References Lorene::Star::l_surf(), Lorene::Star::p_l_surf, and Lorene::Star::p_xi_surf.
|
protectedinherited |
Shift vector.
Definition at line 133 of file hot_star.h.
|
protected |
Part of the shift vector generated principally by the star (Spherical components with respect to the mapping of the star)
Definition at line 481 of file hot_star.h.
|
protected |
Part of the shift vector generated principally by the star (Spherical components with respect to the mapping of the star)
Definition at line 486 of file hot_star.h.
|
protected |
3-vector shift, divided by N, of the rotating coordinates,
.
(Spherical components with respect to the mapping of the star)
Definition at line 429 of file hot_star.h.
|
protected |
true if the 3-metric is conformally flat, false for a more general metric.
Definition at line 592 of file hot_star.h.
|
protected |
Gradient of
(in the irrotational case) (Spherical components with respect to the mapping of the star)
Definition at line 412 of file hot_star.h.
|
protected |
Contravariant derivative of the total logarithm of the lapse.
Definition at line 449 of file hot_star.h.
|
protected |
Contravariant derivative of the logarithm of the conformal factor.
Definition at line 468 of file hot_star.h.
|
protected |
Covariant derivative of the total logarithm of the lapse.
Definition at line 446 of file hot_star.h.
|
protected |
Covariant derivative of the logarithm of the conformal factor.
Definition at line 466 of file hot_star.h.
|
protected |
Function used to construct the part
generated by the star from the total
.
Mainly this Scalar is 1 around the star and 0 around the companion and the sum of decouple for the star and his companion is 1 everywhere.
Definition at line 587 of file hot_star.h.
|
protectedinherited |
Total energy density in the fluid frame.
Definition at line 94 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
Total energy density in the Eulerian frame.
Definition at line 103 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
Log-enthalpy.
Definition at line 91 of file hot_star.h.
|
protectedinherited |
Entropy per baryon field (in $k_B$)
Definition at line 99 of file hot_star.h.
|
protectedinherited |
|
protected |
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star) .
Definition at line 473 of file hot_star.h.
|
protectedinherited |
Lorentz factor between the fluid and Eulerian observers.
Definition at line 109 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
3-metric
Definition at line 140 of file hot_star.h.
|
protected |
Conformal metric
.
Definition at line 476 of file hot_star.h.
|
protectedinherited |
Equation of state of the stellar matter.
Definition at line 86 of file hot_star.h.
|
protected |
Total deviation of the inverse conformal metric
from the inverse flat metric.
Definition at line 492 of file hot_star.h.
|
protected |
Deviation of the inverse conformal metric
from the inverse flat metric generated principally by the star.
Definition at line 499 of file hot_star.h.
|
protected |
Deviation of the inverse conformal metric
from the inverse flat metric generated principally by the companion star.
Definition at line 505 of file hot_star.h.
|
protected |
true for an irrotational star, false for a corotating one
Definition at line 402 of file hot_star.h.
|
protected |
|
protected |
Part of the scalar
generated by beta_auto and beta_comp, i.e.
Definition at line 529 of file hot_star.h.
|
protected |
Scalar field
generated principally by the star.
Definition at line 454 of file hot_star.h.
|
protected |
Scalar field
generated principally by the companion star.
Definition at line 459 of file hot_star.h.
|
protected |
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
Definition at line 423 of file hot_star.h.
|
protectedinherited |
Logarithm of the lapse N .
In the Newtonian case, this is the Newtonian gravitational potential (in units of
).
Definition at line 127 of file hot_star.h.
|
protectedinherited |
|
protected |
Part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by the star.
Definition at line 438 of file hot_star.h.
|
protected |
Part of the lapse logarithm (gravitational potential at the Newtonian limit) generated principally by the companion star.
Definition at line 443 of file hot_star.h.
|
protectedinherited |
Mapping associated with the star.
Definition at line 81 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
Baryon density in the fluid frame.
Definition at line 93 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
Lapse function N .
Definition at line 130 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
Number of domains of *mp occupied by the star.
Definition at line 84 of file hot_star.h.
|
protectedinherited |
|
mutableprotectedinherited |
Description of the stellar surface: 2-D Itbl containing the values of the domain index l on the surface at the collocation points in
.
Definition at line 165 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Baryon mass.
Definition at line 173 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Gravitational mass.
Definition at line 174 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Coordinate radius at
,
.
Definition at line 147 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Coordinate radius at
,
.
Definition at line 156 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Coordinate radius at
,
.
Definition at line 153 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Coordinate radius at
,
.
Definition at line 150 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotectedinherited |
Coordinate radius at
.
Definition at line 159 of file hot_star.h.
|
mutableprotectedinherited |
|
mutableprotected |
Absolute coordinate X of the barycenter of the baryon density.
Definition at line 598 of file hot_star.h.
|
mutableprotectedinherited |
Description of the stellar surface: 2-D Tbl containing the values of the radial coordinate
on the surface at the collocation points in
.
Definition at line 171 of file hot_star.h.
|
mutableprotectedinherited |
|
protected |
Centrifugal potential.
Definition at line 432 of file hot_star.h.
|
protectedinherited |
Fluid pressure.
Definition at line 95 of file hot_star.h.
|
protectedinherited |
|
protected |
Scalar potential
of the non-translational part of fluid 4-velocity (in the irrotational case)
Definition at line 407 of file hot_star.h.
|
protected |
Conformal factor
.
Definition at line 463 of file hot_star.h.
|
protectedinherited |
Trace of the stress scalar in the Eulerian frame.
Definition at line 106 of file hot_star.h.
|
protectedinherited |
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for h00_auto.
Definition at line 552 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for h10_auto.
Definition at line 557 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for h11_auto.
Definition at line 567 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for h20_auto.
Definition at line 562 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for h21_auto.
Definition at line 572 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for h22_auto.
Definition at line 577 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for khi.
(second scalar equation for the resolution of the vectorial poisson equation for the shift)
Definition at line 545 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for lnq_auto.
Definition at line 539 of file hot_star.h.
|
protected |
Effective source at the previous step for the resolution of the Poisson equation for logn_auto.
Definition at line 534 of file hot_star.h.
|
protectedinherited |
Spatial part of the stress-energy tensor with respect to the Eulerian observer.
Definition at line 117 of file hot_star.h.
|
protectedinherited |
|
protectedinherited |
Temperature field (in MeV)
Definition at line 98 of file hot_star.h.
|
protected |
Part of the extrinsic curvature tensor
generated by beta_auto.
(Spherical components with respect to the mapping of the star)
Definition at line 511 of file hot_star.h.
|
protected |
Part of the extrinsic curvature tensor
generated by beta_comp.
(Spherical components with respect to the mapping of the star)
Definition at line 517 of file hot_star.h.
|
protectedinherited |
Fluid 3-velocity with respect to the Eulerian observer.
Definition at line 112 of file hot_star.h.
|
protectedinherited |
|
protected |
Spatial projection of the fluid 3-velocity with respect to
the co-orbiting observer.
(Spherical components with respect to the mapping of the star)
Definition at line 418 of file hot_star.h.