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 ;
155 assert( *nbvc ==
mp->get_bvect_cart() ) ;
156 assert( *bvs ==
mp->get_bvect_spher() ) ;
158 int nz =
mp->get_mg()->get_nzone() ;
159 for (
int i=0; i<nz; i++) {
161 assert(
mp->get_mg()->get_nt(i) >= 5) ;
167 mp->comp_x_from_spherical(*
cmp[0], *
cmp[1], *
cmp[2], res1) ;
168 mp->comp_y_from_spherical(*
cmp[0], *
cmp[1], *
cmp[2], res2) ;
169 mp->comp_z_from_spherical(*
cmp[0], *
cmp[1],
set(3)) ;
182 assert(nbvc == 0x0) ;
192 assert( *nbvs ==
mp->get_bvect_spher() ) ;
193 assert( *bvc ==
mp->get_bvect_cart() ) ;
195 int nz =
mp->get_mg()->get_nzone() ;
196 for (
int i=0; i<nz; i++) {
198 assert(
mp->get_mg()->get_nt(i) >= 5) ;
204 mp->comp_r_from_cartesian(*
cmp[0], *
cmp[1], *
cmp[2], res1) ;
205 mp->comp_t_from_cartesian(*
cmp[0], *
cmp[1], *
cmp[2], res2) ;
206 mp->comp_p_from_cartesian(*
cmp[0], *
cmp[1],
set(3)) ;
220 cout <<
"Vector::change_triad : case not treated yet !" << endl ;
Cartesian vectorial bases (triads).
int get_align() const
Returns the indicator of alignment with respect to the absolute frame.
Spherical orthonormal vectorial bases (triads).
Vectorial bases (triads) with respect to which the tensorial components are defined.
Vector(const Map &map, int tipe, const Base_vect &triad_i)
Standard constructor.
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Scalar & set(int)
Read/write access to a component.
const Map *const mp
Mapping on which the numerical values at the grid points are defined.
Scalar ** cmp
Array of size n_comp of pointers onto the components.
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.