Extension: Geometries
#include "dg/geometries/geometries.h"
|
The abstract generator base class. More...
Public Member Functions | |
real_type | zeta0 (real_type fx) const |
real_type | zeta1 (real_type fx) const |
real_type | eta0 (real_type fy) const |
real_type | eta1 (real_type fy) const |
bool | isOrthogonal () const |
sparsity pattern for metric More... | |
void | generate (const thrust::host_vector< real_type > &zeta1d, const thrust::host_vector< real_type > &eta1d, unsigned nodeX0, unsigned nodeX1, thrust::host_vector< real_type > &x, thrust::host_vector< real_type > &y, thrust::host_vector< real_type > &zetaX, thrust::host_vector< real_type > &zetaY, thrust::host_vector< real_type > &etaX, thrust::host_vector< real_type > &etaY) const |
Generate grid points and elements of the Jacobian. More... | |
virtual aRealGeneratorX2d * | clone () const =0 |
Abstract clone method that returns a copy on the heap. More... | |
virtual | ~aRealGeneratorX2d () |
Protected Member Functions | |
aRealGeneratorX2d () | |
aRealGeneratorX2d (const aRealGeneratorX2d &src) | |
aRealGeneratorX2d & | operator= (const aRealGeneratorX2d &src) |
The abstract generator base class.
A generator is there to construct coordinate transformations from physical coordinates \( x,y\) to the computational domain \(\zeta, \eta\), which is a product space.
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
pure virtual |
Abstract clone method that returns a copy on the heap.
Implemented in dg::geo::RibeiroX, and dg::geo::SeparatrixOrthogonal.
|
inline |
|
inline |
|
inline |
Generate grid points and elements of the Jacobian.
zeta1d | (input) a list of \( N_\zeta\) points \( 0<\zeta_i<\)width() |
eta1d | (input) a list of \( N_\eta\) points \( 0<\eta_j<\)height() |
nodeX0 | is the index of the first point in eta1d after the first jump in topology in \( \eta\) |
nodeX1 | is the index of the first point in eta1d after the second jump in topology in \( \eta\) |
x | (output) the list of \( N_\eta N_\zeta\) coordinates \( x(\zeta_i, \eta_j)\) |
y | (output) the list of \( N_\eta N_\zeta\) coordinates \( y(\zeta_i, \eta_j)\) |
zetaX | (output) the list of \( N_\eta N_\zeta\) elements \( \partial\zeta/\partial x (\zeta_i, \eta_j)\) |
zetaY | (output) the list of \( N_\eta N_\zeta\) elements \( \partial\zeta/\partial y (\zeta_i, \eta_j)\) |
etaX | (output) the list of \( N_\eta N_\zeta\) elements \( \partial\eta/\partial x (\zeta_i, \eta_j)\) |
etaY | (output) the list of \( N_\eta N_\zeta\) elements \( \partial\eta/\partial y (\zeta_i, \eta_j)\) |
|
inline |
sparsity pattern for metric
|
inlineprotected |
|
inline |
|
inline |