Extension: Geometries
#include "dg/geometries/geometries.h"
|
A symmetry flux generator. More...
Public Member Functions | |
FluxGenerator (const CylindricalFunctorsLvl2 &psi, const CylindricalFunctorsLvl1 &ipol, double psi_0, double psi_1, double x0, double y0, int mode=0, bool verbose=false) | |
Construct a symmetry flux grid generator. More... | |
virtual FluxGenerator * | 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 symmetry flux generator.
Symmetry flux coordinates fulfill the condition \(\sqrt{g} = \frac{R}{I}\) The symmetry refers to the symmetry in the toroidal angle while flux coordinates allow the representation of the magnetic field in Clebsch form
|
inline |
Construct a symmetry flux grid generator.
psi | \( \psi(x,y)\) the flux function and its derivatives in Cartesian coordinates (x,y) |
ipol | \( I(x,y)\) the current function and its derivatives in Cartesian coordinates (x,y) |
psi_0 | first boundary |
psi_1 | second boundary |
x0 | a point in the inside of the domain bounded by psi_0 (shouldn't be the O-point) |
y0 | a point in the inside of the domain bounded by psi_0 (shouldn't be the O-point) |
mode | This parameter indicates the adaption type used to create the grid: 0 is no adaption, 1 is an equalarc adaption |
verbose | if true the integrators will write additional information to std::cout |
mode==1
then this class does the same as the RibeiroFluxGenerator
|
inlinefinaloverridevirtual |
Abstract clone method that returns a copy on the heap.
Implements dg::geo::aRealGenerator2d< real_type >.