# Lorene::Star_bhns Class Reference [Stars and black holes]

Class for stars in black hole-neutron star binaries. More...

#include <star_bhns.h>

Inheritance diagram for Lorene::Star_bhns:

List of all members.

## Public Member Functions

Star_bhns (Map &mp_i, int nzet_i, const Eos &eos_i, bool irrot_i)
Standard constructor.
Star_bhns (const Star_bhns &)
Copy constructor.
Star_bhns (Map &mp_i, const Eos &eos_i, FILE *fich)
Constructor from a file (see sauve(FILE*) ).
virtual ~Star_bhns ()
Destructor.
void operator= (const Star_bhns &)
Assignment to another Star_bhns.
Scalarset_pot_centri ()
Scalarset_lapconf_auto ()
Read/write of the lapconf function generated by the neutron star.
Scalarset_lapconf_comp ()
Read/write of the lapconf function generated by the companion black hole.
Vectorset_shift_auto ()
Read/write of the shift vector generated by the neutron star.
Vectorset_shift_comp ()
Read/write of the shift vector generated by the companion black hole.
Scalarset_confo_auto ()
Read/write of the conformal factor generated by the neutron star.
Scalarset_confo_comp ()
Read/write of the conformal factor generated by the companion black hole.
bool is_irrotational () const
Returns true for an irrotational motion, false for a corotating one.
const Scalarget_psi0 () const
Returns the non-translational part of the velocity potential.
const Vectorget_d_psi () const
Returns the covariant derivative of the velocity potential (Spherical components with respect to the mapping of the star).
const Vectorget_wit_w () const
Returns the spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
const Scalarget_loggam () const
Returns the logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
const Vectorget_bsn () const
Returns the shift vector, divided by N , of the rotating coordinates, .
const Scalarget_gam () const
Returns the Lorentz factor gam.
const Scalarget_gam0 () const
Returns the Lorentz factor gam0.
const Scalarget_pot_centri () const
Returns the centrifugal potential.
const Scalarget_lapconf_auto () const
Returns the part of the lapconf function generated by the star.
const Scalarget_lapconf_comp () const
Returns the part of the lapconf function generated by the companion black hole.
const Scalarget_lapconf_tot () const
Returns the total lapconf function.
const Scalarget_lapse_auto () const
const Scalarget_lapse_tot () const
Returns the total lapse function.
const Vectorget_d_lapconf_auto () const
Returns the derivative of the lapse function generated by the star.
const Vectorget_d_lapconf_comp () const
Returns the derivative of the lapse function generated by the companion black hole.
const Vectorget_shift_auto () const
Returns the part of the shift vector generated by the star.
const Vectorget_shift_comp () const
Returns the part of the shift vector generated by the companion black hole.
const Vectorget_shift_tot () const
Returns the part total shift vector.
const Tensorget_d_shift_auto () const
Returns the derivative of the shift vector generated by the star.
const Tensorget_d_shift_comp () const
Returns the derivative of the shift vector generated by the companion black hole.
const Scalarget_confo_auto () const
Returns the part of the conformal factor generated by the star.
const Scalarget_confo_comp () const
Returns the part of the conformal factor generated by the companion black hole.
const Scalarget_confo_tot () const
Returns the total conformal factor.
const Vectorget_d_confo_auto () const
Returns the derivative of the conformal factor generated by the star.
const Vectorget_d_confo_comp () const
Returns the derivative of the conformal factor generated by the companion black hole.
const Scalarget_psi4 () const
Returns the fourth power of the total conformal factor.
const Sym_tensorget_taij_auto () const
Returns the part of the extrinsic curvature tensor generated by the neutron star part.
Returns the part of the scalar generated by .
virtual void sauve (FILE *) const
Save in a file.
virtual double mass_b () const
Baryon mass.
virtual double mass_b_bhns (bool kerrschild, const double &mass_bh, const double &sepa) const
virtual double mass_g () const
Gravitational mass.
virtual double mass_g_bhns () const
void hydro_euler_bhns (bool kerrschild, const double &mass_bh, const double &sepa)
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid frame, as well as wit_w and loggam .
void update_metric_bhns (const Hole_bhns &hole, const Star_bhns &star_prev, double relax)
Computes metric coefficients from known potentials with relaxation when the companion is a black hole.
void update_met_der_comp_bhns (const Hole_bhns &hole)
Computes derivative of metric quantities from the companion black hole.
void kinema_bhns (bool kerrschild, const double &mass_bh, const double &sepa, double omega, double x_rot, double y_rot)
Computes the quantities bsn and pot_centri .
void fait_d_psi_bhns ()
Computes the gradient of the total velocity potential .
void extr_curv_bhns ()
Computes taij_auto , taij_quad_auto from shift_auto , lapse_auto , confo_auto .
void equilibrium_bhns (double ent_c, const double &mass_bh, const double &sepa, bool kerrschild, int mer, int mermax_ns, int mermax_potvit, int mermax_poisson, int filter_r, int filter_r_s, int filter_p_s, double relax_poisson, double relax_potvit, double thres_adapt, double resize_ns, const Tbl &fact_resize, Tbl &diff)
Computes an equilibrium configuration.
double velo_pot_bhns (const double &mass_bh, const double &sepa, bool kerrschild, int mermax, double precis, double relax)
Computes the non-translational part of the velocity scalar potential by solving the continuity equation.
double chi_rp (double radius, double phi)
Sensitive indicator of the mass-shedding to the direction of , , .
Radius of the star to the direction of and .
double phi_min ()
Azimuthal angle when the indicator of the mass-shedding takes its minimum chi_min.
double phi_local_min (double phi_ini)
Azimuthal angle when the indicator of the mass-shedding takes its local minimum.
void relax_bhns (const Star_bhns &star_prev, double relax_ent, double relax_met, int mer, int fmer_met)
Performs a relaxation on ent , lapse_auto , shift_auto , confo_auto .
void equil_spher_bhns (double ent_c, double precis)
Computes a spherical configuration.
Mapset_mp ()
void set_enthalpy (const Scalar &)
Assignment of the enthalpy field.
void equation_of_state ()
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
virtual void hydro_euler ()
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid frame (nbar, ener and press).
virtual void equilibrium_spher (double ent_c, double precis=1.e-14, const Tbl *pent_limit=0x0)
Computes a spherical static configuration.
const Mapget_mp () const
Returns the mapping.
int get_nzet () const
Returns the number of domains occupied by the star.
const Eosget_eos () const
Returns the equation of state.
const Scalarget_ent () const
Returns the enthalpy field.
const Scalarget_nbar () const
Returns the proper baryon density.
const Scalarget_ener () const
Returns the proper total energy density.
const Scalarget_press () const
Returns the fluid pressure.
const Scalarget_ener_euler () const
Returns the total energy density with respect to the Eulerian observer.
const Scalarget_s_euler () const
Returns the trace of the stress tensor in the Eulerian frame.
const Scalarget_gam_euler () const
Returns the Lorentz factor between the fluid and Eulerian observers.
const Vectorget_u_euler () const
Returns the fluid 3-velocity with respect to the Eulerian observer.
const Tensorget_stress_euler () const
Returns the spatial part of the stress-energy tensor with respect to the Eulerian observer.
const Scalarget_logn () const
Returns the logarithm of the lapse N.
const Scalarget_nn () const
Returns the lapse function N.
const Vectorget_beta () const
Returns the shift vector .
const Scalarget_lnq () const
const Metricget_gamma () const
Returns the 3-metric .
double ray_eq () const
double ray_eq_pis2 () const
double ray_eq_pi () const
double ray_eq_3pis2 () const
double ray_pole () const
virtual const Itbll_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 .
const Tblxi_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 .

