79 w_shift(mpi, CON, mp.get_bvect_cart()),
86 ssjm1_wshift(mpi, CON, mp.get_bvect_cart())
125 khi_shift(st.khi_shift),
126 ssjm1_nuf(st.ssjm1_nuf),
127 ssjm1_nuq(st.ssjm1_nuq),
128 ssjm1_dzeta(st.ssjm1_dzeta),
129 ssjm1_tggg(st.ssjm1_tggg),
130 ssjm1_khi(st.ssjm1_khi),
131 ssjm1_wshift(st.ssjm1_wshift)
148 w_shift(mpi, CON, mp.get_bvect_cart()),
155 ssjm1_wshift(mpi, CON, mp.get_bvect_cart())
309 ost << endl <<
"Axisymmetric stationary compact star in quasi-isotropic coordinates (class Star_QI) " << endl ;
311 ost <<
"Central values of various fields : " << endl ;
312 ost <<
"-------------------------------- " << endl ;
318 ost <<
"Error on the virial identity GRV2 : " <<
grv2() << endl ;
319 ost <<
"Error on the virial identity GRV3 : " <<
grv3(&ost) << endl ;
321 double mom_quad_38si =
mom_quad() * rho_unit * (
pow(r_unit,
double(5.))
323 ost <<
"Quadrupole moment Q : " << mom_quad_38si <<
" 10^38 kg m^2" 325 ost <<
"c^4 Q / (G^2 M^3) : " 329 ost <<
"Total angular momentum J : " 330 <<
angu_mom()/( qpig / (4* M_PI) * msol*msol) <<
" G M_sol^2 / c" 332 ost <<
"c J / (G M^2) : " 367 xk.
set(1).set_dzpuis(-1) ;
370 xk.
set(2).set_dzpuis(-1) ;
373 xk.
set(3).set_dzpuis(-1) ;
374 xk.std_spectral_base() ;
381 double lambda = double(1) / double(3) ;
384 + (lambda/2./(lambda+1)) * (d_khi + x_d_w) ;
391 if ( (
beta(1).get_etat() == ETATZERO) && (
beta(2).get_etat() == ETATZERO) ) {
436 bbb = (1 + tmp) /
nn ;
Base class for axisymmetric stationary compact objects in Quasi-Isotropic coordinates (under developm...
Scalar logn
Logarithm of the lapse N .
Scalar ssjm1_dzeta
Effective source at the previous step for the resolution of the Poisson equation for dzeta ...
Scalar khi_shift
Scalar used in the decomposition of shift , following Shibata's prescription [Prog.
Cmp exp(const Cmp &)
Exponential.
Scalar tnphi
Component of the shift vector.
const Tbl & domain(int l) const
Read-only of the value in a given domain.
Standard units of space, time and mass.
virtual void comp_p_from_cartesian(const Scalar &v_x, const Scalar &v_y, Scalar &v_p) const =0
Computes the Spherical component (with respect to bvect_spher ) of a vector given by its cartesian c...
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
double & set(int i)
Read/write of a particular element (index i) (1D case)
Tensor field of valence 0 (or component of a tensorial field).
virtual double mass_g() const
Gravitational mass.
Base class for coordinate mappings.
Scalar nuq
Part of the Metric potential = logn generated by the quadratic terms.
virtual double mom_quad() const
Quadrupole moment.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
virtual void sauve(FILE *) const
Save in a binary file.
Scalar ssjm1_nuq
Effective source at the previous step for the resolution of the Poisson equation for nuq by means of ...
Scalar ssjm1_khi
Effective source at the previous step for the resolution of the Poisson equation for the scalar by m...
const Vector & derive_con(const Metric &gam) const
Returns the "contravariant" derivative of *this with respect to some metric , by raising the index of...
Tensor field of valence 1.
virtual double grv3(ostream *ost=0x0) const
Error on the virial identity GRV3.
Scalar a_car
Square of the metric factor A.
const Metric_flat & flat_met_cart() const
Returns the flat metric associated with the Cartesian coordinates and with components expressed in th...
Tbl & set_domain(int l)
Read/write of the value in a given domain.
double * p_grv2
Error on the virial identity GRV2.
Scalar nuf
Part of the Metric potential = logn generated by the matter terms.
double val_grid_point(int l, int k, int j, int i) const
Returns the value of the field at a specified grid point.
virtual void dec_dzpuis(int dec=1)
Decreases by dec units the value of dzpuis and changes accordingly the values in the compactified ext...
Base class for axisymmetric stationary compact stars in Quasi-Isotropic coordinates (under developmen...
Scalar nphi
Metric coefficient .
Scalar b_car
Square of the metric factor B.
virtual void sauve(FILE *) const
Save in a file.
Scalar tggg
Metric potential .
Scalar bbb
Metric factor B.
void fait_shift()
Computes shift from w_shift and khi_shift according to Shibata's prescription [Prog.
Scalar ssjm1_tggg
Effective source at the previous step for the resolution of the Poisson equation for tggg ...
Vector beta
Shift vector .
Star_QI(Map &mp_i)
Standard constructor.
void operator=(const Compobj_QI &)
Assignment to another Compobj_QI.
int get_nzone() const
Returns the number of domains.
Vector ssjm1_wshift
Effective source at the previous step for the resolution of the vector Poisson equation for ...
Scalar dzeta
Metric potential .
Cmp pow(const Cmp &, int)
Power .
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .
virtual void set_der_0x0() const
Sets to 0x0 all the pointers on derived quantities.
double * p_grv3
Error on the virial identity GRV3.
double * p_mass_g
Gravitational mass (ADM mass as a volume integral)
double * p_mom_quad
Quadrupole moment.
const Tensor & derive_con(const Metric &gam) const
Returns the "contravariant" derivative of this with respect to some metric , by raising the last inde...
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
Coord y
y coordinate centered on the grid
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 ssjm1_nuf
Effective source at the previous step for the resolution of the Poisson equation for nuf by means of ...
Scalar nn
Lapse function N .
Coord x
x coordinate centered on the grid
virtual double grv2() const
Error on the virial identity GRV2.
void div_rsint()
Division by everywhere; dzpuis is not changed.
virtual void set_etat_zero()
Sets the logical state of all components to ETATZERO (zero state).
virtual double angu_mom() const
Angular momentum.
Scalar & set(int)
Read/write access to a component.
virtual void del_deriv() const
Deletes all the derived quantities.
Coord z
z coordinate centered on the grid
virtual void del_deriv() const
Deletes all the derived quantities.
void operator=(const Star_QI &)
Assignment to another Star_QI.
void fait_nphi()
Computes tnphi and nphi from the Cartesian components of the shift, stored in shift ...
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
void update_metric()
Computes metric coefficients from known potentials.
Vector w_shift
Vector used in the decomposition of shift , following Shibata's prescription [Prog.
Map & mp
Mapping describing the coordinate system (r,theta,phi)
virtual void sauve(FILE *) const
Save in a file.
virtual ~Star_QI()
Destructor.