28char star_bhns_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star_bhns/star_bhns.C,v 1.4 2014/10/13 08:53:40 j_novak Exp $" ;
65Cmp raccord_c1(
const Cmp& uu,
int l1) ;
74 :
Star(mp_i, nzet_i, eos_i),
117 u_euler.change_triad(mp_i.get_bvect_cart()) ;
121 psi0.std_spectral_base() ;
122 d_psi.set_etat_zero() ;
123 wit_w.set_etat_zero() ;
125 loggam.std_spectral_base() ;
126 bsn.set_etat_zero() ;
128 gam.std_spectral_base() ;
130 gam0.std_spectral_base() ;
160 psi4.std_spectral_base() ;
222 :
Star(mp_i, eos_i, fich),
266 Scalar gam_euler_file(
mp, *(
mp.get_mg()), fich) ;
275 u_euler.change_triad(mp_i.get_bvect_cart()) ;
280 d_psi.set_etat_zero() ;
281 wit_w.set_etat_zero() ;
283 loggam.std_spectral_base() ;
284 bsn.set_etat_zero() ;
286 gam.std_spectral_base() ;
288 gam0.std_spectral_base() ;
313 psi4.std_spectral_base() ;
502 ost <<
"Neutron star in a BHNS binary" << endl ;
503 ost <<
"-----------------------------" << endl ;
505 ost <<
"Coordinate radius R_eq_tow : "
507 ost <<
"Coordinate radius R_eq_opp : "
508 <<
ray_eq() / km <<
" [km]" << endl ;
509 ost <<
"Coordinate radius R_eq_orb : "
511 ost <<
"Coordinate radius R_pole : "
512 <<
ray_pole() / km <<
" [km]" << endl ;
513 ost <<
"Central enthalph H_ent : "
514 <<
ent.val_grid_point(0,0,0,0) << endl ;
515 ost <<
"Lapse function at the center of NS : "
516 <<
lapse_tot.val_grid_point(0,0,0,0) << endl ;
517 ost <<
"Conformal factor at the center of NS : "
518 <<
confo_tot.val_grid_point(0,0,0,0) << endl ;
519 ost <<
"shift(1) at the center of NS : "
520 <<
shift_tot(1).val_grid_point(0,0,0,0) << endl ;
521 ost <<
"shift(2) at the center of NS : "
522 <<
shift_tot(2).val_grid_point(0,0,0,0) << endl ;
523 ost <<
"shift(3) at the center of NS : "
524 <<
shift_tot(3).val_grid_point(0,0,0,0) << endl ;
538 d_psi.set_etat_nondef() ;
557 for (
int i=1; i<=3; i++) {
558 v_orb.
set(i) = www(i).val_grid_point(0,0,0,0) ;
566 for (
int i=1; i<=3; i++)
567 d_psi0.
set(i) =
psi0.deriv(i) ;
571 d_psi = d_psi0 + v_orb ;
573 for (
int i=1; i<=3; i++) {
574 if (
d_psi(i).get_etat() == ETATZERO)
575 d_psi.set(i).annule_hard() ;
582 int nzm1 =
mp.get_mg()->get_nzone() - 1 ;
584 for (
int i=1; i<=3; i++) {
586 d_psi_i.
va.
set_base( d_psi0(i).get_spectral_va().base ) ;
587 d_psi_i = raccord_c1(d_psi_i,
nzet) ;
588 d_psi.set(i) = d_psi_i ;
595 double relax_met,
int mer,
int fmer_met) {
597 double relax_ent_jm1 = 1. - relax_ent ;
598 double relax_met_jm1 = 1. - relax_met ;
600 ent = relax_ent *
ent + relax_ent_jm1 * star_prev.
ent ;
602 if ( (mer != 0) && (mer % fmer_met == 0)) {
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Valeur va
The numerical value of the Cmp.
Equation of state base class.
Tensor field of valence 0 (or component of a tensorial field).
Metric_flat flat
Flat metric defined on the mapping (Spherical components with respect to the mapping of the star ).
Scalar & set_confo_comp()
Read/write of the conformal factor generated by the companion black hole.
virtual void sauve(FILE *) const
Save in a file.
Vector shift_tot
Total shift vector.
Sym_tensor taij_auto
Part of the extrinsic curvature tensor generated by shift_auto , lapse_auto , and confo_auto .
Scalar lapconf_auto
Lapconf function generated by the star.
Scalar confo_comp
Conformal factor generated by the companion black hole.
Vector wit_w
Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
Tensor d_shift_auto
Derivative of the shift vector generated by the star .
Vector bsn
3-vector shift, divided by N , of the rotating coordinates, .
Scalar & set_confo_auto()
Read/write of the conformal factor generated by the neutron star.
Vector & set_shift_auto()
Read/write of the shift vector generated by the neutron star.
Scalar & set_lapconf_auto()
Read/write of the lapconf function generated by the neutron star.
Scalar & set_pot_centri()
Read/write the centrifugal potential.
void fait_d_psi_bhns()
Computes the gradient of the total velocity potential .
Scalar lapse_tot
Total lapse function.
Vector ssjm1_wshift
Effective source at the previous step for the resolution of the vector Poisson equation for by means...
virtual void del_deriv() const
Deletes all the derived quantities.
Vector d_confo_comp
Derivative of the conformal factor generated by the companion black hole.
void operator=(const Star_bhns &)
Assignment to another Star_bhns.
Scalar confo_tot
Total conformal factor.
Scalar psi4
Fourth power of the total conformal factor.
Vector d_lapconf_auto
Derivative of the lapconf function generated by the star .
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star...
Vector d_confo_auto
Derivative of the conformal factor generated by the star .
Scalar & set_lapconf_comp()
Read/write of the lapconf function generated by the companion black hole.
Scalar gam0
Lorentz factor between the co-orbiting observer and the Eulerian one.
Vector shift_comp
Shift vector generated by the companion black hole.
Scalar lapconf_tot
Total lapconf function.
Star_bhns(Map &mp_i, int nzet_i, const Eos &eos_i, bool irrot_i)
Standard constructor.
Vector d_lapconf_comp
Derivative of the lapconf function generated by the companion black hole.
Vector & set_shift_comp()
Read/write of the shift vector generated by the companion black hole.
Scalar gam
Lorentz factor between the fluid and the co-orbiting observer.
Scalar ssjm1_lapconf
Effective source at the previous step for the resolution of the Poisson equation for lapconf_auto .
bool irrotational
true for an irrotational star, false for a corotating one
Scalar pot_centri
Centrifugal potential.
void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
double * p_mass_b_bhns
Baryon mass.
Scalar lapse_auto
Lapse function generated by the "star".
void relax_bhns(const Star_bhns &star_prev, double relax_ent, double relax_met, int mer, int fmer_met)
Performs a relaxation on ent , lapse_auto , shift_auto , confo_auto .
Scalar psi0
Scalar potential of the non-translational part of fluid 4-velocity (in the irrotational case).
Scalar lapconf_comp
Lapconf function generated by the companion black hole.
Scalar taij_quad_auto
Part of the scalar generated by .
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Vector shift_auto
Shift vector generated by the star.
Scalar ssjm1_khi
Effective source at the previous step for the resolution of the Poisson equation for the scalar by m...
Scalar confo_auto
Conformal factor generated by the star.
Scalar ssjm1_confo
Effective source at the previous step for the resolution of the Poisson equation for confo_auto .
Map_af mp_aff
Affine mapping for solving poisson's equations of metric quantities.
Tensor d_shift_comp
Derivative of the shift vector generated by the companion black hole.
Scalar loggam
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
virtual ~Star_bhns()
Destructor.
double * p_mass_g_bhns
Gravitational mass.
Star(Map &mp_i, int nzet_i, const Eos &eos_i)
Standard constructor.
void equation_of_state()
Computes the proper baryon and energy density, as well as pressure from the enthalpy.
virtual void del_deriv() const
Deletes all the derived quantities.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
virtual void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
double ray_eq() const
Coordinate radius at , [r_unit].
virtual void sauve(FILE *) const
Save in a file.
double ray_eq_pis2() const
Coordinate radius at , [r_unit].
double ray_eq_pi() const
Coordinate radius at , [r_unit].
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Map & mp
Mapping associated with the star.
void operator=(const Star &)
Assignment to another Star.
int nzet
Number of domains of *mp occupied by the star.
double ray_pole() const
Coordinate radius at [r_unit].
void set_base(const Base_val &)
Sets the bases for spectral expansions (member base ).
Tensor field of valence 1.
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
Scalar & set(int)
Read/write access to a component.
Cmp exp(const Cmp &)
Exponential.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
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.