## Protected Member Functions

virtual void del_deriv () const
Deletes all the derived quantities.
void set_der_0x0 () const
Sets to 0x0 all the pointers on derived quantities.
virtual ostream & operator>> (ostream &) const
Operator >> (virtual function called by the operator <<).
virtual void del_hydro_euler ()
Sets to ETATNONDEF (undefined state) the hydrodynamical quantities relative to the Eulerian observer.

## Protected Attributes

Map_af mp_aff
Affine mapping for solving poisson's equations of metric quantities.
bool irrotational
true for an irrotational star, false for a corotating one
Scalar psi0
Scalar potential of the non-translational part of fluid 4-velocity (in the irrotational case).
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star).
Vector wit_w
Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
Scalar loggam
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
Vector bsn
3-vector shift, divided by N , of the rotating coordinates, .
Scalar gam
Lorentz factor between the fluid and the co-orbiting observer.
Scalar gam0
Lorentz factor between the co-orbiting observer and the Eulerian one.
Scalar pot_centri
Centrifugal potential.
Scalar lapconf_auto
Lapconf function generated by the star.
Scalar lapconf_comp
Lapconf function generated by the companion black hole.
Scalar lapconf_tot
Total lapconf function.
Scalar lapse_auto
Lapse function generated by the "star".
Scalar lapse_tot
Total lapse function.
Vector d_lapconf_auto
Derivative of the lapconf function generated by the star .
Vector d_lapconf_comp
Derivative of the lapconf function generated by the companion black hole.
Vector shift_auto
Shift vector generated by the star.
Vector shift_comp
Shift vector generated by the companion black hole.
Vector shift_tot
Total shift vector.
Tensor d_shift_auto
Derivative of the shift vector generated by the star .
Tensor d_shift_comp
Derivative of the shift vector generated by the companion black hole.
Scalar confo_auto
Conformal factor generated by the star.
Scalar confo_comp
Conformal factor generated by the companion black hole.
Scalar confo_tot
Total conformal factor.
Vector d_confo_auto
Derivative of the conformal factor generated by the star .
Vector d_confo_comp
Derivative of the conformal factor generated by the companion black hole.
Scalar psi4
Fourth power of the total conformal factor.
Sym_tensor taij_auto
Part of the extrinsic curvature tensor generated by shift_auto , lapse_auto , and confo_auto .
Part of the scalar generated by .
Metric_flat flat
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star ).
Scalar ssjm1_lapconf
Effective source at the previous step for the resolution of the Poisson equation for lapconf_auto .
Scalar ssjm1_confo
Effective source at the previous step for the resolution of the Poisson equation for confo_auto .
Scalar ssjm1_khi
Effective source at the previous step for the resolution of the Poisson equation for the scalar by means of Map_et::poisson .
Vector ssjm1_wshift
Effective source at the previous step for the resolution of the vector Poisson equation for by means of Map_et::poisson .
double * p_mass_b_bhns
Baryon mass.
double * p_mass_g_bhns
Gravitational mass.
Mapmp
Mapping associated with the star.
int nzet
Number of domains of *mp occupied by the star.
const Eoseos
Equation of state of the stellar matter.
Scalar ent
Log-enthalpy.
Scalar nbar
Baryon density in the fluid frame.
Scalar ener
Total energy density in the fluid frame.
Scalar press
Fluid pressure.
Scalar ener_euler
Total energy density in the Eulerian frame.
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Sym_tensor stress_euler
Spatial part of the stress-energy tensor with respect to the Eulerian observer.
Scalar logn
Logarithm of the lapse N .
Scalar nn
Lapse function N .
Vector beta
Shift vector.
Scalar lnq
Metric gamma
3-metric
double * p_ray_eq
double * p_ray_eq_pis2
double * p_ray_eq_pi
double * p_ray_eq_3pis2
double * p_ray_pole
Itblp_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 .
Tblp_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 .
double * p_mass_b
Baryon mass.
double * p_mass_g
Gravitational mass.

