30char 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 $" ;
58 nn.std_spectral_base() ;
66 a_car.std_spectral_base() ;
74 bbb = (1 + tmp) /
nn ;
76 bbb.std_spectral_base() ;
117 if ( (
mp.get_mg())->get_np(0) == 1) {
119 tkij.set_etat_zero() ;
140 Scalar tmp = dnpdr + dnpdt ;
144 tkij.set(1,2) = - 0.5 * tmp /
nn ;
150 dnpdr =
nphi.dsdr() ;
151 dnpdt =
nphi.srdsdt() ;
163 tmp = dnpdr - dnpdt ;
167 tkij.set(2,3) = - 0.5 * tmp /
nn ;
195 tkij.set_etat_qcq() ;
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 ) ;
208 tkij.set_etat_zero() ;
217 for (
int i=1; i<=3; i++) {
218 for (
int j=1; j<=3; j++) {
Base class for pure radial mappings.
Tensor field of valence 0 (or component of a tensorial field).
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.
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 .