57 #include "utilitaires.h" 84 if ( (
u_euler(1).get_etat() == ETATZERO) &&
85 (
u_euler(2).get_etat() == ETATZERO) &&
86 (
u_euler(3).get_etat() == ETATZERO) ) {
114 Scalar gam2 = double(1) / (double(1) - u2) ;
void annule_domain(int l)
Sets the Tensor to zero in a given domain.
virtual void set_etat_qcq()
Sets the logical state of all components to ETATQCQ (ordinary state).
Scalar a_car
Square of the metric factor A.
Map & mp
Mapping associated with the star.
Cmp sqrt(const Cmp &)
Square root.
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.
Tensor field of valence 0 (or component of a tensorial field).
virtual void hydro_euler()
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid fram...
virtual void del_deriv() const
Deletes all the derived quantities.
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
double omega
Rotation angular velocity ([f_unit] )
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
Tensor field of valence 1.
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
double unsurc2
: unsurc2=1 for a relativistic star, 0 for a Newtonian one.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Scalar ener
Total energy density in the fluid frame.
Scalar press
Fluid pressure.
int get_nzone() const
Returns the number of domains.
Vector u_euler
Fluid 3-velocity with respect to the Eulerian observer.
Scalar b_car
Square of the metric factor B.
Active physical coordinates and mapping derivatives.
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
Scalar nn
Lapse function N .
Coord y
y coordinate centered on the grid
Scalar uuu
Norm of u_euler.
Coord x
x coordinate centered on the grid
void set_triad(const Base_vect &new_triad)
Assigns a new vectorial basis (triad) of decomposition.
virtual void set_etat_zero()
Sets the logical state of all components to ETATZERO (zero state).
Valeur & set_spectral_va()
Returns va (read/write version)
Scalar & set(int)
Read/write access to a component.
Scalar ener_euler
Total energy density in the Eulerian frame.