Extension: Geometries
#include "dg/geometries/geometries.h"

This struct bundles a function and its first derivatives. More...

Public Member Functions

 CylindricalFunctorsLvl1 ()
 the access functions are undefined as long as the class remains empty More...
 
 CylindricalFunctorsLvl1 (CylindricalFunctor f, CylindricalFunctor fx, CylindricalFunctor fy)
 Construct with given functors. More...
 
void reset (CylindricalFunctor f, CylindricalFunctor fx, CylindricalFunctor fy)
 copy given functors More...
 
const CylindricalFunctorf () const
 \( f \) More...
 
const CylindricalFunctordfx () const
 \( \partial f / \partial x \) More...
 
const CylindricalFunctordfy () const
 \( \partial f / \partial y\) More...
 

Detailed Description

This struct bundles a function and its first derivatives.

unsigned nGrid = js["grid"]["generator"]["initial"]["n"].asUInt();
unsigned NxGrid = js["grid"]["generator"]["initial"]["Nx"].asUInt();
unsigned NyGrid = js["grid"]["generator"]["initial"]["Ny"].asUInt();
double epsHector = js["grid"]["generator"]["eps"].asDouble();
if( mode == 0)
{
std::cout << " ... of type conformal ...\n";
generator = std::make_unique< dg::geo::Hector<dg::IDMatrix,
dg::DMatrix, dg::DVec>>( mag.get_psip(), psi_0, psi_1,
mag.R0(), 0., nGrid, NxGrid, NyGrid, epsHector,
true);
}
else if( mode == 1)
{
std::cout << " ... of type adaption ...\n";
generator = std::make_unique< dg::geo::Hector<dg::IDMatrix,
dg::DMatrix, dg::DVec>>( mag.get_psip(), nc, psi_0,
psi_1, mag.R0(), 0., nGrid, NxGrid, NyGrid,
epsHector, true);
}
else
{
std::cout << " ... of type monitor metric ...\n";
dg::geo::make_LiseikinCollective( mag.get_psip(), 0.1, 0.001);
generator = std::make_unique< dg::geo::Hector<dg::IDMatrix,
dg::DMatrix, dg::DVec>>( mag.get_psip(), lc, psi_0,
psi_1, mag.R0(), 0., nGrid, NxGrid, NyGrid,
epsHector, true);
}
static CylindricalFunctorsLvl1 make_NablaPsiInvCollective(const CylindricalFunctorsLvl2 &psi)
A container class that contains all NablaPsiInv functors.
Definition: adaption.h:123
static CylindricalSymmTensorLvl1 make_LiseikinCollective(const CylindricalFunctorsLvl2 &psi, double k, double eps)
Definition: adaption.h:254
thrust::device_vector< double > DVec
IDMatrix_t< double > IDMatrix
EllSparseBlockMatDevice< double > DMatrix
This struct bundles a function and its first derivatives.
Definition: fluxfunctions.h:182
Definition: fluxfunctions.h:361
The High PrEcision Conformal grid generaTOR.
Definition: hector.h:221

Constructor & Destructor Documentation

◆ CylindricalFunctorsLvl1() [1/2]

dg::geo::CylindricalFunctorsLvl1::CylindricalFunctorsLvl1 ( )
inline

the access functions are undefined as long as the class remains empty

◆ CylindricalFunctorsLvl1() [2/2]

dg::geo::CylindricalFunctorsLvl1::CylindricalFunctorsLvl1 ( CylindricalFunctor  f,
CylindricalFunctor  fx,
CylindricalFunctor  fy 
)
inline

Construct with given functors.

Parameters
f\( f(x,y)\) the function in some coordinates (x,y)
fx\( \partial f / \partial x \) its derivative in the first coordinate
fy\( \partial f / \partial y \) its derivative in the second coordinate

Member Function Documentation

◆ dfx()

const CylindricalFunctor & dg::geo::CylindricalFunctorsLvl1::dfx ( ) const
inline

\( \partial f / \partial x \)

◆ dfy()

const CylindricalFunctor & dg::geo::CylindricalFunctorsLvl1::dfy ( ) const
inline

\( \partial f / \partial y\)

◆ f()

const CylindricalFunctor & dg::geo::CylindricalFunctorsLvl1::f ( ) const
inline

\( f \)

◆ reset()

void dg::geo::CylindricalFunctorsLvl1::reset ( CylindricalFunctor  f,
CylindricalFunctor  fx,
CylindricalFunctor  fy 
)
inline

copy given functors


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