33char sym_tensor_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tensor/sym_tensor.C,v 1.24 2014/10/13 08:53:43 j_novak Exp $" ;
288 for (
int i=0;
i<N_MET_MAX;
i++)
307 for (
int i=0;
i<N_MET_MAX;
i++)
393 for (
int i=1 ;
i<=3 ;
i++) {
395 for (
int j=
i ;
j<=3 ;
j++) {
448 if(
triad->identify() == (
mp->get_bvect_cart()).identify() )
452 assert(
triad->identify() == (
mp->get_bvect_spher()).identify()) ;
473 if(
triad->identify() == (
mp->get_bvect_cart()).identify() )
477 assert(
triad->identify() == (
mp->get_bvect_spher()).identify()) ;
Vectorial bases (triads) with respect to which the tensorial components are defined.
Time evolution with partial storage (*** under development ***).
int position(int j) const
Gives the position in the arrays step, the_time and val corresponding to the time step j.
Basic integer array class.
Base class for coordinate mappings.
Metric for tensor calculation.
Tensor field of valence 0 (or component of a tensorial field).
Transverse symmetric tensors of rank 2.
Class intended to describe valence-2 symmetric tensors.
const Scalar & xxx() const
Gives the field X (see member p_xxx ).
virtual void exponential_filter_ylm(int lzmin, int lzmax, int p, double alpha=-16.)
Applies exponential filters to all components (see Scalar::exponential_filter_ylm ).
virtual void del_derive_met(int i) const
Logical destructor of the derivatives depending on the i-th element of met_depend specific to the cla...
Sym_tensor * inverse() const
Returns a pointer on the inverse of the Sym_tensor (seen as a matrix).
virtual void operator=(const Sym_tensor &a)
Assignment to another Sym_tensor.
Scalar * p_ttt
Field T defined as .
Scalar * p_aaa
Field A defined from X and insensitive to the longitudinal part of the Sym_tensor (only for ).
void set_der_met_0x0(int i) const
Sets all the i-th components of met_depend specific to the class Sym_tensor (p_transverse ,...
Scalar * p_tilde_b
Field defined from and h insensitive to the longitudinal part of the Sym_tensor.
Scalar * p_mu
Field such that the components of the tensor are written (has only meaning with spherical component...
Scalar * p_tilde_c
Field defined from and h insensitive to the longitudinal part of the Sym_tensor.
const Scalar & ttt() const
Gives the field T (see member p_ttt ).
virtual const Scalar & eta(Param *par=0x0) const
Gives the field (see member p_eta ).
const Scalar & www() const
Gives the field W (see member p_www ).
Sym_tensor_trans * p_transverse[N_MET_MAX]
Array of the transverse part of the tensor with respect to various metrics, transverse meaning diver...
const Scalar & mu(Param *par=0x0) const
Gives the field (see member p_mu ).
virtual void del_deriv() const
Deletes the derived quantities.
Scalar * p_eta
Field such that the components of the tensor are written (has only meaning with spherical component...
Scalar * p_xxx
Field X such that the components and of the tensor are written (has only meaning with spherical com...
Sym_tensor derive_lie(const Vector &v) const
Computes the Lie derivative of this with respect to some vector field v.
void set_auxiliary(const Scalar &trr, const Scalar &eta_over_r, const Scalar &mu_over_r, const Scalar &www, const Scalar &xxx, const Scalar &ttt)
Assigns the component and the derived members p_eta , p_mu , p_www, p_xxx and p_ttt ,...
void set_der_0x0() const
Sets the pointers on derived quantities to 0x0.
Scalar * p_www
Field W such that the components and of the tensor are written (has only meaning with spherical com...
virtual ~Sym_tensor()
Destructor.
Vector * p_longit_pot[N_MET_MAX]
Array of the vector potential of the longitudinal part of the tensor with respect to various metrics ...
const Vector & divergence(const Metric &) const
Returns the divergence of this with respect to a Metric .
virtual void exponential_filter_r(int lzmin, int lzmax, int p, double alpha=-16.)
Applies exponential filters to all components (see Scalar::exponential_filter_r ).
Symmetric tensors (with respect to two of their arguments).
Tensor field of valence 1.
virtual void del_derive_met(int) const
Logical destructor of the derivatives depending on the i-th element of met_depend .
const Map *const mp
Mapping on which the numerical values at the grid points are defined.
virtual Itbl indices(int pos) const
Returns the indices of a component given by its position in the array cmp .
virtual void operator=(const Tensor_sym &a)
Assignment to another Tensor_sym.
int get_place_met(const Metric &) const
Returns the position of the pointer on metre in the array met_depend .
const Metric * met_depend[N_MET_MAX]
Array on the Metric 's which were used to compute derived quantities, like p_derive_cov ,...
int valence
Valence of the tensor (0 = scalar, 1 = vector, etc...)
const Scalar & operator()(const Itbl &ind) const
Returns the value of a component (read-only version).
void set_dependance(const Metric &) const
To be used to describe the fact that the derivatives members have been calculated with met .
Scalar ** cmp
Array of size n_comp of pointers onto the components.
void compute_derive_lie(const Vector &v, Tensor &resu) const
Computes the Lie derivative of this with respect to some vector field v (protected method; the public...
int n_comp
Number of stored components, depending on the symmetry.
virtual void del_deriv() const
Deletes the derived quantities.
const Tensor & divergence(const Metric &gam) const
Computes the divergence of this with respect to some metric .
Itbl type_indice
1D array of integers (class Itbl ) of size valence containing the type of each index: COV for a cov...
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.