|
LORENE
|
Class intended to describe tensors with a symmetry on the two last indices *** DEPRECATED : use class Tensor_sym instead ***.
More...
#include <tenseur.h>
Public Member Functions | |
| Tenseur_sym (const Map &map, int val, const Itbl &tipe, const Base_vect &triad_i, const Metrique *met=0x0, double weight=0) | |
| Standard constructor. | |
| Tenseur_sym (const Map &map, int val, int tipe, const Base_vect &triad_i, const Metrique *met=0x0, double weight=0) | |
| Standard constructor when all the indices are of the same type. | |
| Tenseur_sym (const Tenseur_sym &) | |
| Copy constructor. | |
| Tenseur_sym (const Tenseur &) | |
Constructor from a Tenseur . | |
| Tenseur_sym (const Map &map, const Base_vect &triad_i, FILE *fich, const Metrique *met=0x0) | |
Constructor from a file (see sauve(FILE*) ). | |
| virtual | ~Tenseur_sym () |
| Destructor. | |
| virtual void | operator= (const Tenseur &) |
Assignment from a Tenseur . | |
| virtual int | donne_place (const Itbl &idx) const |
Returns the position in the Cmp 1-D array c of a component given by its indices. | |
| virtual Itbl | donne_indices (int place) const |
Returns the indices of a component given by its position in the Cmp 1-D array c . | |
| void | set_etat_nondef () |
Sets the logical state to ETATNONDEF (undefined state). | |
| void | set_etat_zero () |
Sets the logical state to ETATZERO (zero state). | |
| void | set_etat_qcq () |
Sets the logical state to ETATQCQ (ordinary state). | |
| void | allocate_all () |
Sets the logical state to ETATQCQ (ordinary state) and performs the memory allocation of all the elements, down to the double arrays of the Tbl s. | |
| void | change_triad (const Base_vect &new_triad) |
| Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly. | |
| void | set_triad (const Base_vect &new_triad) |
| Assigns a new vectorial basis (triad) of decomposition. | |
| void | set_poids (double weight) |
| Sets the weight for a tensor density. | |
| void | set_metric (const Metrique &met) |
| Sets the pointer on the metric for a tensor density. | |
| Cmp & | set () |
Read/write for a scalar (see also operator=(const Cmp&) ). | |
| Cmp & | set (int) |
| Read/write for a vector. | |
| Cmp & | set (int, int) |
| Read/write for a tensor of valence 2. | |
| Cmp & | set (int, int, int) |
| Read/write for a tensor of valence 3. | |
| Cmp & | set (const Itbl &) |
| Read/write in the general case. | |
| void | annule (int l) |
Sets the Tenseur to zero in a given domain. | |
| void | annule (int l_min, int l_max) |
Sets the Tenseur to zero in several domains. | |
| void | set_std_base () |
| Set the standard spectal basis of decomposition for each component. | |
| void | dec_dzpuis () |
| dzpuis -= 1 ; | |
| void | inc_dzpuis () |
| dzpuis += 1 ; | |
| void | dec2_dzpuis () |
| dzpuis -= 2 ; | |
| void | inc2_dzpuis () |
| dzpuis += 2 ; | |
| void | mult_r_zec () |
| Multiplication by r in the external zone. | |
| Tenseur | inverse_poisson_vect (double lambda) const |
Compute ![]() *this , *this being of valence 1. | |
| 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. | |
| int | get_etat () const |
| Returns the logical state. | |
| int | get_valence () const |
| Returns the valence. | |
| int | get_n_comp () const |
| Returns the number of components. | |
| int | get_type_indice (int i) const |
Returns the type of the index number i . | |
| Itbl | get_type_indice () const |
| Returns the types of all the indices. | |
| double | get_poids () const |
| Returns the weight. | |
| const Metrique * | get_metric () const |
| Returns a pointer on the metric defining the conformal factor for tensor densities. | |
| const Cmp & | operator() () const |
| Read only for a scalar. | |
| const Cmp & | operator() (int) const |
| Read only for a vector. | |
| const Cmp & | operator() (int, int) const |
| Read only for a tensor of valence 2. | |
| const Cmp & | operator() (int, int, int) const |
| Read only for a tensor of valence 3. | |
| const Cmp & | operator() (const Itbl &) const |
| Read only in the general case. | |
| void | sauve (FILE *) const |
| Save in a file. | |
| const Tenseur & | gradient () const |
Returns the gradient of *this (Cartesian coordinates). | |
| const Tenseur & | gradient_spher () const |
Returns the gradient of *this (Spherical coordinates) (scalar field only). | |
| const Tenseur & | derive_cov (const Metrique &met) const |
Returns the covariant derivative of *this , with respect to met . | |
| const Tenseur & | derive_con (const Metrique &) const |
Returns the contravariant derivative of *this , with respect to met . | |
| const Tenseur & | carre_scal (const Metrique &) const |
Returns the scalar square of *this , with respect to met . | |
| void | poisson_vect (double lambda, Param &par, Tenseur &shift, Tenseur &vect, Tenseur &scal) const |
Solves the vectorial Poisson equation : ![]() | |
| Tenseur | poisson_vect (double lambda, Tenseur &vect, Tenseur &scal) const |
Solves the vectorial Poisson equation ![]() | |
| void | poisson_vect_tau (double lambda, Param &par, Tenseur &shift, Tenseur &vect, Tenseur &scal) const |
| Tenseur | poisson_vect_tau (double lambda, Tenseur &vect, Tenseur &scal) const |
| void | poisson_vect_falloff (double lambda, Param &par, Tenseur &shift, Tenseur &vect, Tenseur &scal, int *k_falloff) const |
| Tenseur | poisson_vect_falloff (double lambda, Tenseur &vect, Tenseur &scal, int *k_falloff) const |
| void | poisson_vect_ylm (double lambda, Param ¶, Tenseur &shift, Tenseur &vecteur, Tenseur &scalaire, int nylm, double *intvec) const |
| Tenseur | poisson_vect_ylm (double lambda, Tenseur &vecteur, Tenseur &scalaire, int nylm, double *intvec) const |
| void | poisson_vect_oohara (double lambda, Param &par, Tenseur &shift, Tenseur &scal) const |
Solves the vectorial Poisson equation ![]() | |
| Tenseur | poisson_vect_oohara (double lambda, Tenseur &scal) const |
Solves the vectorial Poisson equation ![]() | |
| void | poisson_vect_oohara_tau (double lambda, Param &par, Tenseur &shift, Tenseur &scal) const |
| Tenseur | poisson_vect_oohara_tau (double lambda, Tenseur &scal) const |
| void | poisson_vect_regu (int k_div, int nzet, double unsgam1, double lambda, Param &par, Tenseur &shift, Tenseur &vect, Tenseur &scal) const |
Solves the vectorial Poisson equation : ![]() | |
Protected Member Functions | |
| virtual void | fait_gradient () const |
Calculates, if needed, the gradient of *this . | |
| virtual void | fait_derive_cov (const Metrique &met, int i) const |
Calculates, if needed, the covariant derivative of *this , with respect to met . | |
| virtual void | fait_derive_con (const Metrique &, int i) const |
Calculates, if needed, the contravariant derivative of *this , with respect to met . | |
| bool | verif () const |
| Returns false for a tensor density without a defined metric. | |
| void | new_der_met () |
Builds the arrays met_depend , p_derive_cov , p_derive_con and p_carre_scal and fills them with null pointers. | |
| void | del_t () |
| Logical destructor. | |
| void | del_derive_met (int i) const |
Logical destructor of the derivatives depending on the i-th element of *met_depend . | |
| void | del_derive () const |
| Logical destructor of all the derivatives. | |
| void | set_der_met_0x0 (int i) const |
Sets the pointers of the derivatives depending on the i-th element of *met_depend to zero (as well as that i-th element). | |
| void | set_der_0x0 () const |
| Sets the pointers of all the derivatives to zero. | |
| void | fait_gradient_spher () const |
Calculates, if needed, the gradient of *this in a spherical orthonormal basis (scalar field only). | |
| void | fait_carre_scal (const Metrique &, int i) const |
Calculates, if needed, the scalar square of *this , with respect to met . | |
| void | set_dependance (const Metrique &met) const |
To be used to describe the fact that the derivatives members have been calculated with met . | |
| int | get_place_met (const Metrique &metre) const |
Returns the position of the pointer on metre in the array met_depend . | |
Protected Attributes | |
| const Map *const | mp |
| Reference mapping. | |
| int | valence |
| Valence. | |
| const Base_vect * | triad |
| Vectorial basis (triad) with respect to which the tensor components are defined. | |
| Itbl | type_indice |
Array of size valence contening the type of each index, COV for a covariant one and CON for a contravariant one. | |
| int | n_comp |
| Number of components, depending on the symmetry. | |
| int | etat |
Logical state ETATZERO , ETATQCQ or ETATNONDEF. | |
| Cmp ** | c |
| The components. | |
| double | poids |
| For tensor densities: the weight. | |
| const Metrique * | metric |
| For tensor densities: the metric defining the conformal factor. | |
| const Metrique ** | met_depend |
Array of pointers on the Metrique 's used to calculate derivatives members. | |
| Tenseur * | p_gradient |
Pointer on the gradient of *this . | |
| Tenseur * | p_gradient_spher |
Pointer on the gradient of *this in a spherical orthonormal basis (scalar field only). | |
| Tenseur ** | p_derive_cov |
Array of pointers on the covariant derivatives of *this with respect to the corresponding metric in *met_depend . | |
| Tenseur ** | p_derive_con |
Array of pointers on the contravariant derivatives of *this with respect to the corresponding metric in *met_depend . | |
| Tenseur ** | p_carre_scal |
Array of pointers on the scalar squares of *this with respect to the corresponding metric in *met_depend . | |
Friends | |
| Tenseur_sym | operator* (const Tenseur &t1, const Tenseur_sym &t2) |
| Tensorial product. | |
| Tenseur_sym | manipule (const Tenseur_sym &t1, const Metrique &met) |
Raise or lower all the indices, depending on their type, using the given Metrique . | |
| Tenseur | lie_derive (const Tenseur &t, const Tenseur &x, const Metrique *met=0x0) |
Lie Derivative of t with respect to x . | |
Class intended to describe tensors with a symmetry on the two last indices *** DEPRECATED : use class Tensor_sym instead ***.
The storage and the calculations are different and quicker than with an usual Tenseur .()
The valence must be >1.
| Lorene::Tenseur_sym::Tenseur_sym | ( | const Map & | map, |
| int | val, | ||
| const Itbl & | tipe, | ||
| const Base_vect & | triad_i, | ||
| const Metrique * | met = 0x0, | ||
| double | weight = 0 ) |
Standard constructor.
| map | the mapping |
| val | valence of the tensor; must be greater or equal to 2. |
| tipe | 1-D Itbl of size valence containing the type of each index, COV for a covariant one and CON for a contravariant one, with the following storage convention:
|
| triad_i | vectorial basis (triad) with respect to which the tensor components are defined |
Definition at line 96 of file tenseur_sym.C.
References Lorene::Map(), Lorene::pow(), and Lorene::Tenseur::Tenseur().
| Lorene::Tenseur_sym::Tenseur_sym | ( | const Map & | map, |
| int | val, | ||
| int | tipe, | ||
| const Base_vect & | triad_i, | ||
| const Metrique * | met = 0x0, | ||
| double | weight = 0 ) |
Standard constructor when all the indices are of the same type.
| map | the mapping |
| val | valence of the tensor; must be greater or equal to 2. |
| tipe | the type of the indices. |
| triad_i | vectorial basis (triad) with respect to which the tensor components are defined |
Definition at line 107 of file tenseur_sym.C.
References Lorene::Map(), Lorene::pow(), and Lorene::Tenseur::Tenseur().
| Lorene::Tenseur_sym::Tenseur_sym | ( | const Tenseur_sym & | source | ) |
Copy constructor.
Definition at line 118 of file tenseur_sym.C.
References Lorene::Tenseur::c, donne_indices(), donne_place(), Lorene::Tenseur::etat, Lorene::Tenseur::met_depend, Lorene::Tenseur::metric, Lorene::Tenseur::mp, Lorene::Tenseur::n_comp, Lorene::Tenseur::p_carre_scal, Lorene::Tenseur::p_derive_con, Lorene::Tenseur::p_derive_cov, Lorene::Tenseur::p_gradient, Lorene::Tenseur::poids, Lorene::pow(), Lorene::Tenseur::set_dependance(), Lorene::Tenseur::Tenseur(), Tenseur_sym(), Lorene::Tenseur::triad, Lorene::Tenseur::type_indice, and Lorene::Tenseur::valence.
|
explicit |
Constructor from a Tenseur .
The symmetry is assumed to be true but not checked.
Definition at line 159 of file tenseur_sym.C.
References Lorene::Tenseur::c, donne_indices(), Lorene::Tenseur::donne_place(), Lorene::Tenseur::etat, Lorene::Tenseur::met_depend, Lorene::Tenseur::metric, Lorene::Tenseur::mp, Lorene::Tenseur::n_comp, Lorene::Tenseur::p_carre_scal, Lorene::Tenseur::p_derive_con, Lorene::Tenseur::p_derive_cov, Lorene::Tenseur::p_gradient, Lorene::Tenseur::poids, Lorene::pow(), Lorene::Tenseur::Tenseur(), Lorene::Tenseur::triad, Lorene::Tenseur::type_indice, and Lorene::Tenseur::valence.
| Lorene::Tenseur_sym::Tenseur_sym | ( | const Map & | map, |
| const Base_vect & | triad_i, | ||
| FILE * | fich, | ||
| const Metrique * | met = 0x0 ) |
Constructor from a file (see sauve(FILE*) ).
| map | the mapping |
| triad_i | vectorial basis (triad) with respect to which the tensor components are defined. It will be checked that it coincides with the basis saved in the file. |
| fich | file which has been created by the function sauve(FILE*) . |
Definition at line 189 of file tenseur_sym.C.
References Lorene::Map(), Lorene::Tenseur::n_comp, Lorene::pow(), Lorene::Tenseur::Tenseur(), and Lorene::Tenseur::valence.
|
virtual |
Destructor.
Definition at line 201 of file tenseur_sym.C.
|
inherited |
Sets the logical state to ETATQCQ (ordinary state) and performs the memory allocation of all the elements, down to the double arrays of the Tbl s.
This function performs in fact recursive calls to set_etat_qcq() on each element of the chain Tenseur -> Cmp -> Valeur -> Mtbl -> Tbl .
Definition at line 657 of file tenseur.C.
References c, n_comp, and set_etat_qcq().
|
inherited |
|
inherited |
Sets the Tenseur to zero in several domains.
| l_min | [input] The Tenseur will be set (logically) to zero in the domains whose indices are in the range [l_min,l_max] . |
| l_max | [input] see the comments for l_min . |
Note that annule(0,nz-1), where nz is the total number of domains, is equivalent to set_etat_zero() .
Definition at line 905 of file tenseur.C.
References c, etat, mp, n_comp, p_carre_scal, p_derive_con, p_derive_cov, p_gradient, p_gradient_spher, and set_etat_zero().
|
inherited |
Returns the scalar square of *this , with respect to met .
Definition at line 1577 of file tenseur.C.
References fait_carre_scal(), get_place_met(), p_carre_scal, set_dependance(), and Tenseur().
|
inherited |
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Definition at line 668 of file tenseur.C.
References Lorene::Base_vect::change_basis().
|
inherited |
|
inherited |
|
protectedinherited |
Logical destructor of all the derivatives.
Definition at line 573 of file tenseur.C.
References del_derive_met(), p_gradient, p_gradient_spher, and set_der_0x0().
|
protectedinherited |
Logical destructor of the derivatives depending on the i-th element of *met_depend .
Definition at line 554 of file tenseur.C.
References met_depend, p_carre_scal, p_derive_con, p_derive_cov, and set_der_met_0x0().
|
protectedinherited |
Logical destructor.
Definition at line 545 of file tenseur.C.
References c, del_derive(), and n_comp.
|
inherited |
Returns the contravariant derivative of *this , with respect to met .
Definition at line 1568 of file tenseur.C.
References fait_derive_con(), get_place_met(), p_derive_con, set_dependance(), and Tenseur().
|
inherited |
Returns the covariant derivative of *this , with respect to met .
Definition at line 1554 of file tenseur.C.
References fait_derive_cov(), get_place_met(), gradient(), p_derive_cov, set_dependance(), Tenseur(), and valence.
|
virtual |
Returns the indices of a component given by its position in the Cmp 1-D array c .
Itbl ) of size valence giving the value of each index for the component located at the position place in the Cmp 1-D array c . Each element of this Itbl is 0, 1 or 2, which corresponds to spatial indices 1, 2 or 3 respectively. Reimplemented from Lorene::Tenseur.
Definition at line 252 of file tenseur_sym.C.
References Lorene::Tenseur::n_comp, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), and Lorene::Tenseur::valence.
|
virtual |
Returns the position in the Cmp 1-D array c of a component given by its indices.
Cmp 1-D array c idx . idx must be a 1-D Itbl of size valence , each element of which must be 0, 1 or 2, corresponding to spatial indices 1, 2 or 3 respectively. Reimplemented from Lorene::Tenseur.
Definition at line 207 of file tenseur_sym.C.
References Lorene::Itbl::get_dim(), Lorene::Itbl::get_ndim(), and Lorene::Tenseur::valence.
|
protectedinherited |
|
protectedvirtual |
Calculates, if needed, the contravariant derivative of *this , with respect to met .
The result is in *p_derive_con[i]
Reimplemented from Lorene::Tenseur.
Definition at line 441 of file tenseur_sym.C.
References Lorene::Tenseur::contract, Lorene::Tenseur::derive_cov(), Lorene::Tenseur::gradient(), Lorene::Tenseur::p_derive_con, Tenseur_sym(), and Lorene::Tenseur::valence.
|
protectedvirtual |
Calculates, if needed, the covariant derivative of *this , with respect to met .
The result is in *p_derive_cov[i]
Reimplemented from Lorene::Tenseur.
Definition at line 372 of file tenseur_sym.C.
References Lorene::Tenseur::contract, donne_indices(), Lorene::Tenseur::etat, Lorene::Tenseur::gradient(), Lorene::Tenseur::p_derive_cov, Lorene::Tenseur::poids, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), Lorene::Tenseur::Tenseur(), Tenseur_sym(), Lorene::Tenseur::triad, Lorene::Tenseur::type_indice, and Lorene::Tenseur::valence.
|
protectedvirtual |
Calculates, if needed, the gradient of *this .
The result is in *p_gradient
Reimplemented from Lorene::Tenseur.
Definition at line 325 of file tenseur_sym.C.
References Lorene::Tenseur::etat, Lorene::Tenseur::metric, Lorene::Tenseur::mp, Lorene::Tenseur::p_gradient, Lorene::Tenseur::poids, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), Tenseur_sym(), Lorene::Tenseur::triad, Lorene::Tenseur::type_indice, and Lorene::Tenseur::valence.
|
protectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns pointer on the mapping.
Definition at line 699 of file tenseur.h.
References Lorene::Map(), and mp.
|
inlineinherited |
|
protectedinherited |
Returns the position of the pointer on metre in the array met_depend .
Definition at line 598 of file tenseur.C.
References met_depend.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns the types of all the indices.
Itbl of size valence containing the type of each index, COV for a covariant one and CON Definition at line 735 of file tenseur.h.
References type_indice.
|
inlineinherited |
Returns the type of the index number i .
i must be strictly lower than valence and obey the following convention:
i = 0 : first index i = 1 : second index Definition at line 726 of file tenseur.h.
References type_indice.
|
inlineinherited |
|
inherited |
Returns the gradient of *this (Cartesian coordinates).
Definition at line 1542 of file tenseur.C.
References fait_gradient(), p_gradient, and Tenseur().
|
inherited |
Returns the gradient of *this (Spherical coordinates) (scalar field only).
Definition at line 1548 of file tenseur.C.
References fait_gradient_spher(), p_gradient_spher, and Tenseur().
|
inherited |
|
inherited |
|
inherited |
Compute 
*this , *this being of valence 1.
Definition at line 59 of file tenseur_inv_pois_vect.C.
References contract, dec2_dzpuis(), etat, get_triad(), gradient(), inc2_dzpuis(), Lorene::laplacien(), metric, mp, poids, set(), set_etat_qcq(), Tenseur(), and valence.
|
inherited |
|
protectedinherited |
Builds the arrays met_depend , p_derive_cov , p_derive_con and p_carre_scal and fills them with null pointers.
Definition at line 196 of file tenseur.C.
References met_depend, p_carre_scal, p_derive_con, p_derive_cov, set_der_0x0(), and Tenseur().
|
inherited |
Read only in the general case.
Definition at line 1071 of file tenseur.C.
References c, donne_place(), etat, Lorene::Itbl::get_dim(), Lorene::Itbl::get_ndim(), mp, and valence.
|
inherited |
|
inherited |
Read only for a tensor of valence 2.
Definition at line 1000 of file tenseur.C.
References c, donne_place(), etat, mp, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), and valence.
|
inherited |
Read only for a tensor of valence 3.
Definition at line 1034 of file tenseur.C.
References c, donne_place(), etat, mp, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), and valence.
|
virtual |
Assignment from a Tenseur .
The symmetry is assumed but not checked.
Reimplemented from Lorene::Tenseur.
Definition at line 283 of file tenseur_sym.C.
References Lorene::Tenseur::c, donne_indices(), Lorene::Tenseur::donne_place(), Lorene::Tenseur::get_etat(), Lorene::Tenseur::get_valence(), Lorene::Tenseur::metric, Lorene::Tenseur::n_comp, Lorene::Tenseur::poids, Lorene::Tenseur::set_etat_nondef(), Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_etat_zero(), Lorene::Tenseur::Tenseur(), Lorene::Tenseur::triad, Lorene::Tenseur::type_indice, and Lorene::Tenseur::valence.
|
inherited |
Solves the vectorial Poisson equation : 
with 
*this must be given with dzpuis = 4.
It uses the Shibata scheme, where 
![\[ N^i = \frac{1}{2}\frac{\lambda+2}{\lambda+1}W^i-\frac{1}{2}
\frac{\lambda}{\lambda+1}\left(\nabla^i\chi+\nabla^iW^kx_k\right)
\]](form_871.png)
with 

