A tokamak field as given by R0, Psi and Ipol plus Meta-data like shape and equilibrium.
More...
|
| TokamakMagneticField () |
| as long as the field stays empty the access functions are undefined More...
|
|
| TokamakMagneticField (double R0, const CylindricalFunctorsLvl2 &psip, const CylindricalFunctorsLvl1 &ipol, MagneticFieldParameters gp) |
|
void | set (double R0, const CylindricalFunctorsLvl2 &psip, const CylindricalFunctorsLvl1 &ipol, MagneticFieldParameters gp) |
|
double | R0 () const |
| \( R_0 \) More...
|
|
const CylindricalFunctor & | psip () const |
| \( \psi_p(R,Z)\), where R, Z are cylindrical coordinates More...
|
|
const CylindricalFunctor & | psipR () const |
| \( \partial_R \psi_p(R,Z)\), where R, Z are cylindrical coordinates More...
|
|
const CylindricalFunctor & | psipZ () const |
| \( \partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates More...
|
|
const CylindricalFunctor & | psipRR () const |
| \( \partial_R\partial_R \psi_p(R,Z)\), where R, Z are cylindrical coordinates More...
|
|
const CylindricalFunctor & | psipRZ () const |
| \( \partial_R\partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates More...
|
|
const CylindricalFunctor & | psipZZ () const |
| \( \partial_Z\partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates More...
|
|
const CylindricalFunctor & | ipol () const |
| \( I(\psi_p) \) the current More...
|
|
const CylindricalFunctor & | ipolR () const |
| \( \partial_R I(\psi_p) \) More...
|
|
const CylindricalFunctor & | ipolZ () const |
| \( \partial_Z I(\psi_p) \) More...
|
|
const CylindricalFunctorsLvl2 & | get_psip () const |
|
const CylindricalFunctorsLvl1 & | get_ipol () const |
|
const MagneticFieldParameters & | params () const |
| Access Meta-data of the field. More...
|
|
A tokamak field as given by R0, Psi and Ipol plus Meta-data like shape and equilibrium.
This is the representation of toroidally axisymmetric magnetic fields that can be modeled in the description \( \vec B(R,Z,\varphi) = \frac{R_0}{R} \left( I(\psi_p) \hat e_\varphi + \nabla \psi_p \times \hat e_\varphi\right) \) where \( R_0\) is a normalization constant, \( I\) the poloidal current and \( \psi_p\) the poloidal flux function.
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);
-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
◆ TokamakMagneticField() [1/2]
dg::geo::TokamakMagneticField::TokamakMagneticField |
( |
| ) |
|
|
inline |
as long as the field stays empty the access functions are undefined
◆ TokamakMagneticField() [2/2]
◆ get_ipol()
◆ get_psip()
◆ ipol()
\( I(\psi_p) \) the current
◆ ipolR()
\( \partial_R I(\psi_p) \)
◆ ipolZ()
\( \partial_Z I(\psi_p) \)
◆ params()
Access Meta-data of the field.
- Returns
- Meta-data
◆ psip()
\( \psi_p(R,Z)\), where R, Z are cylindrical coordinates
◆ psipR()
\( \partial_R \psi_p(R,Z)\), where R, Z are cylindrical coordinates
◆ psipRR()
\( \partial_R\partial_R \psi_p(R,Z)\), where R, Z are cylindrical coordinates
◆ psipRZ()
\( \partial_R\partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates
◆ psipZ()
\( \partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates
◆ psipZZ()
\( \partial_Z\partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates
◆ R0()
double dg::geo::TokamakMagneticField::R0 |
( |
| ) |
const |
|
inline |
◆ set()
The documentation for this struct was generated from the following file: