Spherical orthonormal vectorial bases (triads). More...
#include <base_vect.h>
Public Member Functions | |
Base_vect_spher (double xa0, double ya0, double za0, double rot_phi_i) | |
Standard constructor. | |
Base_vect_spher (double xa0, double ya0, double za0, double rot_phi_i, const char *name_i) | |
Standard constructor with name. | |
Base_vect_spher (const Base_vect_spher &) | |
Copy constructor. | |
virtual | ~Base_vect_spher () |
Destructor. | |
void | operator= (const Base_vect_spher &) |
Assignment to another Base_vect_spher . | |
void | set_ori (double xa0, double ya0, double za0) |
Sets a new origin. | |
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. | |
virtual bool | operator== (const Base_vect &) const |
Comparison operator (egality). | |
virtual void | change_basis (Tenseur &) const |
Change the basis in which the components of a tensor are expressed. | |
virtual int | identify () const |
Returns a number to identify the sub-classe of Base_vect the object belongs to. | |
virtual void | sauve (FILE *) const |
Save in a file. | |
void | set_name (const char *name_i) |
Sets the basis name. | |
const char * | get_name () const |
Returns the basis name. | |
virtual bool | operator== (const Base_vect &) const =0 |
Comparison operator (egality). | |
bool | operator!= (const Base_vect &) const |
Comparison operator (difference). | |
Static Public Member Functions | |
static Base_vect * | bvect_from_file (FILE *) |
Construction of a vectorial basis from a file (see sauve(FILE* ) ). | |
Protected Member Functions | |
Base_vect_spher (FILE *) | |
Constructor from a file. | |
virtual ostream & | operator>> (ostream &) const |
Operator >>. | |
Protected Attributes | |
char | name [100] |
Name of the basis. | |
Private Attributes | |
double | ori_x |
Absolute coordinate X of the origin. | |
double | ori_y |
Absolute coordinate Y of the origin. | |
double | ori_z |
Absolute coordinate Z of the origin. | |
double | rot_phi |
Angle between the x --axis and the absolute frame X --axis. | |
Friends | |
Base_vect * | Base_vect::bvect_from_file (FILE *) |
The construction function from a file. | |
ostream & | operator<< (ostream &, const Base_vect &) |
Display. |
Spherical orthonormal vectorial bases (triads).
()
Definition at line 304 of file base_vect.h.
Base_vect_spher::Base_vect_spher | ( | double | xa0, | |
double | ya0, | |||
double | za0, | |||
double | rot_phi_i | |||
) |
Standard constructor.
Definition at line 99 of file base_vect_spher.C.
Base_vect_spher::Base_vect_spher | ( | double | xa0, | |
double | ya0, | |||
double | za0, | |||
double | rot_phi_i, | |||
const char * | name_i | |||
) |
Standard constructor with name.
Definition at line 112 of file base_vect_spher.C.
Base_vect_spher::Base_vect_spher | ( | const Base_vect_spher & | bi | ) |
Copy constructor.
Definition at line 122 of file base_vect_spher.C.
Base_vect_spher::Base_vect_spher | ( | FILE * | fich | ) | [explicit, protected] |
Constructor from a file.
This constructor is protected because any Base_vect_spher
construction from a file must be done via the function Base_vect::bvect_from_file
.
Definition at line 131 of file base_vect_spher.C.
References fread_be(), ori_x, ori_y, ori_z, and rot_phi.
Base_vect_spher::~Base_vect_spher | ( | ) | [virtual] |
Destructor.
Definition at line 146 of file base_vect_spher.C.
Base_vect * Base_vect::bvect_from_file | ( | FILE * | fich | ) | [static, inherited] |
Construction of a vectorial basis from a file (see sauve(FILE* )
).
Definition at line 80 of file base_vect_from_file.C.
References fread_be().
void Base_vect_spher::change_basis | ( | Tenseur & | ti | ) | const [virtual] |
Change the basis in which the components of a tensor are expressed.
Implements Base_vect.
Definition at line 272 of file base_vect_spher.C.
References Tenseur::allocate_all(), Map::comp_p_from_cartesian(), Map::comp_r_from_cartesian(), Map::comp_t_from_cartesian(), Map::get_bvect_cart(), Map::get_bvect_spher(), Tenseur::get_etat(), Tenseur::get_mp(), Tenseur::get_triad(), Tenseur::get_type_indice(), Tenseur::get_valence(), Tenseur::set(), and Tenseur::set_triad().
const char * Base_vect::get_name | ( | ) | const [inherited] |
int Base_vect_spher::identify | ( | ) | const [virtual] |
Returns a number to identify the sub-classe of Base_vect
the object belongs to.
Implements Base_vect.
Definition at line 72 of file base_vect_from_file.C.
bool Base_vect::operator!= | ( | const Base_vect & | bi | ) | const [inherited] |
Comparison operator (difference).
Definition at line 170 of file base_vect.C.
void Base_vect_spher::operator= | ( | const Base_vect_spher & | bi | ) |
Assignment to another Base_vect_spher
.
Reimplemented from Base_vect.
Definition at line 158 of file base_vect_spher.C.
References Base_vect::name, ori_x, ori_y, ori_z, rot_phi, and Base_vect::set_name().
virtual bool Base_vect::operator== | ( | const Base_vect & | ) | const [pure virtual, inherited] |
Comparison operator (egality).
bool Base_vect_spher::operator== | ( | const Base_vect & | bi | ) | const [virtual] |
Comparison operator (egality).
Definition at line 191 of file base_vect_spher.C.
References identify(), Base_vect::identify(), ori_x, ori_y, ori_z, and rot_phi.
ostream & Base_vect_spher::operator>> | ( | ostream & | ost | ) | const [protected, virtual] |
void Base_vect_spher::sauve | ( | FILE * | fich | ) | const [virtual] |
Save in a file.
Reimplemented from Base_vect.
Definition at line 242 of file base_vect_spher.C.
References fwrite_be(), ori_x, ori_y, ori_z, and rot_phi.
void Base_vect::set_name | ( | const char * | name_i | ) | [inherited] |
void Base_vect_spher::set_ori | ( | double | xa0, | |
double | ya0, | |||
double | za0 | |||
) |
Sets a new origin.
Definition at line 171 of file base_vect_spher.C.
void Base_vect_spher::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.
Definition at line 180 of file base_vect_spher.C.
References rot_phi.
Base_vect* Base_vect::bvect_from_file | ( | FILE * | ) | [friend] |
The construction function from a file.
ostream& operator<< | ( | ostream & | , | |
const Base_vect & | ||||
) | [friend, inherited] |
Display.
char Base_vect::name[100] [protected, inherited] |
Name of the basis.
Definition at line 106 of file base_vect.h.
double Base_vect_spher::ori_x [private] |
Absolute coordinate X of the origin.
Definition at line 309 of file base_vect.h.
double Base_vect_spher::ori_y [private] |
Absolute coordinate Y of the origin.
Definition at line 310 of file base_vect.h.
double Base_vect_spher::ori_z [private] |
Absolute coordinate Z of the origin.
Definition at line 311 of file base_vect.h.
double Base_vect_spher::rot_phi [private] |
Angle between the x --axis and the absolute frame X --axis.
Definition at line 314 of file base_vect.h.