26 char vector_change_triad_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tensor/vector_change_triad.C,v 1.9 2014/10/13 08:53:44 j_novak Exp $" ;
77 assert(
triad != 0x0) ;
85 assert((nbvc != 0x0) || (nbvs != 0x0)) ;
90 assert((bvc != 0x0) || (bvs != 0x0)) ;
116 set(1) = - copie(1) ;
117 set(2) = - copie(2) ;
125 "Vector::change_basis : general value of rot_phi "
126 <<
" not contemplated yet, sorry !" << endl ;
133 "Vector::change_basis : unexpected value of ind !" << endl ;
134 cout <<
" ind = " << ind << endl ;
156 for (
int i=0; i<nz; i++) {
179 assert(nbvc == 0x0) ;
193 for (
int i=0; i<nz; i++) {
217 cout <<
"Vector::change_triad : case not treated yet !" << endl ;
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 ...
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...
Cartesian vectorial bases (triads).
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
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.
Scalar ** cmp
Array of size n_comp of pointers onto the components.
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...
Tensor field of valence 0 (or component of a tensorial field).
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
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_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 Map *const mp
Mapping on which the numerical values at the grid points are defined.
Scalar & set(int)
Read/write access to a component.
Spherical orthonormal vectorial bases (triads).
int get_align() const
Returns the indicator of alignment with respect to the absolute frame.
int get_nzone() const
Returns the number of domains.
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.
const Base_vect_cart & get_bvect_cart() const
Returns the Cartesian basis associated with the coordinates (x,y,z) of the mapping,...
Tensor field of valence 1.
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...
Vectorial bases (triads) with respect to which the tensorial components are defined.