95 #include "base_vect.h" 97 #include "utilitaires.h" 111 rot_phi(rot_phi_i) {}
120 double rot_phi_i,
const char* name_i)
125 rot_phi(rot_phi_i) {}
134 rot_phi(bi.rot_phi) {}
212 <<
"The two Base_vect_spher have different X origin : " <<
ori_x 213 <<
" <-> " << bis.
ori_x << endl ;
219 <<
"The two Base_vect_spher have different Y origin : " <<
ori_y 220 <<
" <-> " << bis.
ori_y << endl ;
226 <<
"The two Base_vect_spher have different Z origin : " <<
ori_z 227 <<
" <-> " << bis.
ori_z << endl ;
233 <<
"The two Base_vect_spher have different rot_phi : " <<
rot_phi 234 <<
" <-> " << bis.
rot_phi << endl ;
262 ost <<
"Absolute coordinates (X,Y,Z) of the origin : " 264 ost <<
"Azimuthal angle with respect to the Absolute frame : " 282 assert(ti.
get_etat() != ETATNONDEF) ;
286 assert(triad_i != 0x0) ;
333 for (
int i=0; i<2; i++)
338 Tenseur tmp(*mp, 2, COV, *
this) ;
340 for (
int i=0; i<3; i++) {
347 for (
int i=0; i<3; i++) {
361 "Base_vect_sphere::change_basis : the case of valence " 362 << ti.
get_valence() <<
" is not treated !" << endl ;
377 cout <<
"Base_vect_spher::change_basis : case not treated yet !" << endl ;
double ori_y
Absolute coordinate Y of the origin.
void set_ori(double xa0, double ya0, double za0)
Sets a new origin.
int get_type_indice(int i) const
Returns the type of the index number i .
void operator=(const Base_vect_spher &)
Assignment to another Base_vect_spher.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
Base_vect_spher(double xa0, double ya0, double za0, double rot_phi_i)
Standard constructor.
void set_triad(const Base_vect &new_triad)
Assigns a new vectorial basis (triad) of decomposition.
const Base_vect_spher & get_bvect_spher() const
Returns the orthonormal vectorial basis associated with the coordinates of the mapping.
double rot_phi
Angle between the x –axis and the absolute frame X –axis.
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...
virtual void sauve(FILE *) const
Save in a file.
Base class for coordinate mappings.
void set_rot_phi(double rot_phi_i)
Sets a new value to the angle rot_phi between the x –axis and the absolute frame X –axis...
Vectorial bases (triads) with respect to which the tensorial components are defined.
int get_valence() const
Returns the valence.
virtual bool operator==(const Base_vect &) const
Comparison operator (egality)
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...
Cmp & set()
Read/write for a scalar (see also operator=(const Cmp&) ).
const Map * get_mp() const
Returns pointer on the mapping.
const Base_vect * get_triad() const
Returns the vectorial basis (triad) on which the components are defined.
virtual int identify() const =0
Returns a number to identify the sub-classe of Base_vect the object belongs to.
int get_etat() const
Returns the logical state.
int fwrite_be(const int *aa, int size, int nb, FILE *fich)
Writes integer(s) into a binary file according to the big endian convention.
virtual void sauve(FILE *) const
Save in a file.
char name[100]
Name of the basis.
Cartesian vectorial bases (triads).
Spherical orthonormal vectorial bases (triads).
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
virtual ~Base_vect_spher()
Destructor.
void allocate_all()
Sets the logical state to ETATQCQ (ordinary state) and performs the memory allocation of all the elem...
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 ostream & operator>>(ostream &) const
Operator >>
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 ...
double ori_z
Absolute coordinate Z of the origin.
double ori_x
Absolute coordinate X of the origin.
virtual void change_basis(Tenseur &) const
Change the basis in which the components of a tensor are expressed.
void set_name(const char *name_i)
Sets the basis name.
Tensor handling *** DEPRECATED : use class Tensor instead ***.
virtual int identify() const
Returns a number to identify the sub-classe of Base_vect the object belongs to.