## Friends

class Bin_bhns
ostream & operator<< (ostream &, const Star &)
Display.

## Detailed Description

Class for stars in black hole-neutron star binaries.

()

Definition at line 59 of file star_bhns.h.

## Constructor & Destructor Documentation

 Lorene::Star_bhns::Star_bhns ( Map & mp_i, int nzet_i, const Eos & eos_i, bool irrot_i )

Standard constructor.

Parameters:
 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_i should be true for an irrotational star, false for a corotating one

Definition at line 76 of file star_bhns.C.

 Lorene::Star_bhns::Star_bhns ( const Star_bhns & star )

Copy constructor.

Definition at line 181 of file star_bhns.C.

References set_der_0x0().

 Lorene::Star_bhns::Star_bhns ( Map & mp_i, const Eos & eos_i, FILE * fich )

Constructor from a file (see sauve(FILE*) ).

Parameters:
 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 224 of file star_bhns.C.

 Lorene::Star_bhns::~Star_bhns ( )  [virtual]

Destructor.

Definition at line 332 of file star_bhns.C.

References del_deriv().

## Member Function Documentation

 double Lorene::Star_bhns::chi_rp ( double radius, double phi )

Sensitive indicator of the mass-shedding to the direction of , , .

Parameters:

Definition at line 64 of file star_bhns_chi.C.

 void Lorene::Star_bhns::del_deriv ( ) const [protected, virtual]

Deletes all the derived quantities.

Reimplemented from Lorene::Star.

Definition at line 344 of file star_bhns.C.

References p_mass_b_bhns, p_mass_g_bhns, and set_der_0x0().

 void Lorene::Star::del_hydro_euler ( )  [protected, virtual, inherited]

Sets to ETATNONDEF (undefined state) the hydrodynamical quantities relative to the Eulerian observer.

Reimplemented in Lorene::Star_bin, Lorene::Star_bin_xcts, Lorene::Star_rot, and Lorene::Star_rot_Dirac.

Definition at line 333 of file star.C.

 void Lorene::Star::equation_of_state ( )  [inherited]

Computes the proper baryon and energy density, as well as pressure from the enthalpy.

Reimplemented in Lorene::Gravastar.

Definition at line 465 of file star.C.

 void Lorene::Star_bhns::equil_spher_bhns ( double ent_c, double precis )

Computes a spherical configuration.

Parameters:
 ent_c [input] Central enthalpy precis [input] precision

Definition at line 67 of file star_bhns_spher.C.

 void Lorene::Star_bhns::equilibrium_bhns ( double ent_c, const double & mass_bh, const double & sepa, bool kerrschild, int mer, int mermax_ns, int mermax_potvit, int mermax_poisson, int filter_r, int filter_r_s, int filter_p_s, double relax_poisson, double relax_potvit, double thres_adapt, double resize_ns, const Tbl & fact_resize, Tbl & diff )

Computes an equilibrium configuration.

Parameters:
 ent_c [input] Central enthalpy mass_bh [input] BH mass in the background metric sepa [input] Separation between NS and BH kerrschild should be true for a Kerr-Schild background, false for a Conformally flat one mer [input] Number of iteration mermax_ns [input] Maximum number of iteration steps mermax_potvit [input] Maximum number of steps in Map_radial::poisson_compact mermax_poisson [input] Maximum number of steps in poisson scalar filter_r [input] No. points to be deleted for (r): lap,conf filter_r_s [input] No. points to be deleted for (r): shift filter_p_s [input] No. points to be deleted for (phi): shift relax_poisson [input] Relaxation factor in poisson scalar relax_potvit [input] Relaxation factor in Map_radial::poisson_compact thres_adapt [input] Threshold on dH/dr for the adaptation of the mapping resize_ns [input] Resize factor for the first shell fact_resize [input] 1-D Tbl for the input of some factors : \ fact(0) : A resizing factor for the first shell diff [output] 1-D Tbl for the storage of some error indicators :

Definition at line 73 of file star_bhns_equilibrium.C.

 void Lorene::Star::equilibrium_spher ( double ent_c, double precis = 1.e-14, const Tbl * pent_limit = 0x0 )  [virtual, inherited]

Computes a spherical static configuration.

Parameters:
 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.

 void Lorene::Star_bhns::extr_curv_bhns ( )

