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
|
| |
| | 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 \)
|
| |
| const CylindricalFunctor & | psip () const |
| | \( \psi_p(R,Z)\), where R, Z are cylindrical coordinates
|
| |
| const CylindricalFunctor & | psipR () const |
| | \( \partial_R \psi_p(R,Z)\), where R, Z are cylindrical coordinates
|
| |
| const CylindricalFunctor & | psipZ () const |
| | \( \partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates
|
| |
| const CylindricalFunctor & | psipRR () const |
| | \( \partial_R\partial_R \psi_p(R,Z)\), where R, Z are cylindrical coordinates
|
| |
| const CylindricalFunctor & | psipRZ () const |
| | \( \partial_R\partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates
|
| |
| const CylindricalFunctor & | psipZZ () const |
| | \( \partial_Z\partial_Z \psi_p(R,Z)\), where R, Z are cylindrical coordinates
|
| |
| const CylindricalFunctor & | ipol () const |
| | \( I(\psi_p) \) the current
|
| |
| const CylindricalFunctor & | ipolR () const |
| | \( \partial_R I(\psi_p) \)
|
| |
| const CylindricalFunctor & | ipolZ () const |
| | \( \partial_Z I(\psi_p) \)
|
| |
| const CylindricalFunctorsLvl2 & | get_psip () const |
| |
| const CylindricalFunctorsLvl1 & | get_ipol () const |
| |
| const MagneticFieldParameters & | params () const |
| | Access Meta-data of the field.
|
| |
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::x::CylindricalGrid3d g3d( R_0-a, R_0+a, -a, a, 0, 2.*M_PI, n, Nx, Ny, Nz,
dg::NEU,
dg::NEU,
dg::PER
#ifdef WITH_MPI
, comm
#endif
);
-1, method);
ds( dsFA );
◆ 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: