28 char star_bhns_global_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns_global.C,v 1.3 2014/10/13 08:53:40 j_novak Exp $" ;
54 #include "star_bhns.h"
56 #include "utilitaires.h"
86 double Star_bhns::mass_b_bhns(
bool kerrschild,
const double& mass_bh,
87 const double& sepa)
const {
99 xx.std_spectral_base() ;
102 yy.std_spectral_base() ;
105 zz.std_spectral_base() ;
110 rr =
sqrt( (xx+sepa)*(xx+sepa) + (yy+yns)*(yy+yns) + zz*zz ) ;
111 rr.std_spectral_base() ;
113 tmp =
sqrt(1. + 2.*ggrav*mass_bh/rr) ;
121 tmp.std_spectral_base() ;
140 cout <<
"Star_bhns::mass_g() is not available !!!" << endl
141 <<
" --> Use Star_bhns::mass_g_bhns()"
147 double Star_bhns::mass_g_bhns()
const {
Coord z
z coordinate centered on the grid
Scalar nbar
Baryon density in the fluid frame.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
double get_ori_y() const
Returns the y coordinate of the origin.
Scalar lapconf_tot
Total lapconf function.
Scalar confo_tot
Total conformal factor.
Tensor field of valence 0 (or component of a tensorial field).
Cmp pow(const Cmp &, int)
Power .
double * p_mass_b
Baryon mass.
Standard units of space, time and mass.
Map & mp
Mapping associated with the star.
Scalar ener_euler
Total energy density in the Eulerian frame.
double * p_mass_b_bhns
Baryon mass.
virtual double mass_g() const
Gravitational mass.
Cmp sqrt(const Cmp &)
Square root.
Coord x
x coordinate centered on the grid
double integrale() const
Computes the integral over all space of *this .
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field.
double * p_mass_g_bhns
Gravitational mass.
Coord y
y coordinate centered on the grid
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
virtual double mass_b() const
Baryon mass.