83 #include "utilitaires.h" 112 if ( (
u_euler(0).get_etat() == ETATZERO) &&
113 (
u_euler(1).get_etat() == ETATZERO) &&
114 (
u_euler(2).get_etat() == ETATZERO) ) {
128 Cmp uuu2 =
a_car() * ( us(0) * us(0) + us(1) * us(1) )
129 +
b_car() * us(2) * us(2) ;
134 ((
uuu.
set()).va).set_base( us(2).va.base ) ;
void annule(int l)
Sets the Tenseur to zero in a given domain.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
void set_triad(const Base_vect &new_triad)
Assigns a new vectorial basis (triad) of decomposition.
Cmp sqrt(const Cmp &)
Square root.
void set_std_base()
Set the standard spectal basis of decomposition for each component.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Tenseur nnn
Total lapse function.
Tenseur s_euler
Trace of the stress tensor in the Eulerian frame.
Tenseur b_car
Square of the metric factor B.
double unsurc2
: unsurc2=1 for a relativistic star, 0 for a Newtonian one.
Tenseur press
Fluid pressure.
Tenseur shift
Total shift vector.
virtual void del_deriv() const
Deletes all the derived quantities.
Cmp & set()
Read/write for a scalar (see also operator=(const Cmp&) ).
Tenseur u_euler
Fluid 3-velocity with respect to the Eulerian observer.
void change_triad(const Base_vect &new_triad)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Tenseur gam_euler
Lorentz factor between the fluid and Eulerian observers.
Map & mp
Mapping associated with the star.
int get_nzone() const
Returns the number of domains.
int get_etat() const
Returns the logical state.
virtual void hydro_euler()
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid fram...
Active physical coordinates and mapping derivatives.
Tenseur uuu
Norm of u_euler.
double omega
Rotation angular velocity ([f_unit] )
Tenseur a_car
Total conformal factor .
Tenseur ener
Total energy density in the fluid frame.
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
Coord y
y coordinate centered on the grid
Coord x
x coordinate centered on the grid
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Tenseur ener_euler
Total energy density in the Eulerian frame.
Tensor handling *** DEPRECATED : use class Tensor instead ***.