116 assert(
etat != ETATNONDEF) ;
123 if (
etat == ETATUN) {
148 assert(
etat != ETATNONDEF) ;
155 if (
etat == ETATUN) {
180 assert(
etat != ETATNONDEF) ;
187 if (
etat == ETATUN) {
210 assert(
etat != ETATNONDEF) ;
219 if (
etat == ETATUN) {
240 assert(
etat != ETATNONDEF) ;
249 if (
etat == ETATUN) {
269 assert(
etat != ETATNONDEF) ;
276 if (
etat == ETATUN) {
300 assert(
etat != ETATNONDEF) ;
307 if (
etat == ETATUN) {
331 assert(
etat != ETATNONDEF) ;
338 if (
etat == ETATUN) {
376 cout <<
"Scalar::deriv : index i out of range !" << endl ;
377 cout <<
" i = " << i << endl ;
395 assert(p_resu != 0x0) ;
407 assert(p_resu != 0x0) ;
439 assert(
etat != ETATNONDEF) ;
464 assert(
etat != ETATNONDEF) ;
469 if (
etat == ETATUN) {
494 assert(
etat != ETATNONDEF) ;
501 if (
etat == ETATUN) {
525 assert(
etat != ETATNONDEF) ;
532 if (
etat == ETATUN) {
Scalar * p_srdsdt
Pointer on of *this (0x0 if not up to date)
Metric for tensor calculation.
Scalar * p_srstdsdp
Pointer on of *this (0x0 if not up to date)
const Scalar & dsdradial() const
Returns of *this if the mapping is affine (class Map_af) and of *this if the mapping is logarithmic...
const Scalar & lapang() const
Returns the angular Laplacian of *this , where .
virtual void set_etat_zero()
Sets the logical state to ETATZERO (zero).
virtual void dsdt(const Scalar &uu, Scalar &resu) const =0
Computes of a Scalar .
Scalar(const Map &mpi)
Constructor from mapping.
const Scalar & dsdt() const
Returns of *this .
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
const Scalar & laplacian(int ced_mult_r=4) const
Returns the Laplacian of *this.
virtual void dsdr(const Cmp &ci, Cmp &resu) const =0
Computes of a Cmp .
const Scalar & dsdz() const
Returns of *this , where .
Tensor field of valence 0 (or component of a tensorial field).
Scalar * p_dsdt
Pointer on of *this (0x0 if not up to date)
int ind_lap
Power of r by which the last computed Laplacian has been multiplied in the compactified external doma...
const Scalar & dsdx() const
Returns of *this , where .
Values and coefficients of a (real-value) function.
int dzpuis
Power of r by which the quantity represented by this must be divided in the compactified external do...
const Vector & derive_con(const Metric &gam) const
Returns the "contravariant" derivative of *this with respect to some metric , by raising the index of...
Tensor field of valence 1.
virtual void comp_x_from_spherical(const Scalar &v_r, const Scalar &v_theta, const Scalar &v_phi, Scalar &v_x) const =0
Computes the Cartesian x component (with respect to bvect_cart ) of a vector given by its spherical c...
virtual void srdsdt(const Cmp &ci, Cmp &resu) const =0
Computes of a Cmp .
void set_dzpuis(int)
Modifies the dzpuis flag.
Scalar * p_lap
Pointer on the Laplacian of *this (0x0 if not up to date)
const Scalar & dsdrho() const
Returns of *this .
Scalar * p_dsdradial
Pointer on of *this.
virtual void comp_z_from_spherical(const Scalar &v_r, const Scalar &v_theta, Scalar &v_z) const =0
Computes the Cartesian z component (with respect to bvect_cart ) of a vector given by its spherical c...
void compute_derive_lie(const Vector &v, Tensor &resu) const
Computes the Lie derivative of this with respect to some vector field v (protected method; the public...
Scalar * p_dsdrho
Pointer on of *this.
const Scalar & dsdy() const
Returns of *this , where .
Scalar * p_dsdy
Pointer on of *this , where (0x0 if not up to date)
Scalar * p_lapang
Pointer on the Laplacian of *this (0x0 if not up to date)
virtual void srstdsdp(const Cmp &ci, Cmp &resu) const =0
Computes of a Cmp .
int get_nzone() const
Returns the number of domains.
const Valeur & mult_st() const
Returns applied to *this.
const Scalar & deriv(int i) const
Returns of *this , where .
const Scalar & stdsdp() const
Returns of *this .
const Tensor & derive_cov(const Metric &gam) const
Returns the covariant derivative of this with respect to some metric .
Scalar derive_lie(const Vector &v) const
Computes the derivative of this along a vector field v.
const Tensor & derive_con(const Metric &gam) const
Returns the "contravariant" derivative of this with respect to some metric , by raising the last inde...
Scalar * p_dsdz
Pointer on of *this , where (0x0 if not up to date)
const Scalar & srdsdt() const
Returns of *this .
int etat
The logical state ETATNONDEF (undefined), ETATZERO (null), ETATUN (one), or ETATQCQ (ordinary)...
Scalar * p_stdsdp
Pointer on of *this (0x0 if not up to date)
const Scalar & dsdr() const
Returns of *this .
const Valeur & mult_ct() const
Returns applied to *this.
Scalar * p_dsdr
Pointer on of *this (0x0 if not up to date)
virtual void dsdradial(const Scalar &uu, Scalar &resu) const =0
Computes of a Scalar if the description is affine and if it is logarithmic.
int get_type_r(int l) const
Returns the type of sampling in the radial direction in domain no.
const Map *const mp
Mapping on which the numerical values at the grid points are defined.
const Vector & derive_cov(const Metric &gam) const
Returns the gradient (1-form = covariant vector) of *this
virtual void comp_y_from_spherical(const Scalar &v_r, const Scalar &v_theta, const Scalar &v_phi, Scalar &v_y) const =0
Computes the Cartesian y component (with respect to bvect_cart ) of a vector given by its spherical c...
const Valeur & get_spectral_va() const
Returns va (read only version)
const Scalar & srstdsdp() const
Returns of *this .
virtual void laplacien(const Scalar &uu, int zec_mult_r, Scalar &lap) const =0
Computes the Laplacian of a scalar field.
virtual void lapang(const Scalar &uu, Scalar &lap) const =0
Computes the angular Laplacian of a scalar field.
Scalar * p_dsdx
Pointer on of *this , where (0x0 if not up to date)
virtual void stdsdp(const Scalar &uu, Scalar &resu) const =0
Computes of a Scalar .