64void Tenseur::poisson_vect_falloff(
double lambda,
Param& para,
Tenseur& shift,
66 int* k_falloff)
const {
67 assert (lambda != -1) ;
71 assert (shift.get_valence() == 1) ;
72 assert (shift.get_type_indice(0) ==
type_indice(0)) ;
73 assert (vecteur.get_valence() == 1) ;
74 assert (vecteur.get_type_indice(0) ==
type_indice(0)) ;
75 assert (scalaire.get_valence() == 0) ;
76 assert (
etat != ETATNONDEF) ;
83 if (
etat == ETATZERO) {
85 shift.set_etat_zero() ;
87 vecteur.set_etat_qcq() ;
88 for (
int i=0; i<3; i++) {
92 scalaire.set_etat_qcq() ;
99 for (
int i=0 ; i<3 ; i++) {
100 Param* par =
mp->donne_para_poisson_vect(para, i) ;
102 (*this)(i).poisson_falloff(*par, vecteur.set(i),k_falloff[i]) ;
107 vecteur.set_triad( *
triad ) ;
112 Param* par =
mp->donne_para_poisson_vect(para, 3) ;
114 source_scal().poisson_falloff(*par, scalaire.set(), k_falloff[3]) ;
121 Tenseur dxsi (auxiliaire.gradient()) ;
131 shift.set_etat_qcq() ;
133 for (
int i=0 ; i<3 ; i++)
134 shift.set(i) = (lambda+2)/2/(lambda+1) * vecteur(i)
135 - (lambda/2/(lambda+1)) * (dxsi(i) + dp(i)) ;
137 shift.set_triad( *(vecteur.triad) ) ;
144Tenseur Tenseur::poisson_vect_falloff(
double lambda,
Tenseur& vecteur,
145 Tenseur& scalaire,
int* k_falloff)
const {
149 resu.set_etat_qcq() ;
150 poisson_vect_falloff(lambda, bidon, resu, vecteur, scalaire, k_falloff) ;
Tensor handling *** DEPRECATED : use class Tensor instead ***.
const Metrique * metric
For tensor densities: the metric defining the conformal factor.
const Map *const mp
Reference mapping.
Tenseur(const Map &map, const Metrique *met=0x0, double weight=0)
Constructor for a scalar field.
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 contrav...
int etat
Logical state ETATZERO , ETATQCQ or ETATNONDEF.
double poids
For tensor densities: the weight.
friend Tenseur skxk(const Tenseur &)
Contraction of the last index of (*this) with or , depending on the type of S .