28char hole_bhns_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Hole_bhns/hole_bhns.C,v 1.4 2014/10/13 08:52:59 j_novak Exp $" ;
69 bool bc_fs_i,
bool irrot_i,
double massbh)
396 if (p_mass_irr_bhns != 0x0)
delete p_mass_irr_bhns ;
407 p_mass_irr_bhns = 0x0 ;
614 fwrite(&
omega_spin,
sizeof(
double), 1, fich) ;
627 ost <<
"Black hole in a BHNS binary" << endl ;
628 ost <<
"---------------------------" << endl ;
630 int nt =
mp.get_mg()->get_nt(1) ;
632 ost <<
"Irreducible mass of BH : "
634 ost <<
"Mass in the background : "
635 <<
mass_bh / msol <<
" [Mo]" << endl ;
636 ost <<
"Radius of the apparent horison : "
637 <<
rad_ah() / km <<
" [km]" << endl ;
638 ost <<
"Spin angular velocity : "
639 <<
omega_spin * f_unit <<
" [rad/s]" << endl ;
640 ost <<
"Lapse function on the AH : "
641 <<
lapse_tot.val_grid_point(1,0,nt-1,0) << endl ;
642 ost <<
"Conformal factor on the AH : "
643 <<
confo_tot.val_grid_point(1,0,nt-1,0) << endl ;
644 ost <<
"shift(1) on the AH : "
645 <<
shift_tot(1).val_grid_point(1,0,nt-1,0) << endl ;
646 ost <<
"shift(2) on the AH : "
647 <<
shift_tot(2).val_grid_point(1,0,nt-1,0) << endl ;
648 ost <<
"shift(3) on the AH : "
649 <<
shift_tot(3).val_grid_point(1,0,nt-1,0) << endl ;
660 double relax_met,
int mer,
int fmer_met) {
662 double relax_met_jm1 = 1. - relax_met ;
664 if ( (mer != 0) && (mer % fmer_met == 0)) {
Black_hole(Map &mp_i, bool Kerr_schild, double massbh)
Standard constructor.
Map & mp
Mapping associated with the black hole.
virtual double rad_ah() const
Radius of the apparent horizon.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
virtual void sauve(FILE *) const
Save in a file.
void operator=(const Black_hole &)
Assignment to another Black_hole.
double mass_bh
Gravitational mass of BH.
virtual void del_deriv() const
Deletes all the derived quantities.
Scalar confo_auto
Conformal factor generated by the black hole.
Sym_tensor taij_tot_bh
Part of the extrinsic curvature tensor from the analytic background.
Scalar lapconf_auto
Lapconf function generated by the black hole.
Vector shift_tot
Total shift vector ;.
Scalar & set_confo_comp()
Read/write of the conformal factor generated by the companion star.
Sym_tensor taij_comp
Part of the extrinsic curvature tensor generated by the companion star.
Vector d_lapconf_auto
Derivative of the lapconf function generated by the black hole.
Tensor d_shift_auto
Derivative of the shift vector generated by the black hole.
Scalar & set_lapconf_auto_bh()
Read/write of the lapconf function generated by the black hole.
Vector d_lapconf_auto_rs
Derivative of the part of the lapconf function from the numerical computation.
Sym_tensor taij_auto
Part of the extrinsic curvature tensor generated by the black hole.
Scalar confo_auto_bh
Part of the conformal factor from the analytic background.
Tensor d_shift_auto_rs
Derivative of the part of the shift vector from the numerical computation.
Sym_tensor taij_tot_rs
Part of the extrinsic curvature tensor from the numerical computation.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Scalar taij_quad_auto
Part of the scalar from the black hole.
virtual ~Hole_bhns()
Destructor.
virtual double mass_irr_bhns() const
Irreducible mass of the black hole.
Vector & set_shift_auto()
Read/write of the shift vector generated by the black hole.
Hole_bhns(Map &mp_i, bool kerrschild_i, bool bc_lapconf_nd, bool bc_lapconf_fs, bool irrotational, double massbh)
Standard constructor.
Vector shift_auto_rs
Part of the shift vector from the numerical computation.
double omega_spin
Spin angular velocity of the black hole.
Vector & set_shift_auto_rs()
Read/write of the shift vector generated by the black hole.
Scalar & set_confo_auto_rs()
Read/write of the conformal factor generated by the black hole.
virtual void del_deriv() const
Deletes all the derived quantities.
Tensor d_shift_auto_bh
Derivative of the part of the shift vector from the analytic background.
Scalar & set_lapconf_auto_rs()
Read/write of the lapconf function generated by the black hole.
Scalar & set_confo_tot()
Read/write of the total conformal factor.
void operator=(const Hole_bhns &)
Assignment to another Hole_bhns.
void relax_bhns(const Hole_bhns &hole_prev, double relax_met, int mer, int fmer_met)
Performs a relaxation on lapse_auto , shift_auto , confo_auto .
bool bc_lapconf_fs
true for the first type BC for the lapconf function, false for the second type BH
Vector d_lapconf_auto_bh
Derivative of the part of the lapconf function from the analytic background.
Scalar & set_confo_auto()
Read/write of the conformal factor generated by the black hole.
Scalar & set_lapconf_tot()
Read/write of the total lapconf function.
Vector d_confo_auto_rs
Derivative of the part of the conformal factor from the numerical computation.
Scalar confo_auto_rs
Part of the conformal factor from the numerical computation.
Scalar taij_quad_tot_rot
Part of the scalar from the rotation shift vector.
Vector & set_shift_tot()
Read/write of the total shift vector.
Scalar taij_quad_tot
Total scalar generated by .
Scalar lapse_tot
Total lapse function.
Vector & set_shift_auto_bh()
Read/write of the shift vector generated by the black hole.
Scalar & set_lapse_auto()
Read/write of the lapse function generated by the black hole.
Sym_tensor taij_tot_rot
Part of the extrinsic curvature tensor from the rotation shift vector.
Vector & set_shift_comp()
Read/write of the shift vector generated by the companion star.
Vector d_lapconf_comp
Derivative of the lapconf function generated by the companion star.
Sym_tensor taij_tot
Total extrinsic curvature tensor generated by shift_tot , lapse_tot , and confo_tot .
Scalar lapse_auto
Lapse function of the "black hole" part.
Vector shift_auto_bh
Part of the shift vector from the analytic background.
Scalar confo_comp
Conformal factor generated by the companion star.
Scalar lapconf_comp
Lapconf function generated by the companion star.
Scalar lapconf_auto_bh
Part of the lapconf function from the analytic background.
Vector d_confo_auto
Derivative of the conformal factor generated by the black hole.
virtual void sauve(FILE *) const
Save in a file.
Vector shift_auto
Shift vector generated by the black hole.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
Scalar lapconf_auto_rs
Part of the lapconf function from the numerical computation.
Scalar & set_lapconf_auto()
Read/write of the lapconf function generated by the black hole.
Vector d_confo_comp
Derivative of the conformal factor generated by the companion star.
Scalar taij_quad_comp
Part of the scalar from the companion star.
bool bc_lapconf_nd
true for the Neumann type BC for the lapconf function, false for the Dirichlet type BH
Scalar & set_lapconf_comp()
Read/write of the lapconf function generated by the companion star.
Scalar lapconf_tot
Total lapconf function.
Tensor d_shift_comp
Derivative of the shift vector generated by the companion star.
Vector d_confo_auto_bh
Derivative of the part of the conformal factor from the analytic background.
Vector shift_comp
Shift vector generated by the companion star.
Scalar confo_tot
Total conformal factor.
Scalar & set_confo_auto_bh()
Read/write of the conformal factor generated by the black hole.
double * p_spin_am_bhns
Irreducible mass of BH.
Sym_tensor taij_auto_rs
Part of the extrinsic curvature tensor numericalty computed for the black hole.
Scalar taij_quad_tot_rs
Part of the scalar from the numerical computation.
Scalar taij_quad_tot_bh
Part of the scalar from the analytic background.
bool irrotational
true for an irrotational black hole, false for a corotating one
Scalar & set_lapse_tot()
Read/write of the total lapse function.
Tensor field of valence 0 (or component of a tensorial field).
Tensor field of valence 1.
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping,...
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Standard units of space, time and mass.