28char star_bhns_spher_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns_spher.C,v 1.4 2014/10/13 08:53:41 j_novak Exp $" ;
129 cout <<
"-----------------------------------------------" <<
endl ;
246 for(
int i=1;
i<=3;
i++)
255 for (
int i=1;
i<=3;
i++)
262 <<
"Characteristics of the star obtained by Star_bhns::equil_spher_bhns : "
264 <<
"------------------------------------------------------------------- "
269 cout <<
"Coordinate radius : "
270 <<
ray / km <<
" [km]" <<
endl ;
275 cout <<
"Circumferential radius R : "
277 cout <<
"Baryon mass : "
278 << mass_b_bhns(0,0.,1.)/msol <<
" [Mo]" <<
endl ;
279 cout <<
"Gravitational mass M : "
280 << mass_g_bhns()/msol <<
" [Mo]" <<
endl ;
290 source.std_spectral_base() ;
296 tmp1.std_spectral_base() ;
300 tmp2.std_spectral_base() ;
316 source.std_spectral_base() ;
322 cout <<
"Virial theorem GRV3 : " <<
endl ;
325 cout <<
" relative error : " << grv3 <<
endl ;
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Time evolution with partial storage (*** under development ***).
virtual double val_r(int l, double xi, double theta, double pphi) const =0
Returns the value of the radial coordinate r for a given in a given domain.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
int get_nzone() const
Returns the number of domains.
int get_nr(int l) const
Returns the number of points in the radial direction ( ) in domain no. l.
Tensor field of valence 0 (or component of a tensorial field).
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field.
double val_grid_point(int l, int k, int j, int i) const
Returns the value of the field at a specified grid point.
const Scalar & dsdr() const
Returns of *this .
virtual void annule(int l_min, int l_max)
Sets the Scalar to zero in several domains.
void equil_spher_bhns(double ent_c, double precis)
Computes a spherical configuration.
Scalar lapconf_auto
Lapconf function generated by the star.
Scalar lapse_tot
Total lapse function.
Scalar confo_tot
Total conformal factor.
Scalar psi4
Fourth power of the total conformal factor.
Scalar lapconf_tot
Total lapconf function.
Scalar lapse_auto
Lapse function generated by the "star".
Vector shift_auto
Shift vector generated by the star.
Scalar confo_auto
Conformal factor generated by the star.
Scalar ener
Total energy density in the fluid frame.
Scalar ener_euler
Total energy density in the Eulerian frame.
void equation_of_state()
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
Scalar press
Fluid pressure.
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Map & mp
Mapping associated with the star.
int nzet
Number of domains of *mp occupied by the star.
Scalar & set(int)
Read/write access to a component.
Cmp sqrt(const Cmp &)
Square root.
Cmp exp(const Cmp &)
Exponential.
Tbl diffrel(const Cmp &a, const Cmp &b)
Relative difference between two Cmp (norme version).
Tbl norme(const Cmp &)
Sums of the absolute values of all the values of the Cmp in each domain.
Cmp pow(const Cmp &, int)
Power .
Cmp log(const Cmp &)
Neperian logarithm.
Standard units of space, time and mass.