Computes taij_auto , taij_quad_auto from shift_auto , lapse_auto , confo_auto .

Definition at line 63 of file star_bhns_extr_curv.C.

 void Lorene::Star_bhns::fait_d_psi_bhns ( )

Computes the gradient of the total velocity potential .

Definition at line 538 of file star_bhns.C.

 const Vector& Lorene::Star::get_beta ( ) const [inline, inherited]

Returns the shift vector .

Definition at line 402 of file star.h.

References Lorene::Star::beta.

 const Vector& Lorene::Star_bhns::get_bsn ( ) const [inline]

Returns the shift vector, divided by N , of the rotating coordinates, .

(Spherical components with respect to the mapping of the star)

Definition at line 327 of file star_bhns.h.

References bsn.

 const Scalar& Lorene::Star_bhns::get_confo_auto ( ) const [inline]

Returns the part of the conformal factor generated by the star.

Definition at line 383 of file star_bhns.h.

References confo_auto.

 const Scalar& Lorene::Star_bhns::get_confo_comp ( ) const [inline]

Returns the part of the conformal factor generated by the companion black hole.

Definition at line 388 of file star_bhns.h.

References confo_comp.

 const Scalar& Lorene::Star_bhns::get_confo_tot ( ) const [inline]

Returns the total conformal factor.

Definition at line 391 of file star_bhns.h.

References confo_tot.

 const Vector& Lorene::Star_bhns::get_d_confo_auto ( ) const [inline]

Returns the derivative of the conformal factor generated by the star.

Definition at line 396 of file star_bhns.h.

References d_confo_auto.

 const Vector& Lorene::Star_bhns::get_d_confo_comp ( ) const [inline]

Returns the derivative of the conformal factor generated by the companion black hole.

Definition at line 401 of file star_bhns.h.

References d_confo_comp.

 const Vector& Lorene::Star_bhns::get_d_lapconf_auto ( ) const [inline]

Returns the derivative of the lapse function generated by the star.

Definition at line 356 of file star_bhns.h.

References d_lapconf_auto.

 const Vector& Lorene::Star_bhns::get_d_lapconf_comp ( ) const [inline]

Returns the derivative of the lapse function generated by the companion black hole.

Definition at line 361 of file star_bhns.h.

References d_lapconf_comp.

 const Vector& Lorene::Star_bhns::get_d_psi ( ) const [inline]

Returns the covariant derivative of the velocity potential (Spherical components with respect to the mapping of the star).

Definition at line 310 of file star_bhns.h.

References d_psi.

 const Tensor& Lorene::Star_bhns::get_d_shift_auto ( ) const [inline]

Returns the derivative of the shift vector generated by the star.

Definition at line 375 of file star_bhns.h.

References d_shift_auto.

 const Tensor& Lorene::Star_bhns::get_d_shift_comp ( ) const [inline]

Returns the derivative of the shift vector generated by the companion black hole.

Definition at line 380 of file star_bhns.h.

References d_shift_comp.

 const Scalar& Lorene::Star::get_ener ( ) const [inline, inherited]

Returns the proper total energy density.

Definition at line 370 of file star.h.

References Lorene::Star::ener.

 const Scalar& Lorene::Star::get_ener_euler ( ) const [inline, inherited]

Returns the total energy density with respect to the Eulerian observer.

Definition at line 376 of file star.h.

References Lorene::Star::ener_euler.

 const Scalar& Lorene::Star::get_ent ( ) const [inline, inherited]

Returns the enthalpy field.

Definition at line 364 of file star.h.

References Lorene::Star::ent.

 const Eos& Lorene::Star::get_eos ( ) const [inline, inherited]

Returns the equation of state.

Definition at line 361 of file star.h.

References Lorene::Star::eos.

 const Scalar& Lorene::Star_bhns::get_gam ( ) const [inline]

Returns the Lorentz factor gam.

Definition at line 330 of file star_bhns.h.

References gam.

 const Scalar& Lorene::Star_bhns::get_gam0 ( ) const [inline]

Returns the Lorentz factor gam0.

Definition at line 333 of file star_bhns.h.

References gam0.

 const Scalar& Lorene::Star::get_gam_euler ( ) const [inline, inherited]

Returns the Lorentz factor between the fluid and Eulerian observers.

Definition at line 382 of file star.h.

References Lorene::Star::gam_euler.

 const Metric& Lorene::Star::get_gamma ( ) const [inline, inherited]

Returns the 3-metric .

Definition at line 409 of file star.h.

References Lorene::Star::gamma.

 const Scalar& Lorene::Star_bhns::get_lapconf_auto ( ) const [inline]

Returns the part of the lapconf function generated by the star.

Definition at line 339 of file star_bhns.h.

References lapconf_auto.

 const Scalar& Lorene::Star_bhns::get_lapconf_comp ( ) const [inline]

Returns the part of the lapconf function generated by the companion black hole.

Definition at line 344 of file star_bhns.h.

References lapconf_comp.

 const Scalar& Lorene::Star_bhns::get_lapconf_tot ( ) const [inline]

Returns the total lapconf function.

Definition at line 347 of file star_bhns.h.

References lapconf_tot.

 const Scalar& Lorene::Star_bhns::get_lapse_tot ( ) const [inline]

Returns the total lapse function.

Definition at line 353 of file star_bhns.h.

