30 char star_rot_upmetr_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Star/star_rot_upmetr.C,v 1.2 2014/10/13 08:53:39 j_novak Exp $" ;
74 bbb = (1 + tmp) /
nn ;
117 if ( (
mp.
get_mg())->get_np(0) == 1) {
140 Scalar tmp = dnpdr + dnpdt ;
163 tmp = dnpdr - dnpdt ;
196 for (
int i=1; i<=3; i++) {
197 for (
int j=i; j<=3; j++) {
198 tkij.
set(i, j) = dn(i, j) + dn(j, i) ;
200 tkij.
set(i, i) -= double(2) /double(3) * divn ;
207 assert( divn.
get_etat() == ETATZERO ) ;
217 for (
int i=1; i<=3; i++) {
218 for (
int j=1; j<=3; j++) {
Base class for pure radial mappings.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
const Metric_flat & flat_met_cart() const
Returns the flat metric associated with the Cartesian coordinates and with components expressed in th...
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 .
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.
const Valeur & get_spectral_va() const
Returns va (read only version)
Valeur & set_spectral_va()
Returns va (read/write version)
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.
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 .