104 for (
int i=0; i<=1; i++) {
111 Cmp source =
pow(a2, 1.25) * ee
112 +
pow(a2, 0.25) * (ak2_auto + ak2_comp) / (4.*qpig) ;
153 for (
int i=0; i<=1; i++) {
168 dbe_auto + dbe_comp) ;
170 dnu_auto + dnu_comp) ;
172 Cmp source = lapse * ( a2 * (ee + se)
173 + (ak2_auto + ak2_comp)/qpig
174 - dndb()/qpig + dndn()/qpig ) ;
209 for (
int i=0; i<=1; i++) {
227 if (
et[i]->is_relativistic() ) {
231 rho =
pow(a2, 2.5) * (ee + pp) ;
243 Cmp source = rho * ( yy * vz - zz * vy ) ;
245 (source.
va).set_base( *(base[2]) ) ;
254 source = rho * ( zz * vx - xx * vz ) ;
256 (source.
va).set_base( *(base[2]) ) ;
265 source = rho * ( xx * vy - yy * vx ) ;
311 for (
int i=0; i<=1; i++) {
327 Cmp source = e_int + .5 * rho * vit2 + .5 * rho * nu ;
369 double vir_grav = 0 ;
371 for (
int i=0; i<=1; i++) {
386 Cmp source = 3*pp + rho * vit2 ;
390 source = .5 * rho * nu ;
396 *
p_virial = ( vir_mat + vir_grav ) / fabs(vir_grav) ;
426 double vir_pres = 0. ;
427 double vir_extr = 0. ;
428 double vir_grav = 0. ;
430 for (
int i=0; i<=1; i++) {
445 Cmp source = 2. * a2 * a1 * se ;
448 source = 1.5 * a1 * (ak2_auto + ak2_comp) / qpig ;
456 source = a1 * ( sprod1() - sprod2() - 2.*sprod3() )/qpig ;
499 double vir_pres = 0. ;
500 double vir_extr = 0. ;
501 double vir_grav = 0. ;
503 for (
int i=0; i<=1; i++) {
519 Cmp source = 2. * lapse * a2 * a1 * se ;
522 source = 1.5 * lapse * a1 * (ak2_auto + ak2_comp) / qpig ;
528 source = lapse * a1 * sprod() / qpig ;
Coord xa
Absolute x coordinate.
double total_ener() const
Total energy (excluding the rest mass energy).
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
const Map & get_mp() const
Returns the mapping.
const Tenseur & get_a_car() const
Returns the total conformal factor .
Etoile_bin star1
First star of the system.
double mass_adm() const
Total ADM mass.
Cmp sqrt(const Cmp &)
Square root.
const Tenseur & get_akcar_comp() const
Returns the part of the scalar generated by shift_auto and shift_comp , i.e.
Standard units of space, time and mass.
double & set(int i)
Read/write of a particular element (index i) (1D case)
const Tenseur & get_d_beta_auto() const
Returns the gradient of beta_auto (Cartesian components with respect to ref_triad ) ...
double * p_virial
Virial theorem error.
Base class for coordinate mappings.
Tenseur flat_scalar_prod(const Tenseur &t1, const Tenseur &t2)
Scalar product of two Tenseur when the metric is : performs the contraction of the last index of t1 w...
const Tenseur & get_logn_auto() const
Returns the logarithm of the part of the lapse N generated principaly by the star.
double virial_gb() const
Estimates the relative error on the virial theorem calculated by E.Gourgoulhon and S...
const Tenseur & get_d_logn_auto() const
Returns the gradient of logn_auto (Cartesian components with respect to ref_triad ) ...
double * p_total_ener
Total energy of the system.
const Tenseur & get_press() const
Returns the fluid pressure.
const Tenseur & get_logn_comp() const
Returns the part of the lapse logarithm (gravitational potential at the Newtonian limit) generated pr...
Etoile_bin * et[2]
Array of the two stars (to perform loops on the stars): { et[0]} contains the address of { star1} and...
double * p_virial_fus
Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata.
const Tenseur & get_s_euler() const
Returns the trace of the stress tensor in the Eulerian frame.
double integrale() const
Computes the integral over all space of *this .
const Tenseur & get_nnn() const
Returns the total lapse function N.
Cmp pow(const Cmp &, int)
Power .
const Tenseur & get_d_beta_comp() const
Returns the gradient of beta_comp (Cartesian components with respect to ref_triad ) ...
const Tbl & angu_mom() const
Total angular momentum.
const Tenseur & get_ener_euler() const
Returns the total energy density with respect to the Eulerian observer.
Tbl * p_angu_mom
Total angular momentum of the system.
void std_base_scal()
Sets the spectral bases of the Valeur va to the standard ones for a scalar.
const Tenseur & get_d_logn_comp() const
Returns the gradient of logn_comp (Cartesian components with respect to ref_triad ) ...
Coord ya
Absolute y coordinate.
Bases of the spectral expansions.
const Tenseur & get_akcar_auto() const
Returns the part of the scalar generated by shift_auto , i.e.
double mass_kom() const
Total Komar mass.
double virial_fus() const
Estimates the relative error on the virial theorem calculated by J.L.Friedman, K.Uryu, and M.Shibata (PRD accepted, gr-qc/0108070)
double * p_mass_adm
Total ADM mass of the system.
Coord za
Absolute z coordinate.
double * p_mass_kom
Total Komar mass of the system.
double * p_virial_gb
Virial theorem error by E.Gourgoulhon and S.Bonazzola.
const Tenseur & get_ener() const
Returns the proper total energy density.
double virial() const
Estimates the relative error on the virial theorem (for a relativistic one, it returns $|1 - M_{ Koma...
const Tenseur & get_u_euler() const
Returns the fluid 3-velocity with respect to the Eulerian observer.
void annule_hard()
Sets the Tbl to zero in a hard way.
virtual double mass_b() const
Baryon mass.
const Tenseur & get_nbar() const
Returns the proper baryon density.
bool is_relativistic() const
Returns true for a relativistic star, false for a Newtonian one.
Valeur va
The numerical value of the Cmp.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Etoile_bin star2
Second star of the system.