Extension: Geometries
#include "dg/geometries/geometries.h"
|
A transformed field grid generator. More...
Public Member Functions | |
DSPGenerator (const dg::geo::TokamakMagneticField &mag, double R0, double R1, double Z0, double Z1, double deltaPhi) | |
Only magnetic fields are admissable vector fields. More... | |
virtual DSPGenerator * | clone () const override final |
Abstract clone method that returns a copy on the heap. More... | |
Public Member Functions inherited from dg::geo::aRealGenerator2d< real_type > | |
real_type | width () const |
length in \( \zeta\) of the computational space More... | |
real_type | height () const |
length in \( \eta\) of the computational space More... | |
bool | isOrthogonal () const |
sparsity pattern for metric More... | |
void | generate (const thrust::host_vector< real_type > &zeta1d, const thrust::host_vector< real_type > &eta1d, 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 aRealGenerator2d * | clone () const =0 |
Abstract clone method that returns a copy on the heap. More... | |
virtual | ~aRealGenerator2d () |
Additional Inherited Members | |
Protected Member Functions inherited from dg::geo::aRealGenerator2d< real_type > | |
aRealGenerator2d () | |
empty More... | |
aRealGenerator2d (const aRealGenerator2d &) | |
empty More... | |
aRealGenerator2d & | operator= (const aRealGenerator2d &) |
return *this More... | |
A transformed field grid generator.
///////////////////////////////////////////////////////////////////
This generator transforms a given cylindrical grid by following the streamlines of a vector field \( \hat{ \vec b}\) for a set distance \(\Delta\varphi\) in the perpendicular direction. This only works by starting from a cylindrical grid
|
inline |
Only magnetic fields are admissable vector fields.
mag | the magnetic field |
R0 | boundary of the cylindrical grid |
R1 | boundary of the cylindrical grid |
Z0 | boundary of the cylindrical grid |
Z1 | boundary of the cylindrical grid |
deltaPhi | distance in phi on how to integrate the fieldline |
|
inlinefinaloverridevirtual |
Abstract clone method that returns a copy on the heap.
Implements dg::geo::aRealGenerator2d< real_type >.