References lapse_tot.

 const Scalar& Lorene::Star_bhns::get_loggam ( ) const [inline]

Returns the logarithm of the Lorentz factor between the fluid and the co-orbiting observer.

Definition at line 321 of file star_bhns.h.

References loggam.

 const Scalar& Lorene::Star::get_logn ( ) const [inline, inherited]

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.

 const Map& Lorene::Star::get_mp ( ) const [inline, inherited]

Returns the mapping.

Definition at line 355 of file star.h.

References Lorene::Star::mp.

 const Scalar& Lorene::Star::get_nbar ( ) const [inline, inherited]

Returns the proper baryon density.

Definition at line 367 of file star.h.

References Lorene::Star::nbar.

 const Scalar& Lorene::Star::get_nn ( ) const [inline, inherited]

Returns the lapse function N.

Definition at line 399 of file star.h.

References Lorene::Star::nn.

 int Lorene::Star::get_nzet ( ) const [inline, inherited]

Returns the number of domains occupied by the star.

Definition at line 358 of file star.h.

References Lorene::Star::nzet.

 const Scalar& Lorene::Star_bhns::get_pot_centri ( ) const [inline]

Returns the centrifugal potential.

Definition at line 336 of file star_bhns.h.

References pot_centri.

 const Scalar& Lorene::Star::get_press ( ) const [inline, inherited]

Returns the fluid pressure.

Definition at line 373 of file star.h.

References Lorene::Star::press.

 const Scalar& Lorene::Star_bhns::get_psi0 ( ) const [inline]

Returns the non-translational part of the velocity potential.

Definition at line 305 of file star_bhns.h.

References psi0.

 const Scalar& Lorene::Star_bhns::get_psi4 ( ) const [inline]

Returns the fourth power of the total conformal factor.

Definition at line 404 of file star_bhns.h.

References psi4.

 const Scalar& Lorene::Star::get_s_euler ( ) const [inline, inherited]

Returns the trace of the stress tensor in the Eulerian frame.

Definition at line 379 of file star.h.

References Lorene::Star::s_euler.

 const Vector& Lorene::Star_bhns::get_shift_auto ( ) const [inline]

Returns the part of the shift vector generated by the star.

Definition at line 364 of file star_bhns.h.

References shift_auto.

 const Vector& Lorene::Star_bhns::get_shift_comp ( ) const [inline]

Returns the part of the shift vector generated by the companion black hole.

Definition at line 369 of file star_bhns.h.

References shift_comp.

 const Vector& Lorene::Star_bhns::get_shift_tot ( ) const [inline]

Returns the part total shift vector.

Definition at line 372 of file star_bhns.h.

References shift_tot.

 const Tensor& Lorene::Star::get_stress_euler ( ) const [inline, inherited]

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.

 const Sym_tensor& Lorene::Star_bhns::get_taij_auto ( ) const [inline]

Returns the part of the extrinsic curvature tensor generated by the neutron star part.

Definition at line 409 of file star_bhns.h.

References taij_auto.

 const Scalar& Lorene::Star_bhns::get_taij_quad_auto ( ) const [inline]

Returns the part of the scalar generated by .

Definition at line 415 of file star_bhns.h.

 const Vector& Lorene::Star::get_u_euler ( ) const [inline, inherited]

Returns the fluid 3-velocity with respect to the Eulerian observer.

Definition at line 385 of file star.h.

References Lorene::Star::u_euler.

 const Vector& Lorene::Star_bhns::get_wit_w ( ) const [inline]

Returns the 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 316 of file star_bhns.h.

References wit_w.

 void Lorene::Star::hydro_euler ( )  [virtual, inherited]

Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid frame (nbar, ener and press).

Definition at line 580 of file star.C.

 void Lorene::Star_bhns::hydro_euler_bhns ( bool kerrschild, const double & mass_bh, const double & sepa )

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 , a_car 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 .

Parameters:
 kerrschild should be true for a Kerr-Schild background, false for a Conformally flat one mass_bh BH mass in the background metric sepa Separation between NS and BH

Definition at line 62 of file star_bhns_hydro.C.

 bool Lorene::Star_bhns::is_irrotational ( ) const [inline]

Returns true for an irrotational motion, false for a corotating one.

Definition at line 302 of file star_bhns.h.

References irrotational.

 void Lorene::Star_bhns::kinema_bhns ( bool kerrschild, const double & mass_bh, const double & sepa, double omega, double x_rot, double y_rot )

Computes the quantities bsn and pot_centri .

The calculation is performed starting from the quantities lapse_tot , shift_tot , which are supposed to be up to date.

Parameters:
 kerrschild should be true for a Kerr-Schild background, false for a Conformally flat one mass_bh BH mass in the background metric sepa Separation between NS and BH omega angular velocity with respect to an asymptotically inertial observer x_rot absolute X coordinate of the rotation axis y_rot absolute Y coordinate of the rotation axis

Definition at line 64 of file star_bhns_kinema.C.

 const Itbl & Lorene::Star::l_surf ( ) const [virtual, inherited]

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.

 double Lorene::Star_bhns::mass_b ( ) const [virtual]

Baryon mass.

Implements Lorene::Star.

Definition at line 66 of file star_bhns_global.C.

 double Lorene::Star_bhns::mass_g ( ) const [virtual]

Gravitational mass.

Implements Lorene::Star.

