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

Public Member Functions

 CylindricalVectorLvl0 ()
 
 CylindricalVectorLvl0 (CylindricalFunctor v_x, CylindricalFunctor v_y, CylindricalFunctor v_z)
 Copy given Functors. More...
 
void reset (CylindricalFunctor v_x, CylindricalFunctor v_y, CylindricalFunctor v_z)
 replace with given functors More...
 
const CylindricalFunctorx () const
 x-component of the vector More...
 
const CylindricalFunctory () const
 y-component of the vector More...
 
const CylindricalFunctorz () const
 z-component of the vector More...
 

Detailed Description

A vector field with three components that depend only on the first two coordinates

const dg::CylindricalGrid3d g3d( R_0-a, R_0+a, -a, a, 0, 2.*M_PI, n, Nx, Ny, Nz, dg::NEU, dg::NEU, dg::PER);
//create magnetic field
auto bhat = dg::geo::createBHat(mag);
//create Fieldaligned object and construct DS from it
bhat, g3d, dg::NEU, dg::NEU, dg::geo::NoLimiter(), 1e-8, mx[0], mx[1],
-1, method);
ds( dsFA );
static dg::geo::TokamakMagneticField createCircularField(double R0, double I0, double a=1, double b=1)
Definition: toroidal.h:136
CylindricalVectorLvl1 createBHat(const TokamakMagneticField &mag)
Contravariant components of the magnetic unit vector field and its Divergence and derivative in cylin...
Definition: magnetic_field.h:931
Class for the evaluation of parallel derivatives.
Definition: ds.h:349
Create and manage interpolation matrices from fieldline integration.
Definition: fieldaligned.h:433
A tokamak field as given by R0, Psi and Ipol plus Meta-data like shape and equilibrium.
Definition: magnetic_field.h:162

Constructor & Destructor Documentation

◆ CylindricalVectorLvl0() [1/2]

dg::geo::CylindricalVectorLvl0::CylindricalVectorLvl0 ( )
inline

◆ CylindricalVectorLvl0() [2/2]

dg::geo::CylindricalVectorLvl0::CylindricalVectorLvl0 ( CylindricalFunctor  v_x,
CylindricalFunctor  v_y,
CylindricalFunctor  v_z 
)
inline

Copy given Functors.

Member Function Documentation

◆ reset()

void dg::geo::CylindricalVectorLvl0::reset ( CylindricalFunctor  v_x,
CylindricalFunctor  v_y,
CylindricalFunctor  v_z 
)
inline

replace with given functors

◆ x()

const CylindricalFunctor & dg::geo::CylindricalVectorLvl0::x ( ) const
inline

x-component of the vector

◆ y()

const CylindricalFunctor & dg::geo::CylindricalVectorLvl0::y ( ) const
inline

y-component of the vector

◆ z()

const CylindricalFunctor & dg::geo::CylindricalVectorLvl0::z ( ) const
inline

z-component of the vector


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