57 #include "star_bhns.h" 59 #include "utilitaires.h" 89 double Star_bhns::mass_b_bhns(
bool kerrschild,
const double& mass_bh,
90 const double& sepa)
const {
102 xx.std_spectral_base() ;
105 yy.std_spectral_base() ;
108 zz.std_spectral_base() ;
113 rr =
sqrt( (xx+sepa)*(xx+sepa) + (yy+yns)*(yy+yns) + zz*zz ) ;
114 rr.std_spectral_base() ;
116 tmp =
sqrt(1. + 2.*ggrav*mass_bh/rr) ;
124 tmp.std_spectral_base() ;
143 cout <<
"Star_bhns::mass_g() is not available !!!" << endl
144 <<
" --> Use Star_bhns::mass_g_bhns()" 150 double Star_bhns::mass_g_bhns()
const {
double * p_mass_b
Baryon mass.
Scalar lapconf_tot
Total lapconf function.
double * p_mass_g_bhns
Gravitational mass.
Map & mp
Mapping associated with the star.
Cmp sqrt(const Cmp &)
Square root.
double get_ori_y() const
Returns the y coordinate of the origin.
Standard units of space, time and mass.
Tensor field of valence 0 (or component of a tensorial field).
double integrale() const
Computes the integral over all space of *this .
double * p_mass_b_bhns
Baryon mass.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
Scalar nbar
Baryon density in the fluid frame.
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
Scalar confo_tot
Total conformal factor.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Cmp pow(const Cmp &, int)
Power .
Coord y
y coordinate centered on the grid
Coord x
x coordinate centered on the grid
virtual double mass_g() const
Gravitational mass.
Coord z
z coordinate centered on the grid
Scalar ener_euler
Total energy density in the Eulerian frame.
virtual double mass_b() const
Baryon mass.