49 #include "utilitaires.h" 125 for(
int i=1; i<=3; i++) {
126 for(
int j=1; j<=3; j++){
void annule_domain(int l)
Sets the Tensor to zero in a given domain.
Vector bsn
3-vector shift, divided by N, of the rotating coordinates, .
Cmp log(const Cmp &)
Neperian logarithm.
virtual const Sym_tensor & con() const
Read-only access to the contravariant representation.
Cmp exp(const Cmp &)
Exponential.
Vector wit_w
Spatial projection of the fluid 3-velocity with respect to the co-orbiting observer.
Map & mp
Mapping associated with the star.
Cmp sqrt(const Cmp &)
Square root.
Sym_tensor stress_euler
Spatial part of the stress-energy tensor with respect to the Eulerian observer.
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).
bool irrotational
true for an irrotational star, false for a corotating one
virtual void std_spectral_base()
Sets the spectral bases of the Valeur va to the standard ones for a scalar field. ...
Scalar s_euler
Trace of the stress scalar in the Eulerian frame.
void set_dzpuis(int)
Modifies the dzpuis flag.
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
int nzet
Number of domains of *mp occupied by the star.
Scalar gam_euler
Lorentz factor between the fluid and Eulerian observers.
Scalar loggam
Logarithm of the Lorentz factor between the fluid and the co-orbiting observer.
Scalar ener
Total energy density in the fluid frame.
Vector d_psi
Gradient of (in the irrotational case) (Spherical components with respect to the mapping of the star...
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.
Tenseur contract(const Tenseur &, int id1, int id2)
Self contraction of two indices of a Tenseur .
virtual const Sym_tensor & cov() const
Read-only access to the covariant representation.
virtual void hydro_euler()
Computes the hydrodynamical quantities relative to the Eulerian observer from those in the fluid fram...
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 & set(const Itbl &ind)
Returns the value of a component (read/write version).
virtual void del_deriv() const
Deletes all the derived quantities.
virtual void change_triad(const Base_vect &new_triad)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
virtual void set_etat_zero()
Sets the logical state of all components to ETATZERO (zero state).
virtual void annule(int l_min, int l_max)
Sets the Tensor to zero in several domains.
Scalar ener_euler
Total energy density in the Eulerian frame.
Class intended to describe valence-2 symmetric tensors.