184 assert (uu.
get_etat() != ETATNONDEF) ;
185 assert (uu.
get_mp().get_mg() == mg) ;
194 assert( uu.
get_etat() == ETATQCQ ) ;
209 if (
get_mg()->get_type_r(nzm1) == UNSURR) {
262 ff = double(2) * (
dxdr * dff) +
xsr * ff ;
263 ff.base = sauve_base ;
274 sauve_base = d2ff.
base ;
276 ff.base = sauve_base ;
279 if (
get_mg()->get_type_r(nzm1) == UNSURR) {
305 switch (zec_mult_r) {
312 sauve_base = ffext.
base ;
314 ffext.
base = sauve_base ;
318 sauve_base = ffext.
base ;
319 ffext = ffext / (
xsr*
xsr) ;
320 ffext.
base = sauve_base ;
328 sauve_base = ffext.
base ;
330 ffext.
base = sauve_base ;
336 ffext = ffext.
sx2() ;
338 sauve_base = ffext.
base ;
340 ffext.
base = sauve_base ;
345 cout <<
"Map_af::laplacien : unknown value of zec_mult_r !"
346 << endl <<
" zec_mult_r = " << zec_mult_r << endl ;
358 ff.base = base_entree ;
372 assert (uu.
get_etat() != ETATNONDEF) ;
373 assert (uu.
get_mp()->get_mg() == mg) ;
382 assert( uu.
get_etat() == ETATQCQ ) ;
397 if (
get_mg()->get_type_r(nzm1) == UNSURR) {
450 ff = double(2) * (
dxdr * dff) +
xsr * ff ;
451 ff.base = sauve_base ;
462 sauve_base = d2ff.
base ;
464 ff.base = sauve_base ;
467 if (
get_mg()->get_type_r(nzm1) == UNSURR) {
493 switch (zec_mult_r) {
500 sauve_base = ffext.
base ;
502 ffext.
base = sauve_base ;
506 sauve_base = ffext.
base ;
507 ffext = ffext / (
xsr*
xsr) ;
508 ffext.
base = sauve_base ;
516 sauve_base = ffext.
base ;
518 ffext.
base = sauve_base ;
524 ffext = ffext.
sx2() ;
526 sauve_base = ffext.
base ;
528 ffext.
base = sauve_base ;
533 cout <<
"Map_af::laplacien : unknown value of zec_mult_r !"
534 << endl <<
" zec_mult_r = " << zec_mult_r << endl ;
546 ff.base = base_entree ;
554 assert (uu.
get_etat() != ETATNONDEF) ;
555 assert (uu.
get_mp().get_mg() == mg) ;
564 assert( uu.
get_etat() == ETATQCQ ) ;
Bases of the spectral expansions.
void sx()
The basis is transformed as with a multiplication.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
int get_etat() const
Returns the logical state.
Valeur va
The numerical value of the Cmp.
void annule(int l)
Sets the Cmp to zero in a given domain.
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
void set_etat_zero()
Sets the logical state to ETATZERO (zero).
void set_dzpuis(int)
Set a value to dzpuis.
bool check_dzpuis(int dzi) const
Returns false if the last domain is compactified and *this is not zero in this domain and dzpuis is n...
const Map * get_mp() const
Returns the mapping.
virtual void laplacien(const Scalar &uu, int zec_mult_r, Scalar &lap) const
Computes the Laplacian of a scalar field.
virtual void lapang(const Scalar &uu, Scalar &lap) const
Computes the angular Laplacian of a scalar field.
Coord xsr
in the nucleus; \ 1/R in the non-compactified shells; \ in the compactified outer domain.
Coord dxdr
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
int get_nzone() const
Returns the number of domains.
Tensor field of valence 0 (or component of a tensorial field).
const Scalar & lapang() const
Returns the angular Laplacian of *this , where .
int get_dzpuis() const
Returns dzpuis.
virtual void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
bool check_dzpuis(int dzi) const
Returns false if the last domain is compactified and *this is not zero in this domain and dzpuis is n...
virtual void set_etat_zero()
Sets the logical state to ETATZERO (zero).
virtual void annule(int l_min, int l_max)
Sets the Scalar to zero in several domains.
Valeur & set_spectral_va()
Returns va (read/write version).
const Valeur & get_spectral_va() const
Returns va (read only version).
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
const Base_val & get_spectral_base() const
Returns the spectral bases of the Valeur va.
void set_dzpuis(int)
Modifies the dzpuis flag.
Values and coefficients of a (real-value) function.
const Valeur & sx2() const
Returns (r -sampling = RARE ) \ Id (r sampling = FIN ) \ (r -sampling = UNSURR ).
void ylm()
Computes the coefficients of *this.
const Valeur & dsdx() const
Returns of *this.
void coef_i() const
Computes the physical value of *this.
void coef() const
Computes the coeffcients of *this.
const Valeur & d2sdx2() const
Returns of *this.
Base_val base
Bases on which the spectral expansion is performed.
const Valeur & lapang() const
Returns the angular Laplacian of *this.
void mult2_xm1_zec()
Applies the following operator to *this : \ Id (r sampling = RARE, FIN ) \ (r -sampling = UNSURR ).
const Map & get_mp() const
Returns the mapping.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.