|
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. | |
| 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 [{\tt f_unit}]. | |
| void | set_x_axe (double) |
| Sets the absolute coordinate X of the rotation axis [{\tt r_unit}]. | |
| 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 {\tt 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 {\tt star} and {\tt bhole}. | |
| void | orbit_omega (double fact_omeg_min, double fact_omeg_max) |
| Computes the orbital angular velocity {\tt 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 {\tt w_shift} and {\tt khi_shift} 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 {\tt 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 &ost, const Bin_ns_bh &bibi) |
| Save in a file. | |
Neutron star - black hole binary system.
The class {\tt Bin_ns_bh} is composed of an object of class {\tt Et_bin_nsbh} and an object of class {\tt Bhole}.
Definition at line 117 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 {\tt star} will be defined |
| nzet | Number of domains occupied by {\tt star} |
| eos | Equation of state of {\tt star} |
| irrot_ns | should be {\tt true} if {\tt star} is irrotational, {\tt false} if {\tt star} is corotating |
| mp_bh | Mapping on which {\tt bhole} will be defined |
Definition at line 107 of file bin_ns_bh.C.
References hole, Lorene::Map(), omega, ref_triad, set_der_0x0(), star, and x_axe.
| Lorene::Bin_ns_bh::Bin_ns_bh | ( | const Bin_ns_bh & | bibi | ) |
Definition at line 121 of file bin_ns_bh.C.
| 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 {\tt sauve(FILE* )}).
| mp_ns | Mapping on which {\tt star} will be defined |
| eos | Equation of state of {\tt star} |
| mp_bh | Mapping on which {\tt star} will be defined |
| fich | input file (must have been created by the function {\tt sauve}) |
Definition at line 134 of file bin_ns_bh.C.
References Lorene::fread_be(), hole, Lorene::Map(), omega, ref_triad, set_der_0x0(), star, and x_axe.
|
virtual |
Definition at line 153 of file bin_ns_bh.C.
| double Lorene::Bin_ns_bh::adm_systeme | ( | ) | const |
Definition at line 78 of file bin_ns_bh_glob.C.
| double Lorene::Bin_ns_bh::adm_systeme_volume | ( | ) | const |
Definition at line 91 of file bin_ns_bh_glob.C.
| void Lorene::Bin_ns_bh::affecte | ( | const Bin_ns_bh & | so | ) |
Definition at line 321 of file bin_ns_bh.C.
| 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 58 of file bin_ns_bh_omegaana.C.
References del_deriv(), hole, Lorene::pow(), 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 {\tt w_shift} and {\tt khi_shift} of the neutron star.
Definition at line 59 of file bin_ns_bh_anashift.C.
References Lorene::Cmp::annule(), hole, Lorene::Map(), omega, separation(), and star.
| void Lorene::Bin_ns_bh::coal | ( | double | precis, |
| double | relax, | ||
| int | itemax_equil, | ||
| int | itemax_mp_et, | ||
| double | ent_c_init, | ||
| double | seuil_masses, | ||
| double | dist, | ||
| double | m1, | ||
| double | m2, | ||
| double | spin_cible, | ||
| double | scale_ome_local, | ||
| const int | sortie, | ||
| int | bound_nn, | ||
| double | lim_nn ) |
Definition at line 82 of file bin_ns_bh_coal.C.
|
private |
Destructor.
Deletes all the derived quantities
Definition at line 163 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().
| double Lorene::Bin_ns_bh::distance_propre_axe_bh | ( | const int | nr = 65 | ) | const |
Definition at line 393 of file bin_ns_bh_glob.C.
| double Lorene::Bin_ns_bh::distance_propre_axe_ns | ( | const int | nr = 65 | ) | const |
Definition at line 447 of file bin_ns_bh_glob.C.
| void Lorene::Bin_ns_bh::fait_decouple | ( | ) |
Function used to compute the {\tt decouple} functions for both the NS and the BH.
Definition at line 119 of file bin_ns_bh_kij.C.
References Lorene::Cmp::allocate_all(), Lorene::cos(), hole, Lorene::phi, Lorene::pow(), Lorene::Cmp::set(), Lorene::sin(), star, and Lorene::Cmp::std_base_scal().
| void Lorene::Bin_ns_bh::fait_tkij | ( | int | bound_nn = -1, |
| double | lim_nn = 0 ) |
Computation of the extrinsic curvature tensor for both {\tt star} and {\tt bhole}.
Definition at line 257 of file bin_ns_bh_kij.C.
References Lorene::Cmp::allocate_all(), Lorene::Tenseur::change_triad(), Lorene::Cmp::dec2_dzpuis(), Lorene::Tenseur::dec2_dzpuis(), fait_decouple(), Lorene::Tenseur::get_triad(), hole, Lorene::Cmp::import(), Lorene::Cmp::import_asymy(), Lorene::Cmp::import_symy(), Lorene::Tenseur::inc2_dzpuis(), Lorene::max(), Lorene::norme(), Lorene::phi, Lorene::Cmp::raccord(), ref_triad, Lorene::Cmp::set(), Lorene::Tenseur::set(), Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_etat_zero(), Lorene::Tenseur::set_std_base(), Lorene::Tenseur::set_triad(), star, and Lorene::Cmp::val_point().
|
inline |
Returns a constant reference to the black hole.
Definition at line 245 of file bin_ns_bh.h.
References hole.
|
inline |
Returns a constant reference to the neutron star.
Definition at line 241 of file bin_ns_bh.h.
References star.
|
inline |
|
inline |
Returns a constant reference to the black hole.
Definition at line 253 of file bin_ns_bh.h.
References x_axe.
| void Lorene::Bin_ns_bh::init_auto | ( | ) |
Definition at line 257 of file bin_ns_bh.C.
| double Lorene::Bin_ns_bh::komar_systeme | ( | ) | const |
Definition at line 152 of file bin_ns_bh_glob.C.
| Tbl Lorene::Bin_ns_bh::linear_momentum_systeme_inf | ( | ) | const |
Definition at line 311 of file bin_ns_bh_glob.C.
| double Lorene::Bin_ns_bh::moment_systeme_hor | ( | ) | const |
Definition at line 263 of file bin_ns_bh_glob.C.
| double Lorene::Bin_ns_bh::moment_systeme_inf | ( | ) | const |
Definition at line 173 of file bin_ns_bh_glob.C.
| void Lorene::Bin_ns_bh::operator= | ( | const Bin_ns_bh & | bibi | ) |
Assignment to another Bin_ns_bh.
Definition at line 202 of file bin_ns_bh.C.
References Bin_ns_bh(), del_deriv(), hole, omega, ref_triad, star, and x_axe.
|
private |
| void Lorene::Bin_ns_bh::orbit_omega | ( | double | fact_omeg_min, |
| double | fact_omeg_max ) |
Computes the orbital angular velocity {\tt omega}.
| fact_omeg_min | [input] : determines the lower bound of the interval {\tt [omega_min, omega_max]} in which {\tt omega} is searched by {\tt omega_min = fact_omeg_min * omega}, where {\tt omega} is the previous value of the angular velocity (typical value : {\tt fact_omeg_min = 0.5}) |
| fact_omeg_max | [input] : determines the higher bound of the interval {\tt [omega_min, omega_max]} in which {\tt omega} is searched by {\tt omega_max = fact_omeg_max * omega}, where {\tt omega} is the previous value of the angular velocity. (typical value : {\tt fact_omeg_max = 1.5}) |
Definition at line 75 of file bin_ns_bh_orbit.C.
References Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Cmp::dsdx(), Lorene::flat_scalar_prod(), Lorene::Tbl::get_taille(), Lorene::log(), Lorene::Map(), omega, Lorene::pow(), star, Lorene::Cmp::std_base_scal(), x_axe, Lorene::zero_list(), and Lorene::zerosec_b().
| void Lorene::Bin_ns_bh::pseudo_misner | ( | int & | ite, |
| int | itemax, | ||
| double | relax, | ||
| double | precis, | ||
| int | bound_nn, | ||
| double | lim_nn ) |
Definition at line 59 of file pseudo_misner.C.
|
virtual |
Definition at line 246 of file bin_ns_bh.C.
| double Lorene::Bin_ns_bh::separation | ( | ) | const |
|
inline |
Read/write of the black hole.
Definition at line 227 of file bin_ns_bh.h.
References del_deriv(), and hole.
|
private |
Sets to {\tt 0x0} all the pointers on derived quantities.
Definition at line 181 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 222 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 [{\tt f_unit}].
Definition at line 218 of file bin_ns_bh.C.
References del_deriv(), hole, and omega.
| void Lorene::Bin_ns_bh::set_x_axe | ( | double | x_axe_i | ) |
Sets the absolute coordinate X of the rotation axis [{\tt r_unit}].
Definition at line 227 of file bin_ns_bh.C.
References del_deriv(), and x_axe.
| double Lorene::Bin_ns_bh::smarr | ( | ) | const |
Definition at line 501 of file bin_ns_bh_glob.C.
| double Lorene::Bin_ns_bh::viriel | ( | ) | const |
Definition at line 166 of file bin_ns_bh_glob.C.
|
friend |
Save in a file.
Display
Definition at line 475 of file bin_ns_bh.C.
References Bin_ns_bh(), and operator<<.
|
private |
The black hole.
Definition at line 131 of file bin_ns_bh.h.
|
private |
Angular velocity with respect to an asymptotically inertial observer.
Definition at line 136 of file bin_ns_bh.h.
|
mutableprivate |
Total angular momentum of the system.
Definition at line 152 of file bin_ns_bh.h.
|
mutableprivate |
Relative error on the Hamiltonian constraint.
Definition at line 167 of file bin_ns_bh.h.
|
mutableprivate |
Total ADM mass of the system.
Definition at line 146 of file bin_ns_bh.h.
|
mutableprivate |
Total Komar mass of the system.
Definition at line 149 of file bin_ns_bh.h.
|
mutableprivate |
Relative error on the momentum constraint.
Definition at line 170 of file bin_ns_bh.h.
|
mutableprivate |
Total energy of the system.
Definition at line 155 of file bin_ns_bh.h.
|
mutableprivate |
Virial theorem error.
Definition at line 158 of file bin_ns_bh.h.
|
mutableprivate |
Virial theorem error by J.L.Friedman, K.Uryu, and M.Shibata.
Definition at line 164 of file bin_ns_bh.h.
|
mutableprivate |
Virial theorem error by E.Gourgoulhon and S.Bonazzola.
Definition at line 161 of file bin_ns_bh.h.
|
private |
Cartesian triad of the absolute reference frame.
Definition at line 125 of file bin_ns_bh.h.
|
private |
The neutron star.
Definition at line 128 of file bin_ns_bh.h.
|
private |
Absolute X coordinate of the rotation axis.
Definition at line 140 of file bin_ns_bh.h.