76 #include "binary_xcts.h" 94 const Map_af map0 (
et[0]->get_mp()) ;
97 Vector dpsi((
et[0]->get_Psi()).derive_cov(flat)) ;
101 Scalar integrand ( dpsi(1) ) ;
120 double massadm = 0. ;
122 for (
int i=0; i<=1; i++) {
126 const Scalar& psi(
et[i]->get_Psi()) ;
137 Scalar source = psi5 % ener_euler
138 + spsi7 % (hacar_auto + hacar_comp)/(4.*qpig) ;
169 Scalar integrant (vect(1)) ;
185 for (
int i=0; i<=1; i++) {
196 Scalar psi4chi = psi4 % chi ;
199 Scalar source = 0.5 * ener_euler * (psi4chi + psi4 % Psi)
200 + psi4chi * s_euler +
pow(Psi, -7.) * (7.*chi/Psi + 1.)
201 * (hacar_auto + hacar_comp) / (8.*qpig) ;
228 for (
int i=0; i<=1; i++) {
233 Vector vphi(mp, CON, bvect_ref) ;
236 vphi.
set(1) = - yya ;
248 Vector jmom =
pow(
et[i]->get_Psi(), 10) * (ee + pp)
249 * (
et[i]->get_u_euler()) ;
283 for (
int i=0; i<=1; i++) {
287 Vector lmom =
pow(
et[i]->get_Psi(), 10) * (ee + pp)
288 * (
et[i]->get_u_euler() ) ;
294 for (
int j=1; j<=2; j++)
Coord xa
Absolute x coordinate.
Metric for tensor calculation.
const Scalar & get_press() const
Returns the fluid pressure.
const Scalar & get_ener_euler() const
Returns the total energy density with respect to the Eulerian observer.
double integrale_surface_infini(const Cmp &ci) const
Performs the surface integration of ci at infinity.
Star_bin_xcts * et[2]
Array of the two stars (to perform loops on the stars): et[0] contains the address of star1 and et[1]...
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
Standard units of space, time and mass.
double & set(int i)
Read/write of a particular element (index i) (1D case)
Tensor field of valence 0 (or component of a tensorial field).
Base class for coordinate mappings.
double integrale() const
Computes the integral over all space of *this .
Tensor up_down(const Metric &gam) const
Computes a new tensor by raising or lowering all the indices of *this .
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
const Map & get_mp() const
Returns the mapping.
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
const Vector & derive_con(const Metric &gam) const
Returns the "contravariant" derivative of *this with respect to some metric , by raising the index of...
Tensor field of valence 1.
const Scalar & get_Psi() const
Return the conformal factor .
const Scalar & get_psi4() const
Return the conformal factor .
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
const Scalar & get_logn() const
Returns the logarithm of the lapse N.
Tbl * p_angu_mom
Total angular momentum of the system.
const Metric & get_flat() const
Return the flat metric defined on the mapping (Spherical components with respect to the mapping of th...
Star_bin_xcts star2
Second star of the system.
const Tbl & angu_mom() const
Total angular momentum.
double mass_adm() const
Total ADM mass.
double * p_mass_kom
Total Komar mass of the system.
const Scalar & get_s_euler() const
Returns the trace of the stress tensor in the Eulerian frame.
const Tbl & lin_mom() const
Total linear momentum.
const Scalar & get_chi() const
Return the function .
Cmp pow(const Cmp &, int)
Power .
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .
Cartesian vectorial bases (triads).
const Scalar & get_hacar_auto() const
Returns the part of generated by beta_auto.
Coord ya
Absolute y coordinate.
double mass_kom_vol() const
Total Komar mass (computed by a volume integral)
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
double * p_total_ener
Total energy of the system.
Star_bin_xcts star1
First star of the system.
const Scalar & get_hacar_comp() const
Returns the part of generated by beta_comp.
double virial_vol() const
Estimates the relative error on the virial theorem (volume version)
double * p_virial
Virial theorem error.
double total_ener() const
Total energy (excluding the rest mass energy).
virtual double mass_b() const
Baryon mass.
double mass_kom() const
Total Komar mass.
double mass_adm_vol() const
Total ADM mass (computed by a volume integral)
Scalar & set(int)
Read/write access to a component.
double * p_mass_adm
Total ADM mass of the system.
void annule_hard()
Sets the Tbl to zero in a hard way.
double * p_virial_vol
Virial theorem error (volume version)
Tbl * p_lin_mom
Total linear momentum of the system.
double virial() const
Estimates the relative error on the virial theorem.