60 #include "et_rot_diff.h" 61 #include "utilitaires.h" 103 utest.set(2).std_base_scal() ;
104 utest.set(2).mult_rsint() ;
110 for (
int i=0; i<3; i++) {
127 cout <<
"Et_rot_diff::hydro_euler: test u_euler(" << i <<
") : " 128 <<
max(
abs(diff) )(0) << endl ;
134 if ( (
u_euler(0).get_etat() == ETATZERO) &&
150 Cmp uuu2 =
a_car() * ( us(0) * us(0) + us(1) * us(1) )
151 +
b_car() * us(2) * us(2) ;
156 ((
uuu.
set()).va).set_base( us(2).va.base ) ;
void annule(int l)
Sets the Tenseur to zero in a given domain.
Mtbl_cf * c_cf
Coefficients of the spectral expansion of the function.
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.
void set_etat_cf_qcq()
Sets the logical state to ETATQCQ (ordinary state) for values in the configuration space (Mtbl_cf c_c...
void coef() const
Computes the coeffcients of *this.
Cmp sqrt(const Cmp &)
Square root.
void annule(int l)
Sets the Cmp to zero in a given domain.
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.
virtual void hydro_euler()
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid fram...
Tenseur nnn
Total lapse function.
Tenseur nphi
Metric coefficient .
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.
Values and coefficients of a (real-value) function.
Tenseur press
Fluid pressure.
Tenseur shift
Total shift vector.
virtual void del_deriv() const
Deletes all the derived quantities.
int get_etat() const
Returns the logical state.
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.
Tbl max(const Cmp &)
Maximum values of a Cmp in each domain.
int get_etat() const
Returns the logical state.
Tenseur uuu
Norm of u_euler.
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
Cmp abs(const Cmp &)
Absolute value.
Coefficients storage for the multi-domain spectral method.
Coord x
x coordinate centered on the grid
Base_val base
Bases of the spectral expansions.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
Tenseur ener_euler
Total energy density in the Eulerian frame.
Valeur va
The numerical value of the Cmp.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
Tenseur omega_field
Field .
Tbl & set(int l)
Read/write of the value in a given domain (configuration space).