LORENE
|
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. More... | |
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. More... | |
void | operator= (const Bin_ns_bh &) |
Assignment to another Bin_ns_bh. More... | |
Et_bin_nsbh & | set_ns () |
Read/write of the neutron star. More... | |
Bhole & | set_bh () |
Read/write of the black hole. More... | |
void | set_omega (double) |
Sets the orbital angular velocity [{ f_unit}]. More... | |
void | set_x_axe (double) |
Sets the absolute coordinate X of the rotation axis [{ r_unit}]. More... | |
const Et_bin_nsbh & | get_ns () const |
Returns a constant reference to the neutron star. More... | |
const Bhole & | get_bh () const |
Returns a constant reference to the black hole. More... | |
double | get_omega () const |
Returns the orbital velocity. More... | |
double | get_x_axe () const |
Returns a constant reference to the black hole. More... | |
double | separation () const |
Return the separation. More... | |
virtual void | sauve (FILE *) const |
void | fait_decouple () |
Function used to compute the { decouple} functions for both the NS and the BH. More... | |
void | fait_tkij (int bound_nn=-1, double lim_nn=0) |
Computation of the extrinsic curvature tensor for both { star} and { bhole}. More... | |
void | orbit_omega (double fact_omeg_min, double fact_omeg_max) |
Computes the orbital angular velocity { omega}. More... | |
void | analytical_omega () |
Sets the orbital angular velocity of the neutron star to some 2-PN analytical value. More... | |
void | analytical_shift () |
Sets some analytical template for the shift vector (via the members { w_shift} and { khi_shift} of the neutron star. More... | |
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. More... | |
void | set_der_0x0 () const |
Sets to { 0x0} all the pointers on derived quantities. More... | |
ostream & | operator>> (ostream &) const |
Operator >> (function called by the operator <<). More... | |
Private Attributes | |
const Base_vect_cart | ref_triad |
Cartesian triad of the absolute reference frame. More... | |
Et_bin_nsbh | star |
The neutron star. More... | |
Bhole | hole |
The black hole. More... | |
double | omega |
Angular velocity with respect to an asymptotically inertial observer. More... | |
double | x_axe |
Absolute X coordinate of the rotation axis. More... | |
double * | p_mass_adm |
Total ADM mass of the system. More... | |
double * | p_mass_kom |
Total Komar mass of the system. More... | |
Tbl * | p_angu_mom |
Total angular momentum of the system. More... | |
double * | p_total_ener |
Total energy of the system. More... | |
double * | p_virial |
Virial theorem error. More... | |
double * | p_virial_gb |
Virial theorem error by E.Gourgoulhon and S.Bonazzola. More... | |
double * | p_virial_fus |
Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata. More... | |
double * | p_ham_constr |
Relative error on the Hamiltonian constraint. More... | |
Tbl * | p_mom_constr |
Relative error on the momentum constraint. More... | |
Friends | |
ostream & | operator<< (ostream &, const Bin_ns_bh &) |
Save in a file. More... | |
Neutron star - black hole binary system.
The class { Bin_ns_bh} is composed of an object of class { Et_bin_nsbh} and an object of class { Bhole}.
Definition at line 120 of file bin_ns_bh.h.
Lorene::Bin_ns_bh::Bin_ns_bh | ( | Map & | mp_ns, |
int | nzet, | ||
const Eos & | eos, | ||
bool | irrot_ns, | ||
Map_af & | mp_bh | ||
) |
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 110 of file bin_ns_bh.C.
References set_der_0x0().
Lorene::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 137 of file bin_ns_bh.C.
References Lorene::fread_be(), Lorene::Bhole::get_omega(), hole, omega, set_der_0x0(), and x_axe.
void Lorene::Bin_ns_bh::analytical_omega | ( | ) |
Sets the orbital angular velocity of the neutron star to some 2-PN analytical value.
Definition at line 61 of file bin_ns_bh_omegaana.C.
References del_deriv(), hole, Lorene::Etoile_bin::is_irrotational(), Lorene::Etoile::is_relativistic(), Lorene::Etoile_bin::mass_g(), Lorene::Bhole::masse_adm_seul(), Lorene::pow(), Lorene::Etoile::ray_eq(), separation(), set_omega(), Lorene::sqrt(), and star.
void Lorene::Bin_ns_bh::analytical_shift | ( | ) |
Sets some analytical template for the shift vector (via the members { w_shift} and { khi_shift} of the neutron star.
Definition at line 62 of file bin_ns_bh_anashift.C.
References Lorene::Cmp::annule(), Lorene::Map::get_mg(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nzet(), Lorene::Mg3d::get_nzone(), hole, Lorene::Etoile::is_relativistic(), Lorene::Etoile_bin::mass_g(), Lorene::Bhole::masse_adm_seul(), omega, Lorene::Map::r, Lorene::Etoile::ray_eq(), separation(), Lorene::Tenseur::set(), Lorene::Tenseur::set_etat_qcq(), Lorene::Etoile_bin::set_khi_shift(), Lorene::Tenseur::set_std_base(), Lorene::Etoile_bin::set_w_shift(), Lorene::Map::sinp, Lorene::Map::sint, star, and Lorene::Map::y.
|
private |
Destructor.
Deletes all the derived quantities
Definition at line 166 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 Lorene::Bin_ns_bh::fait_decouple | ( | ) |
Function used to compute the { decouple} functions for both the NS and the BH.
Definition at line 122 of file bin_ns_bh_kij.C.
References Lorene::Cmp::allocate_all(), Lorene::Map::convert_absolute(), Lorene::cos(), Lorene::Bhole::decouple, Lorene::Etoile_bin::decouple, Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nr(), Lorene::Mg3d::get_nt(), Lorene::Mg3d::get_nzone(), Lorene::Map::get_ori_x(), hole, Lorene::Bhole::mp, Lorene::Etoile::mp, Lorene::pow(), Lorene::Cmp::set(), Lorene::sin(), star, Lorene::Cmp::std_base_scal(), Lorene::Map::xa, Lorene::Map::ya, and Lorene::Map::za.
void Lorene::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 260 of file bin_ns_bh_kij.C.
References Lorene::Etoile_bin::akcar_auto, Lorene::Etoile_bin::akcar_comp, Lorene::Tenseur::dec2_dzpuis(), fait_decouple(), Lorene::Et_bin_nsbh::fait_taij_auto(), Lorene::Bhole::fait_taij_auto(), Lorene::Tenseur::get_etat(), Lorene::Map::get_mg(), Lorene::Mg3d::get_np(), Lorene::Mg3d::get_nt(), Lorene::Bhole::get_shift_auto(), Lorene::Etoile_bin::get_shift_auto(), hole, Lorene::max(), Lorene::Bhole::mp, Lorene::Etoile::mp, Lorene::Bhole::n_auto, Lorene::Bhole::n_comp, Lorene::norme(), ref_triad, Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_etat_zero(), star, Lorene::Et_bin_nsbh::taij_auto, Lorene::Bhole::taij_auto, Lorene::Bhole::taij_comp, Lorene::Bhole::taij_tot, Lorene::Et_bin_nsbh::tkij_auto, Lorene::Bhole::tkij_auto, Lorene::Etoile_bin::tkij_comp, and Lorene::Bhole::tkij_tot.
|
inline |
Returns a constant reference to the black hole.
Definition at line 248 of file bin_ns_bh.h.
References hole.
|
inline |
Returns a constant reference to the neutron star.
Definition at line 244 of file bin_ns_bh.h.
References star.
|
inline |
|
inline |
Returns a constant reference to the black hole.
Definition at line 256 of file bin_ns_bh.h.
References x_axe.
void Lorene::Bin_ns_bh::operator= | ( | const Bin_ns_bh & | bibi | ) |
Assignment to another Bin_ns_bh.
Definition at line 205 of file bin_ns_bh.C.
References del_deriv(), hole, omega, ref_triad, star, and x_axe.
|
private |
Operator >> (function called by the operator <<).
Definition at line 484 of file bin_ns_bh.C.
References Lorene::Bhole::get_mp(), Lorene::Bhole::get_rayon(), hole, omega, star, and x_axe.
void Lorene::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_min, omega_max]} in which { omega} is searched by { omega_min = fact_omeg_min * omega}, where { omega} is the previous value of the angular velocity (typical value : { fact_omeg_min = 0.5}) |
fact_omeg_max | [input] : determines the higher bound of the interval { [omega_min, omega_max]} in which { omega} is searched by { omega_max = fact_omeg_max * omega}, where { omega} is the previous value of the angular velocity. (typical value : { fact_omeg_max = 1.5}) |
Definition at line 78 of file bin_ns_bh_orbit.C.
References Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Cmp::dsdx(), Lorene::flat_scalar_prod(), Lorene::Et_bin_nsbh::get_confpsi(), Lorene::Etoile_bin::get_loggam(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nnn(), Lorene::Map::get_rot_phi(), Lorene::Etoile::get_shift(), Lorene::Tbl::get_taille(), Lorene::Etoile::is_relativistic(), Lorene::log(), omega, Lorene::pow(), star, Lorene::Cmp::std_base_scal(), x_axe, Lorene::zero_list(), and Lorene::zerosec_b().
double Lorene::Bin_ns_bh::separation | ( | ) | const |
Return the separation.
Definition at line 238 of file bin_ns_bh.C.
References Lorene::Map::get_ori_x(), hole, Lorene::Bhole::mp, Lorene::Etoile::mp, and star.
|
inline |
Read/write of the black hole.
Definition at line 230 of file bin_ns_bh.h.
References del_deriv(), and hole.
|
private |
Sets to { 0x0} all the pointers on derived quantities.
Definition at line 184 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.
|
inline |
Read/write of the neutron star.
Definition at line 225 of file bin_ns_bh.h.
References del_deriv(), and star.
void Lorene::Bin_ns_bh::set_omega | ( | double | omega_i | ) |
Sets the orbital angular velocity [{ f_unit}].
Definition at line 221 of file bin_ns_bh.C.
References del_deriv(), hole, omega, and Lorene::Bhole::set_omega().
void Lorene::Bin_ns_bh::set_x_axe | ( | double | x_axe_i | ) |
Sets the absolute coordinate X of the rotation axis [{ r_unit}].
Definition at line 230 of file bin_ns_bh.C.
References del_deriv(), and x_axe.
|
friend |
Save in a file.
Definition at line 478 of file bin_ns_bh.C.
|
private |
The black hole.
Definition at line 134 of file bin_ns_bh.h.
|
private |
Angular velocity with respect to an asymptotically inertial observer.
Definition at line 139 of file bin_ns_bh.h.
|
mutableprivate |
Total angular momentum of the system.
Definition at line 155 of file bin_ns_bh.h.
|
mutableprivate |
Relative error on the Hamiltonian constraint.
Definition at line 170 of file bin_ns_bh.h.
|
mutableprivate |
Total ADM mass of the system.
Definition at line 149 of file bin_ns_bh.h.
|
mutableprivate |
Total Komar mass of the system.
Definition at line 152 of file bin_ns_bh.h.
|
mutableprivate |
Relative error on the momentum constraint.
Definition at line 173 of file bin_ns_bh.h.
|
mutableprivate |
Total energy of the system.
Definition at line 158 of file bin_ns_bh.h.
|
mutableprivate |
Virial theorem error.
Definition at line 161 of file bin_ns_bh.h.
|
mutableprivate |
Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata.
Definition at line 167 of file bin_ns_bh.h.
|
mutableprivate |
Virial theorem error by E.Gourgoulhon and S.Bonazzola.
Definition at line 164 of file bin_ns_bh.h.
|
private |
Cartesian triad of the absolute reference frame.
Definition at line 128 of file bin_ns_bh.h.
|
private |
The neutron star.
Definition at line 131 of file bin_ns_bh.h.
|
private |
Absolute X coordinate of the rotation axis.
Definition at line 143 of file bin_ns_bh.h.