Definition at line 141 of file star_bhns_global.C.

 void Lorene::Star_bhns::operator= ( const Star_bhns & star )

Assignment to another Star_bhns.

Reimplemented from Lorene::Star.

Definition at line 371 of file star_bhns.C.

 ostream & Lorene::Star_bhns::operator>> ( ostream & ost ) const [protected, virtual]

Operator >> (virtual function called by the operator <<).

Reimplemented from Lorene::Star.

Definition at line 498 of file star_bhns.C.

 double Lorene::Star_bhns::phi_local_min ( double phi_ini )

Azimuthal angle when the indicator of the mass-shedding takes its local minimum.

Parameters:
 phi_ini [input] Initial azumuthal angle to search minimum

Definition at line 148 of file star_bhns_chi.C.

 double Lorene::Star_bhns::phi_min ( )

Azimuthal angle when the indicator of the mass-shedding takes its minimum chi_min.

Definition at line 86 of file star_bhns_chi.C.

 double Lorene::Star_bhns::radius_p ( double phi )

Radius of the star to the direction of and .

Parameters:
 phi [input] Azimuthal angle

Definition at line 77 of file star_bhns_chi.C.

References Lorene::Star::mp, Lorene::Star::nzet, and Lorene::Map::val_r().

 double Lorene::Star::ray_eq ( ) const [inherited]

Definition at line 111 of file star_global.C.

 double Lorene::Star::ray_eq_3pis2 ( ) const [inherited]

Definition at line 236 of file star_global.C.

 double Lorene::Star::ray_eq_pi ( ) const [inherited]

Definition at line 189 of file star_global.C.

 double Lorene::Star::ray_eq_pis2 ( ) const [inherited]

Definition at line 141 of file star_global.C.

 double Lorene::Star::ray_pole ( ) const [inherited]

Definition at line 281 of file star_global.C.

 void Lorene::Star_bhns::relax_bhns ( const Star_bhns & star_prev, double relax_ent, double relax_met, int mer, int fmer_met )

Performs a relaxation on ent , lapse_auto , shift_auto , confo_auto .

Parameters:
 star_prev [input] star at the previous step relax_ent [input] Relaxation factor for ent relax_met [input] Relaxation factor for lapse_auto , shift_auto , confo_auto , only if (merfmer_met=0) . mer [input] Step number fmer_met [input] Step interval between metric updates

Definition at line 597 of file star_bhns.C.

 void Lorene::Star_bhns::sauve ( FILE * fich ) const [virtual]

Save in a file.

Reimplemented from Lorene::Star.

Definition at line 473 of file star_bhns.C.

 Scalar & Lorene::Star_bhns::set_confo_auto ( )

Read/write of the conformal factor generated by the neutron star.

Definition at line 452 of file star_bhns.C.

References confo_auto, and del_deriv().

 Scalar & Lorene::Star_bhns::set_confo_comp ( )

Read/write of the conformal factor generated by the companion black hole.

Definition at line 459 of file star_bhns.C.

References confo_comp, and del_deriv().

 void Lorene::Star_bhns::set_der_0x0 ( ) const [protected, virtual]

Sets to 0x0 all the pointers on derived quantities.

Reimplemented from Lorene::Star.

Definition at line 355 of file star_bhns.C.

References p_mass_b_bhns, and p_mass_g_bhns.

 void Lorene::Star::set_enthalpy ( const Scalar & ent_i )  [inherited]

Assignment of the enthalpy field.

Definition at line 382 of file star.C.

 Scalar & Lorene::Star_bhns::set_lapconf_auto ( )

Read/write of the lapconf function generated by the neutron star.

Definition at line 424 of file star_bhns.C.

References del_deriv(), and lapconf_auto.

 Scalar & Lorene::Star_bhns::set_lapconf_comp ( )

Read/write of the lapconf function generated by the companion black hole.

Definition at line 431 of file star_bhns.C.

References del_deriv(), and lapconf_comp.

 Map& Lorene::Star::set_mp ( )  [inline, inherited]

Definition at line 322 of file star.h.

References Lorene::Star::mp.

 Scalar & Lorene::Star_bhns::set_pot_centri ( )

Definition at line 417 of file star_bhns.C.

References del_deriv(), and pot_centri.

 Vector & Lorene::Star_bhns::set_shift_auto ( )

Read/write of the shift vector generated by the neutron star.

Definition at line 438 of file star_bhns.C.

References del_deriv(), and shift_auto.

 Vector & Lorene::Star_bhns::set_shift_comp ( )

Read/write of the shift vector generated by the companion black hole.

Definition at line 445 of file star_bhns.C.

References del_deriv(), and shift_comp.

 void Lorene::Star_bhns::update_met_der_comp_bhns ( const Hole_bhns & hole )

Computes derivative of metric quantities from the companion black hole.

Parameters:
 hole companion black hole

Definition at line 63 of file star_bhns_upmetr_der.C.

 void Lorene::Star_bhns::update_metric_bhns ( const Hole_bhns & hole, const Star_bhns & star_prev, double relax )

Computes metric coefficients from known potentials with relaxation when the companion is a black hole.

The calculation is performed starting from the quantities lapse_auto , shift_auto , confo_auto , comp.lapse_auto , comp.confo_auto which are supposed to be up to date. From these, the following fields are updated: lapse_comp , lapse_tot, confo_comp, confo_tot , psi4 ,

