Extension: Geometries
#include "dg/geometries/geometries.h"
|
An Adaptor to use SeparatrixOrthogonal as aGenerator2d
instead of aGeneratorX2d
.
More...
Public Member Functions | |
SeparatrixOrthogonalAdaptor (const CylindricalFunctorsLvl2 &psi, const CylindricalSymmTensorLvl1 &chi, double psi_0, double xX, double yX, double x0, double y0, int firstline, bool verbose=false, double fx=0) | |
Construct. More... | |
virtual SeparatrixOrthogonalAdaptor * | 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... | |
An Adaptor to use SeparatrixOrthogonal as aGenerator2d
instead of aGeneratorX2d
.
Generate the same grid as SeparatrixOrthogonal but without private flux region
|
inline |
Construct.
psi | the flux function, the separatrix must be at \( \psi = 0\) |
chi | the monitor tensor, see dg::geo::make_Xconst_monitor or dg::geo::make_Xbump_monitor |
psi_0 | The left boundary of the grid this generator will generate. Must be a closed flux surface. |
xX | the X-point x - coordinate |
yX | the X-point y - coordinate |
x0 | a point in the inside of the separatrix (can be the O-point, defines the angle for initial separatrix integration) |
y0 | a point in the inside of the separatrix (can be the O-point, defines the angle for initial separatrix integration) |
firstline | =0 means conformal, =1 means equalarc discretization of the separatrix |
verbose | if true the integrators will write additional information to std::cout |
fx | fraction of points in the scrape-off layer. fx must evenly divide the number of grid points Nx and determines \( \psi_1 = -\frac{f_x}{1-f_x}\psi_0\) Its purpose is to guarantee that the separatrix falls on a cell boundary |
|
inlinefinaloverridevirtual |
Abstract clone method that returns a copy on the heap.
Implements dg::geo::aRealGenerator2d< real_type >.