77 bbb = (1 + tmp) /
nn ;
120 if ( (
mp.
get_mg())->get_np(0) == 1) {
131 assert( dynamic_cast<const Map_radial*>(&
mp) != 0x0 ) ;
143 Scalar tmp = dnpdr + dnpdt ;
161 if (dnpdt.get_etat() == ETATQCQ) {
163 dnpdt.set_spectral_va() = (dnpdt.get_spectral_va()).mult_st() ;
166 tmp = dnpdr - dnpdt ;
199 for (
int i=1; i<=3; i++) {
200 for (
int j=i; j<=3; j++) {
201 tkij.
set(i, j) = dn(i, j) + dn(j, i) ;
203 tkij.
set(i, i) -= double(2) /double(3) * divn ;
210 assert( divn.
get_etat() == ETATZERO ) ;
220 for (
int i=1; i<=3; i++) {
221 for (
int j=1; j<=3; j++) {
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
Scalar dzeta
Metric potential .
Cmp exp(const Cmp &)
Exponential.
Scalar a_car
Square of the metric factor A.
Map & mp
Mapping associated with the star.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
Scalar bbb
Metric factor B.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Tensor field of valence 0 (or component of a tensorial field).
void extrinsic_curvature()
Computes tkij and ak_car from shift , nnn and b_car .
virtual void del_deriv() const
Deletes all the derived quantities.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
void update_metric()
Computes metric coefficients from known potentials.
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
const Metric_flat & flat_met_cart() const
Returns the flat metric associated with the Cartesian coordinates and with components expressed in th...
double unsurc2
: unsurc2=1 for a relativistic star, 0 for a Newtonian one.
Scalar nphi
Metric coefficient .
Sym_tensor tkij
Tensor related to the extrinsic curvature tensor by .
void mult_rsint()
Multiplication by everywhere; dzpuis is not changed.
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .
const Tensor & derive_cov(const Metric &gam) const
Returns the covariant derivative of this with respect to some metric .
Scalar logn
Logarithm of the lapse N .
Scalar b_car
Square of the metric factor B.
const Scalar & srdsdt() const
Returns of *this .
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
Scalar nn
Lapse function N .
const Scalar & dsdr() const
Returns of *this .
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).
Valeur & set_spectral_va()
Returns va (read/write version)
Scalar tggg
Metric potential .
Class intended to describe valence-2 symmetric tensors.
const Valeur & get_spectral_va() const
Returns va (read only version)