Lorene::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.24 2018/12/05 15:03:20 j_novak Exp $#

Definition at line 197 of file grilles.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 125 of file grille3d.C.

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

Lorene::Grille3d::Grille3d ( const Grille3d  ) 

Copy constructor.

Lorene::Grille3d::~Grille3d (  )  [virtual]

Destructor.

Definition at line 169 of file grille3d.C.

References phi, tet, and x.


Member Function Documentation

void Lorene::Grille3d::compute_radial_grid (  )  [protected]

Computes the collocation point coordinates in the radial direction.

Definition at line 175 of file grille3d.C.

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

int Lorene::Grille3d::get_base_r (  )  const [inline]

Returns base_r.

Definition at line 246 of file grilles.h.

References base_r.

int Lorene::Grille3d::get_np (  )  const [inline]

Returns np.

Definition at line 237 of file grilles.h.

References np.

int Lorene::Grille3d::get_nr (  )  const [inline]

Returns nr.

Definition at line 233 of file grilles.h.

References nr.

int Lorene::Grille3d::get_nt (  )  const [inline]

Returns nt.

Definition at line 235 of file grilles.h.

References nt.

int Lorene::Grille3d::get_type_p (  )  const [inline]

Returns type_p.

Definition at line 244 of file grilles.h.

References type_p.

int Lorene::Grille3d::get_type_r (  )  const [inline]

Returns type_r.

Definition at line 240 of file grilles.h.

References type_r.

int Lorene::Grille3d::get_type_t (  )  const [inline]

Returns type_t.

Definition at line 242 of file grilles.h.

References type_t.

void Lorene::Grille3d::operator= ( const Grille3d  ) 

Assignement operator.


Member Data Documentation

int Lorene::Grille3d::base_r [protected]

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

Definition at line 208 of file grilles.h.

const int Lorene::Grille3d::np [protected]

Number of points in $\phi$.

Definition at line 201 of file grilles.h.

const int Lorene::Grille3d::nr [protected]

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

Definition at line 199 of file grilles.h.

const int Lorene::Grille3d::nt [protected]

Number of points in $\theta$.

Definition at line 200 of file grilles.h.

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

Definition at line 216 of file grilles.h.

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

Definition at line 214 of file grilles.h.

int Lorene::Grille3d::type_p [protected]

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

Definition at line 206 of file grilles.h.

int Lorene::Grille3d::type_r [protected]

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

Definition at line 204 of file grilles.h.

int Lorene::Grille3d::type_t [protected]

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

Definition at line 205 of file grilles.h.

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

Definition at line 212 of file grilles.h.


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

Generated on 7 Dec 2019 for LORENE by  doxygen 1.6.1