Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::RealGridX3d< real_type > Struct Template Reference

The simplest implementation of aRealTopologyX3d. More...

Inheritance diagram for dg::RealGridX3d< real_type >:
[legend]

Public Member Functions

 RealGridX3d (real_type x0, real_type x1, real_type y0, real_type y1, real_type z0, real_type z1, real_type fx, real_type fy, unsigned n, unsigned Nx, unsigned Ny, unsigned Nz, bc bcx=PER, bc bcy=NEU, bc bcz=PER)
 Construct a 3D X-point grid. More...
 
 RealGridX3d (const aRealTopologyX3d< real_type > &src)
 allow explicit type conversion from any other topology More...
 
- Public Member Functions inherited from dg::aRealTopologyX3d< real_type >
real_type x0 () const
 left boundary in x More...
 
real_type x1 () const
 right boundary in x More...
 
real_type y0 () const
 left boundary in y More...
 
real_type y1 () const
 right boundary in y More...
 
real_type z0 () const
 left boundary in z More...
 
real_type z1 () const
 right boundary in z More...
 
real_type lx () const
 length in x More...
 
real_type ly () const
 length in y More...
 
real_type lz () const
 length in z More...
 
real_type hx () const
 cell size in x More...
 
real_type hy () const
 cell size in y More...
 
real_type hz () const
 cell size in z More...
 
real_type fx () const
 partition factor in x More...
 
real_type fy () const
 partition factor in y More...
 
unsigned n () const
 number of polynomial coefficients in x and y More...
 
unsigned Nx () const
 number of points in x More...
 
unsigned inner_Nx () const
 number of topological cells in x More...
 
unsigned outer_Nx () const
 number of smooth rows in x More...
 
unsigned Ny () const
 number of cells in y More...
 
unsigned inner_Ny () const
 number of cells in the inner region of y More...
 
unsigned outer_Ny () const
 number of cells in one of the outer regions of y More...
 
unsigned Nz () const
 number of points in z More...
 
bc bcx () const
 boundary conditions in x More...
 
bc bcy () const
 boundary conditions in y More...
 
bc bcz () const
 boundary conditions in z More...
 
RealGrid3d< real_type > grid () const
 Return a copy without topology. More...
 
const DLT< real_type > & dlt () const
 discrete legendre transformation More...
 
unsigned size () const
 real_typehe total number of points More...
 
void display (std::ostream &os=std::cout) const
 Display. More...
 
bool contains (real_type x, real_type y, real_type z) const
 Check if the grid contains a point. More...
 

Additional Inherited Members

- Public Types inherited from dg::aRealTopologyX3d< real_type >
using value_type = real_type
 
using host_vector = thrust::host_vector< real_type >
 The host vector type used by host functions like evaluate. More...
 
using host_grid = RealGridX3d< real_type >
 
- Protected Member Functions inherited from dg::aRealTopologyX3d< real_type >
 ~aRealTopologyX3d ()=default
 disallow destruction through base class pointer More...
 
 aRealTopologyX3d (real_type x0, real_type x1, real_type y0, real_type y1, real_type z0, real_type z1, real_type fx, real_type fy, unsigned n, unsigned Nx, unsigned Ny, unsigned Nz, bc bcx, bc bcy, bc bcz)
 Construct a 3D X-point grid. More...
 
 aRealTopologyX3d (const aRealTopologyX3d &src)=default
 
aRealTopologyX3doperator= (const aRealTopologyX3d &src)=default
 

Detailed Description

template<class real_type>
struct dg::RealGridX3d< real_type >

The simplest implementation of aRealTopologyX3d.

Constructor & Destructor Documentation

◆ RealGridX3d() [1/2]

template<class real_type >
dg::RealGridX3d< real_type >::RealGridX3d ( real_type  x0,
real_type  x1,
real_type  y0,
real_type  y1,
real_type  z0,
real_type  z1,
real_type  fx,
real_type  fy,
unsigned  n,
unsigned  Nx,
unsigned  Ny,
unsigned  Nz,
bc  bcx = PER,
bc  bcy = NEU,
bc  bcz = PER 
)
inline

Construct a 3D X-point grid.

Parameters
x0left boundary in x
x1right boundary in x
y0lower boundary in y
y1upper boundary in y
z0lower boundary in z
z1upper boundary in z
fxfactor for the partition in x-direction
fyfactor for the partition in y-direction
n# of polynomial coefficients per (x-,y-) dimension (1<=n<=20, note that the library is optimized for n=3 )
Attention
# of polynomial coefficients in z direction is always 1
Parameters
Nx# of points in x
Ny# of points in y
Nz# of points in z
bcxboundary condition in x
bcyboundary condition in y
bczboundary condition in z

◆ RealGridX3d() [2/2]

template<class real_type >
dg::RealGridX3d< real_type >::RealGridX3d ( const aRealTopologyX3d< real_type > &  src)
inlineexplicit

allow explicit type conversion from any other topology


The documentation for this struct was generated from the following file: