Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
A 3D grid class with X-point topology. More...
Public Types | |
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 > |
Public Member Functions | |
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... | |
Protected Member Functions | |
~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 | |
aRealTopologyX3d & | operator= (const aRealTopologyX3d &src)=default |
A 3D grid class with X-point topology.
In the third dimension only 1 polynomial coefficient is used, not n. In 2d it looks like
using dg::aRealTopologyX3d< real_type >::host_grid = RealGridX3d<real_type> |
using dg::aRealTopologyX3d< real_type >::host_vector = thrust::host_vector<real_type> |
The host vector type used by host functions like evaluate.
using dg::aRealTopologyX3d< real_type >::value_type = real_type |
|
protecteddefault |
disallow destruction through base class pointer
|
inlineprotected |
Construct a 3D X-point grid.
x0 | left boundary in x |
x1 | right boundary in x |
y0 | lower boundary in y |
y1 | upper boundary in y |
z0 | lower boundary in z |
z1 | upper boundary in z |
fx | factor for the partition in x-direction |
fy | factor 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 ) |
Nx | # of points in x |
Ny | # of points in y |
Nz | # of points in z |
bcx | boundary condition in x |
bcy | boundary condition in y |
bcz | boundary condition in z |
|
protecteddefault |
explicit copy constructor (default)
src | source |
|
inline |
boundary conditions in x
|
inline |
boundary conditions in y
|
inline |
boundary conditions in z
|
inline |
|
inline |
Display.
os | output stream |
|
inline |
discrete legendre transformation
|
inline |
partition factor in x
|
inline |
partition factor in y
|
inline |
Return a copy without topology.
|
inline |
cell size in x
|
inline |
cell size in y
|
inline |
cell size in z
|
inline |
number of topological cells in x
|
inline |
number of cells in the inner region of y
|
inline |
length in x
|
inline |
length in y
|
inline |
length in z
|
inline |
number of polynomial coefficients in x and y
|
inline |
number of points in x
|
inline |
number of cells in y
|
inline |
number of points in z
|
protecteddefault |
explicit assignment operator (default)
src | source |
|
inline |
number of smooth rows in x
|
inline |
number of cells in one of the outer regions of y
|
inline |
real_typehe total number of points
|
inline |
left boundary in x
|
inline |
right boundary in x
|
inline |
left boundary in y
|
inline |
right boundary in y
|
inline |
left boundary in z
|
inline |
right boundary in z