LORENE
|
Class for computing a Black hole - Neutron star binary system with an extreme mass ratio. More...
#include <bin_bhns_extr.h>
Public Member Functions | |
Bin_bhns_extr (Map &mp, int nzet, const Eos &eos, bool irrot, bool relat, bool kerrs, bool multi) | |
Standard constructor. More... | |
Bin_bhns_extr (const Bin_bhns_extr &) | |
Copy constructor. More... | |
Bin_bhns_extr (Map &mp, const Eos &eos, FILE *fich) | |
Constructor from a file (see sauve(FILE*) ) More... | |
~Bin_bhns_extr () | |
Destructor. More... | |
void | operator= (const Bin_bhns_extr &) |
Assignment to another Bin_bhns_extr. More... | |
Et_bin_bhns_extr & | set_ns () |
Read/write of the neutron star. More... | |
double & | set_omega () |
Sets the orbital angular velocity [{ f_unit}]. More... | |
double & | set_separ () |
Sets the orbital separation [{ r_unit}]. More... | |
double & | set_mass_bh () |
Sets the gravitational mass of BH [{ m_unit}]. More... | |
const Et_bin_bhns_extr & | get_ns () const |
Returns a reference to the neutron star. More... | |
double | get_omega () const |
Returns the orbital angular velocity [{ f_unit}]. More... | |
double | get_separ () const |
Returns the coordinate separation of the binary system [{ r_unit}]. More... | |
double | get_mass_bh () const |
Returns the gravitational mass of BH [{ m_unit}]. More... | |
void | sauve (FILE *) const |
Save in a file. More... | |
void | display_poly (ostream &) const |
Display in polytropic units. More... | |
double | xa_barycenter_extr () const |
Absolute coordinate X of the barycenter of the baryon density in the Kerr-Schild background metric or in the conformally flat one. More... | |
double | ya_barycenter_extr () const |
in the Kerr-Schild background metric More... | |
double | mass_b_extr () const |
Baryon mass of the neutron star in the Kerr-Schild background metric or in the conformally flat. More... | |
void | orbit_omega_ks (double fact_omeg_min, double fact_omeg_max) |
Computes the orbital angular velocity { omega} in the Kerr-Schild background metric. More... | |
void | orbit_omega_cf (double fact_omeg_min, double fact_omeg_max) |
Computes the orbital angular velocity { omega} in the conformally flat background metric. More... | |
void | analytical_omega () |
Sets the orbital angular velocity to some 2-PN analytical value (Keplerian value in the Newtonian case) More... | |
void | analytical_shift () |
Sets some analytical template for the shift vector (via the members { w_shift} and { khi_shift} of { Etoile_bin}) More... | |
Private Member Functions | |
void | del_deriv () const |
Deletes all the derived quantities. 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_bhns_extr | star |
Neutron star. More... | |
double | omega |
Angular velocity with respect to an asymptotically inertial observer. More... | |
double | separ |
Absolute orbital separation between two centers of BH and NS. More... | |
double | mass_bh |
Gravitational mass of BH. More... | |
double * | p_xa_barycenter_extr |
Absolute coordinate X of the barycenter of the baryon density in the Kerr-Schild background metric or in the conformally flat one. More... | |
double * | p_ya_barycenter_extr |
Absolute coordinate Y of the barycenter of the baryon density in the Kerr-Schild background metric. More... | |
double * | p_mass_b_extr |
Baryon mass of the neutron star in the Kerr-Schild background metric or in the conformally flat one. More... | |
Friends | |
ostream & | operator<< (ostream &, const Bin_bhns_extr &) |
Display. More... | |
Class for computing a Black hole - Neutron star binary system with an extreme mass ratio.
()
Definition at line 57 of file bin_bhns_extr.h.
Lorene::Bin_bhns_extr::Bin_bhns_extr | ( | Map & | mp, |
int | nzet, | ||
const Eos & | eos, | ||
bool | irrot, | ||
bool | relat, | ||
bool | kerrs, | ||
bool | multi | ||
) |
Standard constructor.
mp | Mapping on which the neutron star will be defined |
nzet | Number of domains occupied by the neutron star |
eos | Equation of state of the neutron star |
irrot | should be { true} if NS is irrotational, { false} if NS is corotating |
relat | should be { true} for a relativistic configuration, { false} for a Newtonian one |
kerrs | should be { true} for the Kerr-Schild background metric, { false} for the conformally flat one |
multi | should be { true} for the multipole falloff boundary condition, { true} for the one |
Definition at line 88 of file bin_bhns_extr.C.
References mass_bh, omega, separ, and set_der_0x0().
Lorene::Bin_bhns_extr::Bin_bhns_extr | ( | const Bin_bhns_extr & | bibi | ) |
Constructor from a file (see sauve(FILE*)
)
mp | Mapping on which the neutron star will be defined |
eos | Equation of state of the neutron star |
Definition at line 120 of file bin_bhns_extr.C.
References Lorene::fread_be(), mass_bh, omega, separ, and set_der_0x0().
Lorene::Bin_bhns_extr::~Bin_bhns_extr | ( | ) |
void Lorene::Bin_bhns_extr::analytical_omega | ( | ) |
Sets the orbital angular velocity to some 2-PN analytical value (Keplerian value in the Newtonian case)
Definition at line 58 of file bin_bhns_extr_omegaana.C.
References del_deriv(), Lorene::Etoile_bin::is_irrotational(), Lorene::Etoile::is_relativistic(), mass_bh, omega, Lorene::pow(), Lorene::Etoile::ray_eq(), separ, Lorene::sqrt(), and star.
void Lorene::Bin_bhns_extr::analytical_shift | ( | ) |
Sets some analytical template for the shift vector (via the members { w_shift} and { khi_shift} of { Etoile_bin})
Definition at line 58 of file bin_bhns_extr_anashift.C.
References Lorene::Cmp::annule(), Lorene::Map::get_mg(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nzet(), Lorene::Mg3d::get_nzone(), Lorene::Etoile::is_relativistic(), Lorene::Etoile_bin::mass_g(), omega, Lorene::Map::r, Lorene::Etoile::ray_eq(), separ, 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 |
Deletes all the derived quantities.
Definition at line 148 of file bin_bhns_extr.C.
References p_mass_b_extr, p_xa_barycenter_extr, p_ya_barycenter_extr, and set_der_0x0().
void Lorene::Bin_bhns_extr::display_poly | ( | ostream & | ost | ) | const |
Display in polytropic units.
Definition at line 326 of file bin_bhns_extr.C.
References Lorene::Etoile::get_eos(), Lorene::Eos_poly::get_gam(), Lorene::Eos_poly::get_kap(), Lorene::Etoile_bin::mass_b(), mass_b_extr(), mass_bh, omega, Lorene::pow(), Lorene::Etoile::ray_eq(), Lorene::Etoile::ray_eq_pi(), separ, Lorene::sqrt(), star, xa_barycenter_extr(), and ya_barycenter_extr().
|
inline |
Returns the gravitational mass of BH [{ m_unit}].
Definition at line 178 of file bin_bhns_extr.h.
References mass_bh.
|
inline |
Returns a reference to the neutron star.
Definition at line 166 of file bin_bhns_extr.h.
References star.
|
inline |
Returns the orbital angular velocity [{ f_unit}].
Definition at line 170 of file bin_bhns_extr.h.
References omega.
|
inline |
Returns the coordinate separation of the binary system [{ r_unit}].
Definition at line 175 of file bin_bhns_extr.h.
References separ.
double Lorene::Bin_bhns_extr::mass_b_extr | ( | ) | const |
Baryon mass of the neutron star in the Kerr-Schild background metric or in the conformally flat.
Definition at line 221 of file bin_bhns_extr_global.C.
References Lorene::Etoile::get_a_car(), Lorene::Etoile::get_gam_euler(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nbar(), Lorene::Et_bin_bhns_extr::in_kerrschild(), Lorene::Cmp::integrale(), Lorene::Etoile::is_relativistic(), mass_bh, p_mass_b_extr, Lorene::pow(), separ, Lorene::Tenseur::set(), Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_std_base(), Lorene::sqrt(), star, Lorene::Cmp::std_base_scal(), Lorene::Map::x, Lorene::Map::y, and Lorene::Map::z.
void Lorene::Bin_bhns_extr::operator= | ( | const Bin_bhns_extr & | bibi | ) |
Assignment to another Bin_bhns_extr.
Definition at line 172 of file bin_bhns_extr.C.
References del_deriv(), mass_bh, omega, ref_triad, separ, and star.
|
private |
Operator >> (function called by the operator <<)
Definition at line 213 of file bin_bhns_extr.C.
References Lorene::Etoile::get_a_car(), Lorene::Etoile::get_ener(), Lorene::Etoile::get_ent(), Lorene::Etoile::get_eos(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nbar(), Lorene::Etoile::get_nnn(), Lorene::Etoile::get_nzet(), Lorene::Map::get_ori_x(), Lorene::Etoile::get_press(), Lorene::Map::get_rot_phi(), Lorene::Et_bin_bhns_extr::in_kerrschild(), Lorene::Etoile_bin::is_irrotational(), Lorene::Etoile::is_relativistic(), Lorene::Etoile_bin::mass_b(), mass_b_extr(), mass_bh, Lorene::Etoile_bin::mass_g(), omega, Lorene::Etoile::ray_eq(), Lorene::Etoile::ray_eq_pi(), separ, star, and Lorene::Et_bin_bhns_extr::with_multipole().
void Lorene::Bin_bhns_extr::orbit_omega_cf | ( | double | fact_omeg_min, |
double | fact_omeg_max | ||
) |
Computes the orbital angular velocity { omega} in the conformally flat background metric.
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 325 of file bin_bhns_extr_orbit.C.
References Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Tenseur::change_triad(), Lorene::Cmp::dsdx(), Lorene::flat_scalar_prod(), Lorene::Etoile::get_a_car(), Lorene::Map::get_bvect_cart(), Lorene::Etoile::get_d_logn_auto_div(), Lorene::Etoile_bin::get_loggam(), Lorene::Etoile::get_logn_auto_regu(), Lorene::Etoile_bin::get_logn_comp(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nnn(), Lorene::Map::get_rot_phi(), Lorene::Etoile::get_shift(), Lorene::Tbl::get_taille(), Lorene::Tenseur::get_triad(), Lorene::Etoile::is_relativistic(), omega, ref_triad, star, Lorene::zero_list(), and Lorene::zerosec_b().
void Lorene::Bin_bhns_extr::orbit_omega_ks | ( | double | fact_omeg_min, |
double | fact_omeg_max | ||
) |
Computes the orbital angular velocity { omega} in the Kerr-Schild background metric.
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 73 of file bin_bhns_extr_orbit.C.
References Lorene::Param::add_double(), Lorene::Param::add_int(), Lorene::Tenseur::change_triad(), Lorene::Cmp::dsdx(), Lorene::flat_scalar_prod(), Lorene::Etoile::get_a_car(), Lorene::Map::get_bvect_cart(), Lorene::Etoile::get_d_logn_auto_div(), Lorene::Etoile_bin::get_d_logn_comp(), Lorene::Etoile_bin::get_loggam(), Lorene::Etoile::get_logn_auto_regu(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nnn(), Lorene::Map::get_rot_phi(), Lorene::Etoile::get_shift(), Lorene::Tbl::get_taille(), Lorene::Tenseur::get_triad(), Lorene::Etoile::is_relativistic(), mass_bh, omega, ref_triad, separ, star, Lorene::zero_list(), and Lorene::zerosec_b().
void Lorene::Bin_bhns_extr::sauve | ( | FILE * | fich | ) | const |
Save in a file.
Definition at line 194 of file bin_bhns_extr.C.
References Lorene::fwrite_be(), mass_bh, omega, Lorene::Et_bin_bhns_extr::sauve(), separ, and star.
|
private |
Sets to 0x0
all the pointers on derived quantities.
Definition at line 158 of file bin_bhns_extr.C.
References p_mass_b_extr, p_xa_barycenter_extr, and p_ya_barycenter_extr.
|
inline |
Sets the gravitational mass of BH [{ m_unit}].
Definition at line 160 of file bin_bhns_extr.h.
References mass_bh.
|
inline |
Read/write of the neutron star.
Definition at line 149 of file bin_bhns_extr.h.
References del_deriv(), and star.
|
inline |
Sets the orbital angular velocity [{ f_unit}].
Definition at line 154 of file bin_bhns_extr.h.
References omega.
|
inline |
Sets the orbital separation [{ r_unit}].
Definition at line 157 of file bin_bhns_extr.h.
References separ.
double Lorene::Bin_bhns_extr::xa_barycenter_extr | ( | ) | const |
Absolute coordinate X of the barycenter of the baryon density in the Kerr-Schild background metric or in the conformally flat one.
Definition at line 66 of file bin_bhns_extr_global.C.
References Lorene::Etoile::get_a_car(), Lorene::Etoile::get_gam_euler(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nbar(), Lorene::Et_bin_bhns_extr::in_kerrschild(), Lorene::Cmp::integrale(), mass_b_extr(), mass_bh, p_xa_barycenter_extr, Lorene::pow(), separ, Lorene::Tenseur::set(), Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_std_base(), Lorene::sqrt(), star, Lorene::Cmp::std_base_scal(), Lorene::Map::x, Lorene::Map::xa, Lorene::Map::y, and Lorene::Map::z.
double Lorene::Bin_bhns_extr::ya_barycenter_extr | ( | ) | const |
in the Kerr-Schild background metric
Definition at line 143 of file bin_bhns_extr_global.C.
References Lorene::Etoile::get_a_car(), Lorene::Etoile::get_gam_euler(), Lorene::Etoile::get_mp(), Lorene::Etoile::get_nbar(), Lorene::Et_bin_bhns_extr::in_kerrschild(), Lorene::Cmp::integrale(), mass_b_extr(), mass_bh, p_ya_barycenter_extr, Lorene::pow(), separ, Lorene::Tenseur::set(), Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_std_base(), Lorene::sqrt(), star, Lorene::Cmp::std_base_scal(), Lorene::Map::x, Lorene::Map::y, Lorene::Map::ya, and Lorene::Map::z.
|
friend |
Display.
Definition at line 206 of file bin_bhns_extr.C.
|
private |
Gravitational mass of BH.
Definition at line 77 of file bin_bhns_extr.h.
|
private |
Angular velocity with respect to an asymptotically inertial observer.
Definition at line 71 of file bin_bhns_extr.h.
|
mutableprivate |
Baryon mass of the neutron star in the Kerr-Schild background metric or in the conformally flat one.
Definition at line 96 of file bin_bhns_extr.h.
|
mutableprivate |
Absolute coordinate X of the barycenter of the baryon density in the Kerr-Schild background metric or in the conformally flat one.
Definition at line 86 of file bin_bhns_extr.h.
|
mutableprivate |
Absolute coordinate Y of the barycenter of the baryon density in the Kerr-Schild background metric.
Definition at line 91 of file bin_bhns_extr.h.
|
private |
Cartesian triad of the absolute reference frame.
Definition at line 63 of file bin_bhns_extr.h.
|
private |
Absolute orbital separation between two centers of BH and NS.
Definition at line 74 of file bin_bhns_extr.h.
|
private |
Neutron star.
Definition at line 66 of file bin_bhns_extr.h.