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

Evaluation of the safety factor q based on direct integration of \( q(\psi_0) = \frac{1}{2\pi} \int d\Theta \frac{B^\varphi}{B^\Theta} \). More...

Public Member Functions

 SafetyFactor (const TokamakMagneticField &mag)
 
double operator() (double psip0)
 Calculate q(psip0) More...
 

Detailed Description

Evaluation of the safety factor q based on direct integration of \( q(\psi_0) = \frac{1}{2\pi} \int d\Theta \frac{B^\varphi}{B^\Theta} \).

Attention
Return value undefined if evaluated outside the closed fieldline region, but the function always returns, it won't throw an error or something
Template Parameters
containerA data container class for which the blas1 functionality is overloaded. We assume that container is copyable/assignable and has a swap member function. Currently this is one of

Constructor & Destructor Documentation

◆ SafetyFactor()

dg::geo::SafetyFactor::SafetyFactor ( const TokamakMagneticField mag)
inline

Member Function Documentation

◆ operator()()

double dg::geo::SafetyFactor::operator() ( double  psip0)
inline

Calculate q(psip0)

Parameters
psip0the flux surface
Returns
q(psip0)

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