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

Approximate \( \vec{\nabla}\cdot \mathcal{K}_{\nabla B} \). More...

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

Public Member Functions

 DivCurvatureNablaB (const TokamakMagneticField &mag, int sign)
 
double do_compute (double R, double Z) const
 
- Public Member Functions inherited from dg::geo::aCylindricalFunctor< DivCurvatureNablaB >
double operator() (double R, double Z) const
  do_compute(R,Z) More...
 
double operator() (double R, double Z, double phi) const
  do_compute(R,Z) More...
 

Detailed Description

Approximate \( \vec{\nabla}\cdot \mathcal{K}_{\nabla B} \).

\( \vec{\hat{\nabla}}\cdot \mathcal{\hat{K}}_{\nabla B} = -\frac{1}{\hat{R} \hat{B}^2 } \partial_{\hat{Z}} \hat{B}\)

Note
We implicitly assume the toroidal field line approximation, i.e. all curvature and other perpendicular terms assume that the perpendicular direction lies within the R-Z planes of a cylindrical grid (The plane \( \perp \hat{ e}_\varphi\) )

Constructor & Destructor Documentation

◆ DivCurvatureNablaB()

dg::geo::DivCurvatureNablaB::DivCurvatureNablaB ( const TokamakMagneticField mag,
int  sign 
)
inline

Member Function Documentation

◆ do_compute()

double dg::geo::DivCurvatureNablaB::do_compute ( double  R,
double  Z 
) const
inline

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