Extension: Geometries
#include "dg/geometries/geometries.h"
Collaboration diagram for The solovev expansion:

Classes

struct  dg::geo::solovev::Psip
 
struct  dg::geo::solovev::PsipR
 
struct  dg::geo::solovev::PsipRR
 
struct  dg::geo::solovev::PsipZ
 
struct  dg::geo::solovev::PsipZZ
 
struct  dg::geo::solovev::PsipRZ
 
struct  dg::geo::solovev::Ipol
 
struct  dg::geo::solovev::IpolR
 
struct  dg::geo::solovev::IpolZ
 
struct  dg::geo::solovev::Parameters
 Constructs and display geometric parameters for the solovev and taylor fields. More...
 

Functions

static dg::geo::CylindricalFunctorsLvl2 dg::geo::solovev::createPsip (const Parameters &gp)
 
static dg::geo::CylindricalFunctorsLvl1 dg::geo::solovev::createIpol (const Parameters &gp, const CylindricalFunctorsLvl1 &psip)
 
static dg::geo::TokamakMagneticField dg::geo::createSolovevField (dg::geo::solovev::Parameters gp)
 Create a Solovev Magnetic field. More...
 
static dg::geo::TokamakMagneticField dg::geo::createModifiedSolovevField (dg::geo::solovev::Parameters gp, double psi0, double alpha, double sign=-1)
 DEPRECATED Create a modified Solovev Magnetic field. More...
 

Detailed Description

Function Documentation

◆ createIpol()

static dg::geo::CylindricalFunctorsLvl1 dg::geo::solovev::createIpol ( const Parameters gp,
const CylindricalFunctorsLvl1 psip 
)
inlinestatic

◆ createModifiedSolovevField()

static dg::geo::TokamakMagneticField dg::geo::createModifiedSolovevField ( dg::geo::solovev::Parameters  gp,
double  psi0,
double  alpha,
double  sign = -1 
)
inlinestatic

DEPRECATED Create a modified Solovev Magnetic field.

Based on dg::geo::mod::Psip(gp) and dg::geo::solovev::Ipol(gp) We modify psi above a certain value to a constant using the dg::IPolynomialHeaviside function (an approximation to the integrated Heaviside function with width alpha), i.e. we replace psi with IPolynomialHeaviside(psi). This subsequently modifies all derivatives of psi and the poloidal current.

Parameters
gpSolovev parameters
psi0boundary value where psi is modified to a constant psi0
alpharadius of the transition region where the modification acts (smaller is quicker)
signdetermines which side of Psi to dampen (negative or positive, forwarded to dg::IPolynomialHeaviside)
Returns
A magnetic field object

◆ createPsip()

static dg::geo::CylindricalFunctorsLvl2 dg::geo::solovev::createPsip ( const Parameters gp)
inlinestatic

◆ createSolovevField()

static dg::geo::TokamakMagneticField dg::geo::createSolovevField ( dg::geo::solovev::Parameters  gp)
inlinestatic

Create a Solovev Magnetic field.

Based on dg::geo::solovev::Psip(gp) and dg::geo::solovev::Ipol(gp)

Parameters
gpSolovev parameters
Returns
A magnetic field object