28char star_QI_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Compobj/star_QI.C,v 1.5 2014/10/13 08:52:49 j_novak Exp $" ;
99 beta.set_etat_zero() ;
174 Vector w_shift_file(
mp,
mp.get_bvect_cart(), fich) ;
177 Scalar khi_shift_file(
mp, *(
mp.get_mg()), fich) ;
183 Scalar ssjm1_nuf_file(
mp, *(
mp.get_mg()), fich) ;
186 Scalar ssjm1_nuq_file(
mp, *(
mp.get_mg()), fich) ;
189 Scalar ssjm1_dzeta_file(
mp, *(
mp.get_mg()), fich) ;
192 Scalar ssjm1_tggg_file(
mp, *(
mp.get_mg()), fich) ;
195 Scalar ssjm1_khi_file(
mp, *(
mp.get_mg()), fich) ;
198 Vector ssjm1_wshift_file(
mp,
mp.get_bvect_cart(), fich) ;
306 ost << endl <<
"Axisymmetric stationary compact star in quasi-isotropic coordinates (class Star_QI) " << endl ;
308 ost <<
"Central values of various fields : " << endl ;
309 ost <<
"-------------------------------- " << endl ;
310 ost <<
" ln(N) : " <<
logn.val_grid_point(0,0,0,0) << endl ;
311 ost <<
" nuf : " <<
nuf.val_grid_point(0,0,0,0) << endl ;
312 ost <<
" nuq : " <<
nuq.val_grid_point(0,0,0,0) << endl ;
313 ost <<
" zeta = ln(AN): " <<
dzeta.val_grid_point(0,0,0,0) << endl << endl ;
315 ost <<
"Error on the virial identity GRV2 : " <<
grv2() << endl ;
316 ost <<
"Error on the virial identity GRV3 : " <<
grv3(&ost) << endl ;
318 double mom_quad_38si =
mom_quad() * rho_unit * (
pow(r_unit,
double(5.))
320 ost <<
"Quadrupole moment Q : " << mom_quad_38si <<
" 10^38 kg m^2"
322 ost <<
"c^4 Q / (G^2 M^3) : "
326 ost <<
"Total angular momentum J : "
327 <<
angu_mom()/( qpig / (4* M_PI) * msol*msol) <<
" G M_sol^2 / c"
329 ost <<
"c J / (G M^2) : "
356 sintcosp =
mp.sint *
mp.cosp ;
357 sintsinp =
mp.sint *
mp.sinp ;
360 int nz =
mp.get_mg()->get_nzone() ;
378 double lambda = double(1) / double(3) ;
381 + (lambda/2./(lambda+1)) * (d_khi + x_d_w) ;
388 if ( (
beta(1).get_etat() == ETATZERO) && (
beta(2).get_etat() == ETATZERO) ) {
417 nn.std_spectral_base() ;
425 a_car.std_spectral_base() ;
433 bbb = (1 + tmp) /
nn ;
435 bbb.std_spectral_base() ;
void operator=(const Compobj_QI &)
Assignment to another Compobj_QI.
Scalar nphi
Metric coefficient .
virtual void del_deriv() const
Deletes all the derived quantities.
Compobj_QI(Map &map_i)
Standard constructor.
virtual void update_metric()
Updates the 3-metric from A and B and the shift vector from .
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Scalar b_car
Square of the metric factor B.
Scalar bbb
Metric factor B.
Scalar a_car
Square of the metric factor A.
Scalar nn
Lapse function N .
Vector beta
Shift vector .
Map & mp
Mapping describing the coordinate system (r,theta,phi).
Tensor field of valence 0 (or component of a tensorial field).
Tbl & set_domain(int l)
Read/write of the value in a given domain.
void set_dzpuis(int)
Modifies the dzpuis flag.
void div_rsint()
Division by everywhere; dzpuis is not changed.
const Tbl & domain(int l) const
Read-only of the value in a given domain.
void fait_shift()
Computes shift from w_shift and khi_shift according to Shibata's prescription [Prog.
Vector w_shift
Vector used in the decomposition of shift , following Shibata's prescription [Prog.
virtual double grv2() const
Error on the virial identity GRV2.
double * p_grv2
Error on the virial identity GRV2.
Scalar logn
Logarithm of the lapse N .
double * p_mass_g
Gravitational mass (ADM mass as a volume integral).
Scalar nuq
Part of the Metric potential = logn generated by the quadratic terms.
Scalar ssjm1_khi
Effective source at the previous step for the resolution of the Poisson equation for the scalar by m...
virtual double grv3(ostream *ost=0x0) const
Error on the virial identity GRV3.
Star_QI(Map &mp_i)
Standard constructor.
virtual void sauve(FILE *) const
Save in a file.
virtual double mom_quad() const
Quadrupole moment.
virtual ~Star_QI()
Destructor.
Scalar nuf
Part of the Metric potential = logn generated by the matter terms.
Scalar ssjm1_nuq
Effective source at the previous step for the resolution of the Poisson equation for nuq by means of ...
void update_metric()
Computes metric coefficients from known potentials.
double * p_grv3
Error on the virial identity GRV3.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
Vector ssjm1_wshift
Effective source at the previous step for the resolution of the vector Poisson equation for .
void fait_nphi()
Computes tnphi and nphi from the Cartesian components of the shift, stored in shift .
virtual double angu_mom() const
Angular momentum.
Scalar khi_shift
Scalar used in the decomposition of shift , following Shibata's prescription [Prog.
Scalar ssjm1_nuf
Effective source at the previous step for the resolution of the Poisson equation for nuf by means of ...
virtual void del_deriv() const
Deletes all the derived quantities.
virtual double mass_g() const
Gravitational mass.
void operator=(const Star_QI &)
Assignment to another Star_QI.
Scalar tggg
Metric potential .
Scalar tnphi
Component of the shift vector.
Scalar ssjm1_tggg
Effective source at the previous step for the resolution of the Poisson equation for tggg .
Scalar ssjm1_dzeta
Effective source at the previous step for the resolution of the Poisson equation for dzeta .
double * p_mom_quad
Quadrupole moment.
Scalar dzeta
Metric potential .
virtual void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
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.
Cmp pow(const Cmp &, int)
Power .
virtual void dec_dzpuis(int dec=1)
Decreases by dec units the value of dzpuis and changes accordingly the values in the compactified ext...
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping,...
Map(const Mg3d &)
Constructor from a multi-domain 3D grid.
Standard units of space, time and mass.