| lambda | [input] ![]() |
| par | [input/output] see Map::donne_para_poisson_vect. |
| shift | [input] solution ![]() |
| shift | [output] solution at this step. |
| vect | [input/output] the same thing than for shift but for ![]() |
| scal | [input/output] the same thing than for shift but for ![]() |
Definition at line 118 of file tenseur_pde.C.
References dec2_dzpuis(), dec_dzpuis(), etat, get_type_indice(), get_valence(), gradient(), mp, Lorene::poisson(), set(), set_etat_qcq(), set_etat_zero(), set_triad(), skxk, Tenseur(), triad, type_indice, and valence.
|
inherited |
Solves the vectorial Poisson equation 
with 
*this must be given with dzpuis = 4.
It uses the Shibata scheme, where 
![\[N^i = \frac{1}{2}\frac{\lambda+2}{\lambda+1}W^i-\frac{1}{2}
\frac{\lambda}{\lambda+1}\left(\nabla^i\chi+\nabla^iW^kx_k\right)
\]](form_875.png)
with 

This version is to be used only with an affine mapping.
| lambda | [input] ![]() |
| vect | [input] ![]() |
| vect | [output] ![]() |
| scal | [input/output] the same thing than for shift but for ![]() |

Definition at line 200 of file tenseur_pde.C.
References metric, mp, poids, poisson_vect(), set_etat_qcq(), Tenseur(), triad, type_indice, and valence.
|
inherited |
Definition at line 61 of file tenseur_pde_falloff.C.
|
inherited |
Definition at line 141 of file tenseur_pde_falloff.C.
|
inherited |
Solves the vectorial Poisson equation 
with 
*this must be given with dzpuis = 3 or 4 and be continuous.
It uses the Oohara scheme, where 
![\[ \Delta N^i = S^i-\lambda \nabla^i \chi
\]](form_876.png)
with 
![\[ \Delta \chi = \frac{1}{\lambda+1}\nabla_k S^k
\]](form_877.png)
| lambda | [input] ![]() |
| par | [input/output] see Map::donne_para_poisson_vect. |
| shift | [input] solution ![]() |
| shift | [output] solution at this step. |
| scal | [input/output] the same thing than for shift but for ![]() |
Definition at line 218 of file tenseur_pde.C.
References contract, dec2_dzpuis(), dec_dzpuis(), etat, get_etat(), get_type_indice(), get_valence(), gradient(), inc2_dzpuis(), inc_dzpuis(), mp, set(), set_etat_qcq(), set_etat_zero(), set_triad(), Tenseur(), triad, type_indice, and valence.
Solves the vectorial Poisson equation 
with 
*this must be given with dzpuis = 3 or 4 and be continuous.
This version is to be used only with an affine mapping.
It uses the Oohara scheme, where 
![\[ \Delta N^i = S^i-\lambda \nabla^i \chi
\]](form_876.png)
with 
![\[ \Delta \chi = \frac{1}{\lambda+1}\nabla_k S^k
\]](form_878.png)
This version is to be used only with an affine mapping.
| lambda | [input] ![]() |
| scal | [input] ![]() |
| scal | [output] ![]() |