Parameters:
 hole companion black hole star_prev previous value of the star relax relaxation parameter

Definition at line 63 of file star_bhns_upmetr.C.

 double Lorene::Star_bhns::velo_pot_bhns ( const double & mass_bh, const double & sepa, bool kerrschild, int mermax, double precis, double relax )

Computes the non-translational part of the velocity scalar potential by solving the continuity equation.

Parameters:
 mass_bh [input] BH mass in the background metric sepa [input] Separation between NS and BH kerrschild should be true for a Kerr-Schild background, false for a Conformally flat one 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.
Returns:
Relative error of the resolution obtained by comparing the operator acting on the solution with the source.

Definition at line 73 of file star_bhns_vel_pot.C.

 const Tbl & Lorene::Star::xi_surf ( ) const [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.

## Friends And Related Function Documentation

 ostream& operator<< ( ostream & , const Star & )  [friend, inherited]

Display.

## Member Data Documentation

 Vector Lorene::Star::beta [protected, inherited]

Shift vector.

Definition at line 228 of file star.h.

 Vector Lorene::Star_bhns::bsn [protected]

3-vector shift, divided by N , of the rotating coordinates, .

(Spherical components with respect to the mapping of the star)

Definition at line 99 of file star_bhns.h.

 Scalar Lorene::Star_bhns::confo_auto [protected]

Conformal factor generated by the star.

Definition at line 157 of file star_bhns.h.

 Scalar Lorene::Star_bhns::confo_comp [protected]

Conformal factor generated by the companion black hole.

Definition at line 160 of file star_bhns.h.

 Scalar Lorene::Star_bhns::confo_tot [protected]

Total conformal factor.

Definition at line 163 of file star_bhns.h.

 Vector Lorene::Star_bhns::d_confo_auto [protected]

Derivative of the conformal factor generated by the star .

Definition at line 168 of file star_bhns.h.

 Vector Lorene::Star_bhns::d_confo_comp [protected]

Derivative of the conformal factor generated by the companion black hole.

Definition at line 173 of file star_bhns.h.

 Vector Lorene::Star_bhns::d_lapconf_auto [protected]

Derivative of the lapconf function generated by the star .

Definition at line 130 of file star_bhns.h.

 Vector Lorene::Star_bhns::d_lapconf_comp [protected]

Derivative of the lapconf function generated by the companion black hole.

Definition at line 135 of file star_bhns.h.

 Vector Lorene::Star_bhns::d_psi [protected]

Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star).

Definition at line 82 of file star_bhns.h.

 Tensor Lorene::Star_bhns::d_shift_auto [protected]

Derivative of the shift vector generated by the star .

Definition at line 149 of file star_bhns.h.

 Tensor Lorene::Star_bhns::d_shift_comp [protected]

Derivative of the shift vector generated by the companion black hole.

Definition at line 154 of file star_bhns.h.

 Scalar Lorene::Star::ener [protected, inherited]

Total energy density in the fluid frame.

Definition at line 193 of file star.h.

 Scalar Lorene::Star::ener_euler [protected, inherited]

Total energy density in the Eulerian frame.

Definition at line 198 of file star.h.

 Scalar Lorene::Star::ent [protected, inherited]

Log-enthalpy.

Definition at line 190 of file star.h.

 const Eos& Lorene::Star::eos [protected, inherited]

Equation of state of the stellar matter.

Definition at line 185 of file star.h.

 Metric_flat Lorene::Star_bhns::flat [protected]

Flat metric defined on the mapping (Spherical components with respect to the mapping of the star ).

Definition at line 192 of file star_bhns.h.

 Scalar Lorene::Star_bhns::gam [protected]

Lorentz factor between the fluid and the co-orbiting observer.

Definition at line 102 of file star_bhns.h.

 Scalar Lorene::Star_bhns::gam0 [protected]

Lorentz factor between the co-orbiting observer and the Eulerian one.

Definition at line 107 of file star_bhns.h.

 Scalar Lorene::Star::gam_euler [protected, inherited]

Lorentz factor between the fluid and Eulerian observers.

Definition at line 204 of file star.h.

 Metric Lorene::Star::gamma [protected, inherited]

3-metric

Definition at line 235 of file star.h.

 bool Lorene::Star_bhns::irrotational [protected]

true for an irrotational star, false for a corotating one

Definition at line 72 of file star_bhns.h.

 Scalar Lorene::Star_bhns::lapconf_auto [protected]

Lapconf function generated by the star.

Definition at line 113 of file star_bhns.h.

 Scalar Lorene::Star_bhns::lapconf_comp [protected]

Lapconf function generated by the companion black hole.

Definition at line 116 of file star_bhns.h.

 Scalar Lorene::Star_bhns::lapconf_tot [protected]

Total lapconf function.

Definition at line 119 of file star_bhns.h.

 Scalar Lorene::Star_bhns::lapse_auto [protected]

Lapse function generated by the "star".

Definition at line 122 of file star_bhns.h.

 Scalar Lorene::Star_bhns::lapse_tot [protected]

Total lapse function.

Definition at line 125 of file star_bhns.h.

 Scalar Lorene::Star_bhns::loggam [protected]

Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.

Definition at line 93 of file star_bhns.h.

 Scalar Lorene::Star::logn [protected, inherited]

Logarithm of the lapse N .

