170#include "type_parite.h"
216 Grille3d(
int n_r,
int n_t,
int n_p,
int typer,
int typet,
217 int typep,
int baser) ;
346 Mg3d(
int nz,
int nbr[],
int typr[],
int nbt[],
int typt,
int nbp[],
347 int typp,
int* base_r = 0x0) ;
387 Mg3d(
int nz,
int nbr,
int nbt,
int nbp,
int typt,
int typp,
388 bool compact,
bool legendre=
false) ;
415 Mg3d(
int nz,
int nbr,
int nbt,
int nbp,
int typt,
int typp) ;
422 Mg3d(FILE* fd,
bool read_base=
false) ;
453 assert(l>=0 && l<
nzone) ;
458 assert(l>=0 && l<
nzone) ;
463 assert(l>=0 && l<
nzone) ;
475 assert(l>=0 && l<
nzone) ;
501 assert(l>=0 && l<
nzone) ;
512 assert(l>=0 && l<
nzone) ;
558 void sauve(FILE* fd,
bool save_base=
false)
const ;
608ostream& operator<<(ostream& ,
const Mg3d & ) ;
614int std_base_scal_1z(
int type_r,
int type_t,
int type_p) ;
615int std_base_scal_odd_1z(
int type_r,
int type_t,
int type_p) ;
616int leg_base_scal_1z(
int type_r,
int type_t,
int type_p) ;
617int leg_base_scal_odd_1z(
int type_r,
int type_t,
int type_p) ;
618int jac02_base_scal_1z(
int type_r,
int type_t,
int type_p) ;
619int jac02_base_scal_odd_1z(
int type_r,
int type_t,
int type_p) ;
Bases of the spectral expansions.
3D grid class in one domain.
int get_type_r() const
Returns type_r.
void operator=(const Grille3d &)
Assignement operator.
const int nt
Number of points in .
int get_nt() const
Returns nt
double * x
Array of values of at the nr collocation points.
double * phi
Array of values of at the np collocation points.
int type_p
Type of sampling in (SYM,NONSYM)
double * tet
Array of values of at the nt collocation points.
virtual ~Grille3d()
Destructor.
int base_r
Type of radial spectral basis (BASE_CHEB, BASE_LEG, BASE_JAC02 )
int type_t
Type of sampling in (SYM,NONSYM)
Grille3d(const Grille3d &)
Copy constructor.
void compute_radial_grid()
Computes the collocation point coordinates in the radial direction.
const int np
Number of points in .
int get_type_t() const
Returns type_t.
int get_np() const
Returns np.
const int nr
Number of points in r ( )
int type_r
Type of sampling in r ( ) (RARE,FIN,UNSURR )
int get_nr() const
Returns nr.
int get_base_r() const
Returns base_r.
int get_type_p() const
Returns type_p.
Base_val ** std_base_vect_spher() const
Returns the standard spectral bases for the spherical components of a vector.
const Mg3d * get_twice() const
Returns the pointer on the grid which has twice the number of points in each dimension (for desaliasi...
const Mg3d * plus_half() const
Returns the pointer on the grid which has 50% more points in r dimension (for desaliasing).
int get_colloc_r(int l) const
Returns the type of collocation points used in domain no.
int * type_r
Array (size: nzone) of type of sampling in r ( ) (RARE,FIN, c UNSURR)
Mg3d * g_radial
Pointer on the associated radial grid.
const Mg3d * get_angu() const
Returns the pointer on the associated angular grid.
Mg3d * g_twice
Pointer on the grid which has twice the number of points in each dimension (for desaliasing).
int get_type_t() const
Returns the type of sampling in the direction: SYM : : symmetry with respect to the equatorial pl...
int type_t
Type of sampling in (SYM, NONSYM)
const Mg3d * get_angu_1dom() const
Returns the pointer on the associated mono-domain angular grid.
friend ostream & operator<<(ostream &, const Mg3d &)
Display.
Mg3d * g_non_axi
Pointer on the grid which has at least 4 points in the direction and at least 5 in the direction (f...
void set_deriv_0x0() const
Sets to 0x0 all the pointers on derived quantities (g_radial , g_angu, g_twice, .....
Base_val std_base_scal_odd() const
Returns the standard odd spectral bases for a scalar.
const Grille3d * get_grille3d(int l) const
Returns a pointer on the 3D mono-grid for domain no. l.
bool operator!=(const Mg3d &) const
Operator !=.
int type_p
Type of sampling in (SYM, NONSYM)
int * nt
Array (size: nzone) of nb. of points in .
Base_val ** pseudo_base_vect_spher() const
Returns the standard spectral bases for the spherical components of a pseudo-vector.
int get_np(int l) const
Returns the number of points in the azimuthal direction ( ) in domain no. l.
int get_type_p() const
Returns the type of sampling in the direction: SYM : : symmetry with respect to the transformatio...
int * nr
Array (size: nzone) of nb. of points in r ( )
int get_nt(int l) const
Returns the number of points in the co-latitude direction ( ) in domain no. l.
void operator=(const Mg3d &)
Assignement operator (private and not implemented to make Mg3d a non-copyable class)
Base_val ** pseudo_base_vect_cart() const
Returns the standard spectral bases for the Cartesian components of a pseudo-vector.
void del_deriv() const
Deletes all the derived quantities (g_radial , g_angu, g_twice, ...)
const Mg3d * get_radial() const
Returns the pointer on the associated radial grid.
int get_nzone() const
Returns the number of domains.
Mg3d * g_angu_1dom
Pointer on the associated angular grid with only one domain.
Mg3d * g_angu
Pointer on the associated angular grid.
int get_nr(int l) const
Returns the number of points in the radial direction ( ) in domain no. l.
int nzone
Number of domains (zones)
Grille3d ** g
Array (size: nzone) of pointers on the Grille3d's.
bool operator==(const Mg3d &) const
Comparison operator (egality)
Mg3d * g_plus_half
Pointer on the grid which has 50% more points in r dimension (for desaliasing).
Mg3d(const Mg3d &)
Copy constructor (private and not implemented to make Mg3d a non-copyable class)
int get_type_r(int l) const
Returns the type of sampling in the radial direction in domain no.
void sauve(FILE *fd, bool save_base=false) const
Saves into a file.
Base_val std_base_scal() const
Returns the standard spectral bases for a scalar.
Base_val ** std_base_vect_cart() const
Returns the standard spectral bases for the Cartesian components of a vector.
int * colloc_r
Array (size: nzone) of type of collocation points in r ( ) and related decompoisition bases (BASE_CHE...
const Mg3d * get_non_axi() const
Returns the pointer on the grid which has at least 4 points in the direction and at least 5 in the ...
int * np
Array (size: nzone) of nb. of points in .