Definition at line 290 of file tenseur_pde.C.
References metric, mp, poids, poisson_vect_oohara(), set_etat_qcq(), Tenseur(), triad, type_indice, and valence.
|
inherited |
Definition at line 406 of file tenseur_pde.C.
Definition at line 476 of file tenseur_pde.C.
|
inherited |
Solves the vectorial Poisson equation : 
with 
*this must be given with dzpuis = 4.
It uses the Shibata scheme, where 
![\[ N^i = \frac{1}{2}\frac{\lambda+2}{\lambda+1}W^i-\frac{1}{2}
\frac{\lambda}{\lambda+1}\left(\nabla^i\chi+\nabla^iW^kx_k\right)
\]](form_871.png)
with 

| k_div | [input] regularization degree. |
| nzet | [input] number of domains covering a star. |
| unsgam1 | [input] ![]() |
| lambda | [input] ![]() |
| par | [input/output] see Map::donne_para_poisson_vect. |
| shift | [input] solution ![]() |
| shift | [output] solution at this step. |
| vect | [input/output] the same thing than for shift but for ![]() |
| scal | [input/output] the same thing than for shift but for ![]() |
Definition at line 71 of file tenseur_pde_regu.C.
References dec2_dzpuis(), dec_dzpuis(), etat, get_type_indice(), get_valence(), gradient(), metric, mp, poids, Lorene::poisson(), Lorene::poisson_regular(), set(), set_etat_qcq(), set_etat_zero(), set_triad(), skxk, Lorene::Cmp::std_base_scal(), Tenseur(), triad, type_indice, and valence.
|
inherited |
Definition at line 306 of file tenseur_pde.C.
|
inherited |
Definition at line 388 of file tenseur_pde.C.
|
inherited |
Definition at line 58 of file tenseur_pde_ylm.C.
|
inherited |
Definition at line 149 of file tenseur_pde_ylm.C.
|
inherited |
|
inherited |
Read/write in the general case.
Definition at line 884 of file tenseur.C.
References c, del_derive(), donne_place(), etat, Lorene::Itbl::get_dim(), Lorene::Itbl::get_ndim(), and valence.
|
inherited |
|
inherited |
Read/write for a tensor of valence 2.
Definition at line 845 of file tenseur.C.
References c, del_derive(), donne_place(), etat, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), and valence.
|
inherited |
Read/write for a tensor of valence 3.
Definition at line 864 of file tenseur.C.
References c, del_derive(), donne_place(), etat, Lorene::Itbl::set(), Lorene::Itbl::set_etat_qcq(), and valence.
|
protectedinherited |
To be used to describe the fact that the derivatives members have been calculated with met .
First it sets a null element of met_depend to &met and puts this in the list of the dependancies of met .
Definition at line 608 of file tenseur.C.
References met_depend.
|
protectedinherited |
Sets the pointers of all the derivatives to zero.
Definition at line 591 of file tenseur.C.
References p_gradient, p_gradient_spher, and set_der_met_0x0().
|
protectedinherited |
Sets the pointers of the derivatives depending on the i-th element of *met_depend to zero (as well as that i-th element).
Definition at line 583 of file tenseur.C.
References met_depend, p_carre_scal, p_derive_con, and p_derive_cov.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Set the standard spectal basis of decomposition for each component.
To be used only with valence strictly lower than 3.
Definition at line 1170 of file tenseur.C.
References c, donne_indices(), etat, mp, n_comp, Lorene::Itbl::set_etat_qcq(), triad, and valence.
|
inherited |
Assigns a new vectorial basis (triad) of decomposition.
NB: this function modifies only the member triad and leave unchanged the components (member c ). In order to change them coherently with the new basis, the function change_triad(const Base_vect&) must be called instead.
Definition at line 674 of file tenseur.C.
References triad.
|
protectedinherited |
Lie Derivative of t with respect to x .
If no other argument is given, it uses partial derivatives with respect to cartesian coordinates to calculate the result (this is the default). Otherwise, it uses the covariant derivative associated to the metric given as last argument.
Definition at line 816 of file tenseur_operateur.C.
|
friend |
Raise or lower all the indices, depending on their type, using the given Metrique .
Definition at line 137 of file tenseur_sym_operateur.C.
References Lorene::manipule(), Lorene::Tenseur::Tenseur(), Tenseur_sym(), and Lorene::Tenseur::valence.
|
friend |
Tensorial product.
Definition at line 84 of file tenseur_sym_operateur.C.
References donne_indices(), Lorene::Tenseur::etat, Lorene::Tenseur::get_etat(), Lorene::Tenseur::get_metric(), Lorene::Tenseur::get_mp(), Lorene::Tenseur::get_poids(), Lorene::Tenseur::get_triad(), Lorene::Tenseur::get_type_indice(), Lorene::Tenseur::get_valence(), Lorene::Tenseur::metric, Lorene::Tenseur::mp, Lorene::Tenseur::n_comp, Lorene::Tenseur::poids, Lorene::Itbl::set(), Lorene::Tenseur::set(), Lorene::Itbl::set_etat_qcq(), Lorene::Tenseur::set_etat_qcq(), Lorene::Tenseur::set_etat_zero(), Lorene::Tenseur::Tenseur(), Tenseur_sym(), Lorene::Tenseur::type_indice, and Lorene::Tenseur::valence.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |