184 assert (uu.
get_etat() != ETATNONDEF) ;
194 assert( uu.
get_etat() == ETATQCQ ) ;
209 if (
get_mg()->get_type_r(nzm1) == UNSURR) {
226 Valeur d2ff = ff.d2sdx2() ;
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) ;
382 assert( uu.
get_etat() == ETATQCQ ) ;
397 if (
get_mg()->get_type_r(nzm1) == UNSURR) {
414 Valeur d2ff = ff.d2sdx2() ;
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) ;
564 assert( uu.
get_etat() == ETATQCQ ) ;
const Map * get_mp() const
Returns the mapping.
const Base_val & get_spectral_base() const
Returns the spectral bases of the Valeur va.
Component of a tensorial field *** DEPRECATED : use class Scalar instead ***.
const Valeur & lapang() const
Returns the angular Laplacian of *this.
void coef() const
Computes the coeffcients of *this.
virtual void set_etat_zero()
Sets the logical state to ETATZERO (zero).
void annule(int l)
Sets the Cmp to zero in a given domain.
virtual void annule(int l_min, int l_max)
Sets the Scalar to zero in several domains.
void ylm()
Computes the coefficients of *this.
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
int get_etat() const
Returns the logical state.
Tensor field of valence 0 (or component of a tensorial field).
void coef_i() const
Computes the physical value of *this.
Values and coefficients of a (real-value) function.
void mult2_xm1_zec()
Applies the following operator to *this : \ Id (r sampling = RARE, FIN ) \ (r -sampling = UNSURR ) ...
int get_etat() const
Returns the logical state ETATNONDEF (undefined), ETATZERO (null) or ETATQCQ (ordinary).
virtual void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
const Valeur & d2sdx2() const
Returns of *this.
void set_dzpuis(int)
Modifies the dzpuis flag.
void set_etat_zero()
Sets the logical state to ETATZERO (zero).
Coord dxdr
in the nucleus and in the non-compactified shells; \ in the compactified outer domain.
Base_val base
Bases on which the spectral expansion is performed.
int get_dzpuis() const
Returns dzpuis.
const Valeur & sx2() const
Returns (r -sampling = RARE ) \ Id (r sampling = FIN ) \ (r -sampling = UNSURR ) ...
int get_nzone() const
Returns the number of domains.
Coord xsr
in the nucleus; \ 1/R in the non-compactified shells; \ in the compactified outer domain...
void set_etat_qcq()
Sets the logical state to ETATQCQ (ordinary state).
virtual void lapang(const Scalar &uu, Scalar &lap) const
Computes the angular Laplacian of a scalar field.
const Mg3d * mg
Pointer on the multi-grid Mgd3 on which this is defined.
Bases of the spectral expansions.
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...
void set_dzpuis(int)
Set a value to dzpuis.
Valeur & set_spectral_va()
Returns va (read/write version)
virtual void laplacien(const Scalar &uu, int zec_mult_r, Scalar &lap) const
Computes the Laplacian of a scalar field.
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.
Valeur va
The numerical value of the Cmp.
const Valeur & get_spectral_va() const
Returns va (read only version)