In the Newtonian case, this is the Newtonian gravitational potential (in units of ).

Definition at line 222 of file star.h.

 Map& Lorene::Star::mp [protected, inherited]

Mapping associated with the star.

Definition at line 180 of file star.h.

 Map_af Lorene::Star_bhns::mp_aff [protected]

Affine mapping for solving poisson's equations of metric quantities.

Definition at line 67 of file star_bhns.h.

 Scalar Lorene::Star::nbar [protected, inherited]

Baryon density in the fluid frame.

Definition at line 192 of file star.h.

 Scalar Lorene::Star::nn [protected, inherited]

Lapse function N .

Definition at line 225 of file star.h.

 int Lorene::Star::nzet [protected, inherited]

Number of domains of *mp occupied by the star.

Definition at line 183 of file star.h.

 Itbl* Lorene::Star::p_l_surf [mutable, protected, inherited]

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 260 of file star.h.

 double* Lorene::Star::p_mass_b [mutable, protected, inherited]

Baryon mass.

Definition at line 268 of file star.h.

 double* Lorene::Star_bhns::p_mass_b_bhns [mutable, protected]

Baryon mass.

Definition at line 225 of file star_bhns.h.

 double* Lorene::Star::p_mass_g [mutable, protected, inherited]

Gravitational mass.

Definition at line 269 of file star.h.

 double* Lorene::Star_bhns::p_mass_g_bhns [mutable, protected]

Gravitational mass.

Definition at line 226 of file star_bhns.h.

 double* Lorene::Star::p_ray_eq [mutable, protected, inherited]

Definition at line 242 of file star.h.

 double* Lorene::Star::p_ray_eq_3pis2 [mutable, protected, inherited]

Definition at line 251 of file star.h.

 double* Lorene::Star::p_ray_eq_pi [mutable, protected, inherited]

Definition at line 248 of file star.h.

 double* Lorene::Star::p_ray_eq_pis2 [mutable, protected, inherited]

Definition at line 245 of file star.h.

 double* Lorene::Star::p_ray_pole [mutable, protected, inherited]

Definition at line 254 of file star.h.

 Tbl* Lorene::Star::p_xi_surf [mutable, protected, inherited]

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 266 of file star.h.

 Scalar Lorene::Star_bhns::pot_centri [protected]

Centrifugal potential.

Definition at line 110 of file star_bhns.h.

 Scalar Lorene::Star::press [protected, inherited]

Fluid pressure.

Definition at line 194 of file star.h.

 Scalar Lorene::Star_bhns::psi0 [protected]

Scalar potential of the non-translational part of fluid 4-velocity (in the irrotational case).

Definition at line 77 of file star_bhns.h.

 Scalar Lorene::Star_bhns::psi4 [protected]

Fourth power of the total conformal factor.

Definition at line 176 of file star_bhns.h.

 Scalar Lorene::Star::s_euler [protected, inherited]

Trace of the stress scalar in the Eulerian frame.

Definition at line 201 of file star.h.

 Vector Lorene::Star_bhns::shift_auto [protected]

Shift vector generated by the star.

Definition at line 138 of file star_bhns.h.

 Vector Lorene::Star_bhns::shift_comp [protected]

Shift vector generated by the companion black hole.

Definition at line 141 of file star_bhns.h.

 Vector Lorene::Star_bhns::shift_tot [protected]

Total shift vector.

Definition at line 144 of file star_bhns.h.

 Scalar Lorene::Star_bhns::ssjm1_confo [protected]

Effective source at the previous step for the resolution of the Poisson equation for confo_auto .

Definition at line 202 of file star_bhns.h.

 Scalar Lorene::Star_bhns::ssjm1_khi [protected]

Effective source at the previous step for the resolution of the Poisson equation for the scalar by means of Map_et::poisson .

is an intermediate quantity for the resolution of the elliptic equation for the shift vector

Definition at line 210 of file star_bhns.h.

 Scalar Lorene::Star_bhns::ssjm1_lapconf [protected]

Effective source at the previous step for the resolution of the Poisson equation for lapconf_auto .

Definition at line 197 of file star_bhns.h.

 Vector Lorene::Star_bhns::ssjm1_wshift [protected]

Effective source at the previous step for the resolution of the vector Poisson equation for by means of Map_et::poisson .

is an intermediate quantity for the resolution of the elliptic equation for the shift vector (Components with respect to the Cartesian triad associated with the mapping mp )

Definition at line 220 of file star_bhns.h.

 Sym_tensor Lorene::Star::stress_euler [protected, inherited]

Spatial part of the stress-energy tensor with respect to the Eulerian observer.

Definition at line 212 of file star.h.

 Sym_tensor Lorene::Star_bhns::taij_auto [protected]

Part of the extrinsic curvature tensor generated by shift_auto , lapse_auto , and confo_auto .

Definition at line 182 of file star_bhns.h.

 Scalar Lorene::Star_bhns::taij_quad_auto [protected]

Part of the scalar generated by .

Definition at line 187 of file star_bhns.h.

 Vector Lorene::Star::u_euler [protected, inherited]

Fluid 3-velocity with respect to the Eulerian observer.

Definition at line 207 of file star.h.

 Vector Lorene::Star_bhns::wit_w [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 88 of file star_bhns.h.

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

Generated on 7 Dec 2019 for LORENE by  1.6.1