77 bbb = (1 + tmp) /
nn ;
120 if ( (
mp.get_mg())->get_np(0) == 1) {
143 Scalar tmp = dnpdr + dnpdt ;
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++) {
Base class for pure radial mappings.
Tensor field of valence 0 (or component of a tensorial field).
const Scalar & srdsdt() const
Returns of *this .
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field.
const Scalar & dsdr() const
Returns of *this .
Valeur & set_spectral_va()
Returns va (read/write version).
const Valeur & get_spectral_va() const
Returns va (read only version).
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
void mult_rsint()
Multiplication by everywhere; dzpuis is not changed.
void div_rsint()
Division by everywhere; dzpuis is not changed.
Sym_tensor tkij
Tensor related to the extrinsic curvature tensor by .
Scalar tggg
Metric potential .
double unsurc2
: unsurc2=1 for a relativistic star, 0 for a Newtonian one.
void extrinsic_curvature()
Computes tkij and ak_car from shift , nnn and b_car .
Scalar b_car
Square of the metric factor B.
Scalar bbb
Metric factor B.
Scalar nphi
Metric coefficient .
void update_metric()
Computes metric coefficients from known potentials.
Scalar dzeta
Metric potential .
Scalar a_car
Square of the metric factor A.
virtual void del_deriv() const
Deletes all the derived quantities.
Scalar logn
Logarithm of the lapse N .
Scalar nn
Lapse function N .
Map & mp
Mapping associated with the star.
Class intended to describe valence-2 symmetric tensors.
const Valeur & mult_ct() const
Returns applied to *this.
const Valeur & mult_st() const
Returns applied to *this.
Cmp exp(const Cmp &)
Exponential.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
const Tensor & derive_cov(const Metric &gam) const
Returns the covariant derivative of this with respect to some metric .
virtual void set_etat_zero()
Sets the logical state of all components to ETATZERO (zero state).
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .