Neutron star - black hole binary system. More...
#include <bin_ns_bh.h>
Public Member Functions | |
Bin_ns_bh (Map &mp_ns, int nzet, const Eos &eos, bool irrot_ns, Map_af &mp_bh) | |
Standard constructor. | |
Bin_ns_bh (const Bin_ns_bh &) | |
Bin_ns_bh (Map &mp_ns, const Eos &eos, Map_af &mp_bh, FILE *fich, bool old=false) | |
Copy constructor. | |
void | operator= (const Bin_ns_bh &) |
Assignment to another Bin_ns_bh. | |
Et_bin_nsbh & | set_ns () |
Read/write of the neutron star. | |
Bhole & | set_bh () |
Read/write of the black hole. | |
void | set_omega (double) |
Sets the orbital angular velocity [{ f}]. | |
void | set_x_axe (double) |
Sets the absolute coordinate X of the rotation axis [{ r}]. | |
const Et_bin_nsbh & | get_ns () const |
Returns a constant reference to the neutron star. | |
const Bhole & | get_bh () const |
Returns a constant reference to the black hole. | |
double | get_omega () const |
Returns the orbital velocity. | |
double | get_x_axe () const |
Returns a constant reference to the black hole. | |
double | separation () const |
Return the separation. | |
virtual void | sauve (FILE *) const |
void | fait_decouple () |
Function used to compute the { decouple} functions for both the NS and the BH. | |
void | fait_tkij (int bound_nn=-1, double lim_nn=0) |
Computation of the extrinsic curvature tensor for both { star} and { bhole}. | |
void | orbit_omega (double fact_omeg_min, double fact_omeg_max) |
Computes the orbital angular velocity { omega}. | |
void | analytical_omega () |
Sets the orbital angular velocity of the neutron star to some 2-PN analytical value. | |
void | analytical_shift () |
Sets some analytical template for the shift vector (via the members { w} and { khi} of the neutron star. | |
void | init_auto () |
void | affecte (const Bin_ns_bh &) |
void | pseudo_misner (int &, int, double, double, int, double) |
double | adm_systeme () const |
double | adm_systeme_volume () const |
double | komar_systeme () const |
double | moment_systeme_inf () const |
double | moment_systeme_hor () const |
double | smarr () const |
Tbl | linear_momentum_systeme_inf () const |
double | viriel () const |
void | coal (double, double, int, int, double, double, double, double, double, double, double, const int, int, double) |
double | distance_propre_axe_bh (const int nr=65) const |
double | distance_propre_axe_ns (const int nr=65) const |
Private Member Functions | |
void | del_deriv () const |
Destructor. | |
void | set_der_0x0 () const |
Sets to { 0x0} all the pointers on derived quantities. | |
ostream & | operator>> (ostream &) const |
Operator >> (function called by the operator <<). | |
Private Attributes | |
const Base_vect_cart | ref_triad |
Cartesian triad of the absolute reference frame. | |
Et_bin_nsbh | star |
The neutron star. | |
Bhole | hole |
The black hole. | |
double | omega |
Angular velocity with respect to an asymptotically inertial observer. | |
double | x_axe |
Absolute X coordinate of the rotation axis. | |
double * | p_mass_adm |
Total ADM mass of the system. | |
double * | p_mass_kom |
Total Komar mass of the system. | |
Tbl * | p_angu_mom |
Total angular momentum of the system. | |
double * | p_total_ener |
Total energy of the system. | |
double * | p_virial |
Virial theorem error. | |
double * | p_virial_gb |
Virial theorem error by E.Gourgoulhon and S.Bonazzola. | |
double * | p_virial_fus |
Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata. | |
double * | p_ham_constr |
Relative error on the Hamiltonian constraint. | |
Tbl * | p_mom_constr |
Relative error on the momentum constraint. | |
Friends | |
ostream & | operator<< (ostream &, const Bin_ns_bh &) |
Save in a file. |
Neutron star - black hole binary system.
The class { Bin} is composed of an object of class { Et} and an object of class { Bhole}.
Definition at line 113 of file bin_ns_bh.h.
Standard constructor.
mp_ns | Mapping on which { star} will be defined | |
nzet | Number of domains occupied by { star} | |
eos | Equation of state of { star} | |
irrot_ns | should be { true} if { star} is irrotational, { false} if { star} is corotating | |
mp_bh | Mapping on which { bhole} will be defined |
Definition at line 103 of file bin_ns_bh.C.
References set_der_0x0().
Bin_ns_bh::Bin_ns_bh | ( | Map & | mp_ns, | |
const Eos & | eos, | |||
Map_af & | mp_bh, | |||
FILE * | fich, | |||
bool | old = false | |||
) |
Copy constructor.
Constructor from a file (see { sauve(FILE* )}).
mp_ns | Mapping on which { star} will be defined | |
eos | Equation of state of { star} | |
mp_bh | Mapping on which { star} will be defined | |
fich | input file (must have been created by the function { sauve}) |
Definition at line 130 of file bin_ns_bh.C.
References fread_be(), Bhole::get_omega(), hole, omega, set_der_0x0(), and x_axe.
void Bin_ns_bh::analytical_omega | ( | ) |
Sets the orbital angular velocity of the neutron star to some 2-PN analytical value.
Definition at line 54 of file bin_ns_bh_omegaana.C.
References del_deriv(), hole, Etoile_bin::is_irrotational(), Etoile::is_relativistic(), Etoile_bin::mass_g(), Bhole::masse_adm_seul(), pow(), Etoile::ray_eq(), separation(), set_omega(), sqrt(), and star.
void Bin_ns_bh::analytical_shift | ( | ) |
Sets some analytical template for the shift vector (via the members { w} and { khi} of the neutron star.
Definition at line 55 of file bin_ns_bh_anashift.C.
References Cmp::annule(), Map::get_mg(), Etoile::get_mp(), Etoile::get_nzet(), Mg3d::get_nzone(), hole, Etoile::is_relativistic(), Etoile_bin::mass_g(), Bhole::masse_adm_seul(), omega, Map::r, Etoile::ray_eq(), separation(), Tenseur::set(), Tenseur::set_etat_qcq(), Etoile_bin::set_khi_shift(), Tenseur::set_std_base(), Etoile_bin::set_w_shift(), Map::sinp, Map::sint, star, and Map::y.
void Bin_ns_bh::del_deriv | ( | ) | const [private] |
Destructor.
Deletes all the derived quantities
Definition at line 159 of file bin_ns_bh.C.
References p_angu_mom, p_ham_constr, p_mass_adm, p_mass_kom, p_mom_constr, p_total_ener, p_virial, p_virial_fus, p_virial_gb, and set_der_0x0().
void Bin_ns_bh::fait_decouple | ( | ) |
Function used to compute the { decouple} functions for both the NS and the BH.
Definition at line 113 of file bin_ns_bh_kij.C.
References Cmp::allocate_all(), Map::convert_absolute(), cos(), Bhole::decouple, Etoile_bin::decouple, Map::get_mg(), Mg3d::get_np(), Mg3d::get_nr(), Mg3d::get_nt(), Mg3d::get_nzone(), Map::get_ori_x(), hole, Etoile::mp, Bhole::mp, pow(), Cmp::set(), sin(), star, Cmp::std_base_scal(), Map::xa, Map::ya, and Map::za.
void Bin_ns_bh::fait_tkij | ( | int | bound_nn = -1 , |
|
double | lim_nn = 0 | |||
) |
Computation of the extrinsic curvature tensor for both { star} and { bhole}.
Definition at line 251 of file bin_ns_bh_kij.C.
References Etoile::a_car, Etoile_bin::akcar_auto, Etoile_bin::akcar_comp, Cmp::allocate_all(), Tenseur::change_triad(), Map::convert_absolute(), Cmp::dec2_dzpuis(), Tenseur::dec2_dzpuis(), Bhole::decouple, Etoile_bin::decouple, fait_decouple(), Et_bin_nsbh::fait_taij_auto(), Bhole::fait_taij_auto(), Map_af::get_alpha(), Map_af::get_beta(), Map::get_bvect_cart(), Tenseur::get_etat(), Map::get_mg(), Etoile::get_nnn(), Mg3d::get_np(), Mg3d::get_nr(), Mg3d::get_nt(), Mg3d::get_nzone(), Etoile_bin::get_shift_auto(), Bhole::get_shift_auto(), Tenseur::get_triad(), hole, Cmp::import(), Cmp::import_asymy(), Cmp::import_symy(), Tenseur::inc2_dzpuis(), max(), Etoile::mp, Bhole::mp, Bhole::n_auto, Bhole::n_comp, Bhole::n_tot, Etoile::nnn, norme(), Cmp::raccord(), Etoile_bin::ref_triad, ref_triad, Cmp::set(), Tenseur::set(), Tenseur::set_etat_qcq(), Tenseur::set_etat_zero(), Tenseur::set_std_base(), Tenseur::set_triad(), star, Et_bin_nsbh::taij_auto, Bhole::taij_auto, Bhole::taij_comp, Et_bin_nsbh::taij_tot, Bhole::taij_tot, Et_bin_nsbh::tkij_auto, Bhole::tkij_auto, Etoile_bin::tkij_comp, Et_bin_nsbh::tkij_tot, Bhole::tkij_tot, Cmp::val_point(), Map::xa, Map::ya, and Map::za.
const Bhole& Bin_ns_bh::get_bh | ( | ) | const [inline] |
Returns a constant reference to the black hole.
Definition at line 241 of file bin_ns_bh.h.
References hole.
const Et_bin_nsbh& Bin_ns_bh::get_ns | ( | ) | const [inline] |
Returns a constant reference to the neutron star.
Definition at line 237 of file bin_ns_bh.h.
References star.
double Bin_ns_bh::get_omega | ( | ) | const [inline] |
double Bin_ns_bh::get_x_axe | ( | ) | const [inline] |
Returns a constant reference to the black hole.
Definition at line 249 of file bin_ns_bh.h.
References x_axe.
void Bin_ns_bh::operator= | ( | const Bin_ns_bh & | bibi | ) |
Assignment to another Bin_ns_bh.
Definition at line 198 of file bin_ns_bh.C.
References del_deriv(), hole, omega, ref_triad, star, and x_axe.
ostream & Bin_ns_bh::operator>> | ( | ostream & | ost | ) | const [private] |
Operator >> (function called by the operator <<).
Definition at line 477 of file bin_ns_bh.C.
References Bhole::get_mp(), Bhole::get_rayon(), hole, omega, star, and x_axe.
void Bin_ns_bh::orbit_omega | ( | double | fact_omeg_min, | |
double | fact_omeg_max | |||
) |
Computes the orbital angular velocity { omega}.
fact_omeg_min | [input] : determines the lower bound of the interval { [omega, omega]} in which { omega} is searched by { omega = fact * omega}, where { omega} is the previous value of the angular velocity (typical value : { fact = 0.5}) | |
fact_omeg_max | [input] : determines the higher bound of the interval { [omega, omega]} in which { omega} is searched by { omega = fact * omega}, where { omega} is the previous value of the angular velocity. (typical value : { fact = 1.5}) |
Definition at line 68 of file bin_ns_bh_orbit.C.
References Param::add_double(), Param::add_int(), Cmp::dsdx(), flat_scalar_prod(), Et_bin_nsbh::get_confpsi(), Etoile_bin::get_loggam(), Etoile::get_mp(), Etoile::get_nnn(), Map::get_rot_phi(), Etoile::get_shift(), Tbl::get_taille(), Etoile::is_relativistic(), log(), omega, pow(), star, Cmp::std_base_scal(), x_axe, zero_list(), and zerosec_b().
double Bin_ns_bh::separation | ( | ) | const |
Return the separation.
Definition at line 231 of file bin_ns_bh.C.
References Map::get_ori_x(), hole, Bhole::mp, Etoile::mp, and star.
Bhole& Bin_ns_bh::set_bh | ( | ) | [inline] |
Read/write of the black hole.
Definition at line 223 of file bin_ns_bh.h.
References del_deriv(), and hole.
void Bin_ns_bh::set_der_0x0 | ( | ) | const [private] |
Sets to { 0x0} all the pointers on derived quantities.
Definition at line 177 of file bin_ns_bh.C.
References p_angu_mom, p_ham_constr, p_mass_adm, p_mass_kom, p_mom_constr, p_total_ener, p_virial, p_virial_fus, and p_virial_gb.
Et_bin_nsbh& Bin_ns_bh::set_ns | ( | ) | [inline] |
Read/write of the neutron star.
Definition at line 218 of file bin_ns_bh.h.
References del_deriv(), and star.
void Bin_ns_bh::set_omega | ( | double | omega_i | ) |
Sets the orbital angular velocity [{ f}].
Definition at line 214 of file bin_ns_bh.C.
References del_deriv(), hole, omega, and Bhole::set_omega().
void Bin_ns_bh::set_x_axe | ( | double | x_axe_i | ) |
Sets the absolute coordinate X of the rotation axis [{ r}].
Definition at line 223 of file bin_ns_bh.C.
References del_deriv(), and x_axe.
ostream& operator<< | ( | ostream & | , | |
const Bin_ns_bh & | ||||
) | [friend] |
Save in a file.
Display
Bhole Bin_ns_bh::hole [private] |
The black hole.
Definition at line 127 of file bin_ns_bh.h.
double Bin_ns_bh::omega [private] |
Angular velocity with respect to an asymptotically inertial observer.
Definition at line 132 of file bin_ns_bh.h.
Tbl* Bin_ns_bh::p_angu_mom [mutable, private] |
Total angular momentum of the system.
Definition at line 148 of file bin_ns_bh.h.
double* Bin_ns_bh::p_ham_constr [mutable, private] |
Relative error on the Hamiltonian constraint.
Definition at line 163 of file bin_ns_bh.h.
double* Bin_ns_bh::p_mass_adm [mutable, private] |
Total ADM mass of the system.
Definition at line 142 of file bin_ns_bh.h.
double* Bin_ns_bh::p_mass_kom [mutable, private] |
Total Komar mass of the system.
Definition at line 145 of file bin_ns_bh.h.
Tbl* Bin_ns_bh::p_mom_constr [mutable, private] |
Relative error on the momentum constraint.
Definition at line 166 of file bin_ns_bh.h.
double* Bin_ns_bh::p_total_ener [mutable, private] |
Total energy of the system.
Definition at line 151 of file bin_ns_bh.h.
double* Bin_ns_bh::p_virial [mutable, private] |
Virial theorem error.
Definition at line 154 of file bin_ns_bh.h.
double* Bin_ns_bh::p_virial_fus [mutable, private] |
Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata.
Definition at line 160 of file bin_ns_bh.h.
double* Bin_ns_bh::p_virial_gb [mutable, private] |
Virial theorem error by E.Gourgoulhon and S.Bonazzola.
Definition at line 157 of file bin_ns_bh.h.
const Base_vect_cart Bin_ns_bh::ref_triad [private] |
Cartesian triad of the absolute reference frame.
Definition at line 121 of file bin_ns_bh.h.
Et_bin_nsbh Bin_ns_bh::star [private] |
The neutron star.
Definition at line 124 of file bin_ns_bh.h.
double Bin_ns_bh::x_axe [private] |
Absolute X coordinate of the rotation axis.
Definition at line 136 of file bin_ns_bh.h.