80 assert(
triad != 0x0) ;
88 assert((nbvc != 0x0) || (nbvs != 0x0)) ;
93 assert((bvc != 0x0) || (bvs != 0x0)) ;
119 set(1) = - copie(1) ;
120 set(2) = - copie(2) ;
128 "Vector::change_basis : general value of rot_phi " 129 <<
" not contemplated yet, sorry !" << endl ;
136 "Vector::change_basis : unexpected value of ind !" << endl ;
137 cout <<
" ind = " << ind << endl ;
159 for (
int i=0; i<nz; i++) {
182 assert(nbvc == 0x0) ;
196 for (
int i=0; i<nz; i++) {
220 cout <<
"Vector::change_triad : case not treated yet !" << endl ;
int get_align() const
Returns the indicator of alignment with respect to the absolute frame.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
virtual void comp_p_from_cartesian(const Scalar &v_x, const Scalar &v_y, Scalar &v_p) const =0
Computes the Spherical component (with respect to bvect_spher ) of a vector given by its cartesian c...
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).
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Tensor field of valence 1.
Vectorial bases (triads) with respect to which the tensorial components are defined.
virtual void comp_x_from_spherical(const Scalar &v_r, const Scalar &v_theta, const Scalar &v_phi, Scalar &v_x) const =0
Computes the Cartesian x component (with respect to bvect_cart ) of a vector given by its spherical c...
virtual void comp_t_from_cartesian(const Scalar &v_x, const Scalar &v_y, const Scalar &v_z, Scalar &v_t) const =0
Computes the Spherical component (with respect to bvect_spher ) of a vector given by its cartesian c...
virtual void comp_z_from_spherical(const Scalar &v_r, const Scalar &v_theta, Scalar &v_z) const =0
Computes the Cartesian z component (with respect to bvect_cart ) of a vector given by its spherical c...
Scalar ** cmp
Array of size n_comp of pointers onto the components.
int get_nzone() const
Returns the number of domains.
Cartesian vectorial bases (triads).
Spherical orthonormal vectorial bases (triads).
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping, i.e.
virtual void comp_r_from_cartesian(const Scalar &v_x, const Scalar &v_y, const Scalar &v_z, Scalar &v_r) const =0
Computes the Spherical r component (with respect to bvect_spher ) of a vector given by its cartesian ...
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
const Map *const mp
Mapping on which the numerical values at the grid points are defined.
virtual void comp_y_from_spherical(const Scalar &v_r, const Scalar &v_theta, const Scalar &v_phi, Scalar &v_y) const =0
Computes the Cartesian y component (with respect to bvect_cart ) of a vector given by its spherical c...