26#ifndef __BINARY_XCTS_H_
27#define __BINARY_XCTS_H_
128 Map& mp2,
int nzet2,
const Eos& eos2,
int irrot2) ;
168 assert( (i==1) || (i==2) );
186 { assert( (i==1) || (i==2) );
204 void sauve(FILE *)
const ;
303 void orbit(
double fact_omeg_min,
double fact_omeg_max,
double& xgg1,
319ostream& operator<<(ostream& ,
const Binary_xcts& ) ;
Binary systems in eXtended Conformal Thin Sandwich formulation.
const Tbl & lin_mom() const
Total linear momentum.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
double & set_omega()
Sets the orbital angular velocity [f_unit].
double total_ener() const
Total energy (excluding the rest mass energy).
double virial_vol() const
Estimates the relative error on the virial theorem (volume version)
double * p_mass_kom
Total Komar mass of the system.
double & set_x_axe()
Sets the absolute coordinate X of the rotation axis [r_unit].
double x_axe
Absolute X coordinate of the rotation axis.
void write_global(ostream &) const
Write global quantities in a formatted file.
Star_bin_xcts star2
Second star of the system.
void orbit(double fact_omeg_min, double fact_omeg_max, double &xgg1, double &xgg2)
Computes the orbital angular velocity omega and the position of the rotation axis x_axe.
void analytical_omega()
Sets the orbital angular velocity to some 2-PN analytical value (Keplerian value in the Newtonian cas...
const Star_bin_xcts & operator()(int i) const
Returns a reference to the star no. i.
double mass_adm_vol() const
Total ADM mass (computed by a volume integral)
double * p_virial_vol
Virial theorem error (volume version)
double get_x_axe() const
Returns the absolute coordinate X of the rotation axis [r_unit].
Tbl * p_lin_mom
Total linear momentum of the system.
void operator=(const Binary_xcts &)
Assignment to another Binary_xcts.
double mass_kom_vol() const
Total Komar mass (computed by a volume integral)
Star_bin_xcts star1
First star of the system.
const Tbl & mom_constr() const
Estimates the relative error on the momentum constraint.
void sauve(FILE *) const
Save in a file.
double mass_adm() const
Total ADM mass.
void analytical_shift()
Sets some analytical template for the shift vector (via the members w_shift and khi_shift of the two ...
double separation() const
Returns the coordinate separation of the two stellar centers [r_unit].
void del_deriv() const
Deletes all the derived quantities.
double * p_mass_adm
Total ADM mass of the system.
double * p_total_ener
Total energy of the system.
friend ostream & operator<<(ostream &, const Binary_xcts &)
Display.
void display_poly(ostream &) const
Display in polytropic units.
ostream & operator>>(ostream &) const
Operator >> (function called by the operator <<).
double mass_kom() const
Total Komar mass.
~Binary_xcts()
Destructor.
double virial() const
Estimates the relative error on the virial theorem.
Tbl * p_angu_mom
Total angular momentum of the system.
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]...
double * p_virial
Virial theorem error.
const Tbl & angu_mom() const
Total angular momentum.
double ham_constr() const
Estimates the relative error on the Hamiltonian constraint.
Star_bin_xcts & set(int i)
Read/write of the star no. i.
double get_omega() const
Returns the orbital angular velocity [f_unit].
double omega
Angular velocity with respect to an asymptotically inertial observer.
Equation of state base class.
Base class for coordinate mappings.
Class for stars in binary system in eXtended Conformal Thin Sandwich formulation.