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

A transformed field grid generator. More...

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

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 DSPGeneratorclone () 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

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

See also
The pdf parallel derivative writeup

Constructor & Destructor Documentation

◆ DSPGenerator()

dg::geo::DSPGenerator::DSPGenerator ( const dg::geo::TokamakMagneticField mag,
double  R0,
double  R1,
double  Z0,
double  Z1,
double  deltaPhi 
)
inline

Only magnetic fields are admissable vector fields.

Parameters
magthe magnetic field
R0boundary of the cylindrical grid
R1boundary of the cylindrical grid
Z0boundary of the cylindrical grid
Z1boundary of the cylindrical grid
deltaPhidistance in phi on how to integrate the fieldline

Member Function Documentation

◆ clone()

virtual DSPGenerator * dg::geo::DSPGenerator::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: