Grille3d Class Reference
[Spectral representation.]

3D grid class in one domain. More...

#include <grilles.h>

List of all members.

Public Member Functions

 Grille3d (int n_r, int n_t, int n_p, int typer, int typet, int typep, int baser)
 Constructor.
 Grille3d (const Grille3d &)
 Copy constructor.
void operator= (const Grille3d &)
 Assignement operator.
virtual ~Grille3d ()
 Destructor.
int get_nr () const
 Returns nr.
int get_nt () const
 Returns nt.
int get_np () const
 Returns np.
int get_type_r () const
 Returns type_r.
int get_type_t () const
 Returns type_t.
int get_type_p () const
 Returns type_p.
int get_base_r () const
 Returns base_r.

Public Attributes

double * x
 Array of values of $\xi$ at the nr collocation points.
double * tet
 Array of values of $\theta$ at the nt collocation points.
double * phi
 Array of values of $\phi$ at the np collocation points.

Protected Member Functions

void compute_radial_grid ()
 Computes the collocation point coordinates in the radial direction.

Protected Attributes

const int nr
 Number of points in r ($\xi$).
const int nt
 Number of points in $\theta$.
const int np
 Number of points in $\phi$.
int type_r
 Type of sampling in r ($\xi$) (RARE,FIN,UNSURR ).
int type_t
 Type of sampling in $\theta$ (SYM,NONSYM).
int type_p
 Type of sampling in $\phi$ (SYM,NONSYM).
int base_r
 Type of radial spectral basis (BASE_CHEB, BASE_LEG, BASE_JAC02 ).

Detailed Description

3D grid class in one domain.

()

Basic 3D spherical grid class in spherical coordinates $(r,\theta,\phi)$. The radial coordinate $\xi$ lies in the range [0, 1] or [-1, 1] depending upon the sampling (RARE or FIN ). Its relation with the physical radial coordinate r is defined by the mapping (cf. class Map) and is described in Bonazzola, Gourgoulhon & Marck, Phys. Rev. D 58, 104020 (1998). Note: this monogrid should not be used. Use instead Mg3d.

Version:
$Id: grilles.h,v 1.22 2014/10/06 15:09:39 j_novak Exp $#

Definition at line 190 of file grilles.h.


Constructor & Destructor Documentation

Grille3d::Grille3d ( int  n_r,
int  n_t,
int  n_p,
int  typer,
int  typet,
int  typep,
int  baser 
)

Constructor.

Definition at line 118 of file grille3d.C.

References compute_radial_grid(), np, nr, nt, phi, tet, type_p, type_t, and x.

Grille3d::Grille3d ( const Grille3d  ) 

Copy constructor.

Grille3d::~Grille3d (  )  [virtual]

Destructor.

Definition at line 162 of file grille3d.C.

References phi, tet, and x.


Member Function Documentation

void Grille3d::compute_radial_grid (  )  [protected]

Computes the collocation point coordinates in the radial direction.

Definition at line 168 of file grille3d.C.

References base_r, cos(), nr, Tbl::set_etat_qcq(), sin(), Tbl::t, type_r, and x.

int Grille3d::get_base_r (  )  const [inline]

Returns base_r.

Definition at line 239 of file grilles.h.

References base_r.

int Grille3d::get_np (  )  const [inline]

Returns np.

Definition at line 230 of file grilles.h.

References np.

int Grille3d::get_nr (  )  const [inline]

Returns nr.

Definition at line 226 of file grilles.h.

References nr.

int Grille3d::get_nt (  )  const [inline]

Returns nt.

Definition at line 228 of file grilles.h.

References nt.

int Grille3d::get_type_p (  )  const [inline]

Returns type_p.

Definition at line 237 of file grilles.h.

References type_p.

int Grille3d::get_type_r (  )  const [inline]

Returns type_r.

Definition at line 233 of file grilles.h.

References type_r.

int Grille3d::get_type_t (  )  const [inline]

Returns type_t.

Definition at line 235 of file grilles.h.

References type_t.

void Grille3d::operator= ( const Grille3d  ) 

Assignement operator.


Member Data Documentation

int Grille3d::base_r [protected]

Type of radial spectral basis (BASE_CHEB, BASE_LEG, BASE_JAC02 ).

Definition at line 201 of file grilles.h.

const int Grille3d::np [protected]

Number of points in $\phi$.

Definition at line 194 of file grilles.h.

const int Grille3d::nr [protected]

Number of points in r ($\xi$).

Definition at line 192 of file grilles.h.

const int Grille3d::nt [protected]

Number of points in $\theta$.

Definition at line 193 of file grilles.h.

double* Grille3d::phi

Array of values of $\phi$ at the np collocation points.

Definition at line 209 of file grilles.h.

double* Grille3d::tet

Array of values of $\theta$ at the nt collocation points.

Definition at line 207 of file grilles.h.

int Grille3d::type_p [protected]

Type of sampling in $\phi$ (SYM,NONSYM).

Definition at line 199 of file grilles.h.

int Grille3d::type_r [protected]

Type of sampling in r ($\xi$) (RARE,FIN,UNSURR ).

Definition at line 197 of file grilles.h.

int Grille3d::type_t [protected]

Type of sampling in $\theta$ (SYM,NONSYM).

Definition at line 198 of file grilles.h.

double* Grille3d::x

Array of values of $\xi$ at the nr collocation points.

Definition at line 205 of file grilles.h.


The documentation for this class was generated from the following files:

Generated on 7 Oct 2014 for LORENE by  doxygen 1.6.1