Extension: Geometries
#include "dg/geometries/geometries.h"
dg::geo::SeparatrixOrthogonalAdaptor Struct Reference

An Adaptor to use SeparatrixOrthogonal as aGenerator2d instead of aGeneratorX2d. More...

Inheritance diagram for dg::geo::SeparatrixOrthogonalAdaptor:
[legend]

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 SeparatrixOrthogonalAdaptorclone () 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 aRealGenerator2dclone () 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...
 
aRealGenerator2doperator= (const aRealGenerator2d &)
 return *this More...
 

Detailed Description

An Adaptor to use SeparatrixOrthogonal as aGenerator2d instead of aGeneratorX2d.

Generate the same grid as SeparatrixOrthogonal but without private flux region

Constructor & Destructor Documentation

◆ SeparatrixOrthogonalAdaptor()

dg::geo::SeparatrixOrthogonalAdaptor::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 
)
inline

Construct.

Parameters
psithe flux function, the separatrix must be at \( \psi = 0\)
chithe monitor tensor, see dg::geo::make_Xconst_monitor or dg::geo::make_Xbump_monitor
psi_0The left boundary of the grid this generator will generate. Must be a closed flux surface.
xXthe X-point x - coordinate
yXthe X-point y - coordinate
x0a point in the inside of the separatrix (can be the O-point, defines the angle for initial separatrix integration)
y0a 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
verboseif true the integrators will write additional information to std::cout
fxfraction 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

Member Function Documentation

◆ clone()

virtual SeparatrixOrthogonalAdaptor * dg::geo::SeparatrixOrthogonalAdaptor::clone ( ) const
inlinefinaloverridevirtual

Abstract clone method that returns a copy on the heap.

Returns
a copy of *this on the heap

Implements dg::geo::aRealGenerator2d< real_type >.


The documentation for this struct was generated from the following file: