freegs.jtor.Profile#

class freegs.jtor.Profile[source]#

Bases: ABC

Base class from which profiles classes can inherit

This provides two methods:

pressure(psinorm) and fpol(psinorm)

which assume that the following methods are available:

pprime(psinorm), ffprime(psinorm), fvac()

__init__()#

Methods

Jtor(R, Z, psi[, psi_bndry])

Return a numpy array of toroidal current density [J/m^2]

__init__()

ffprime(psinorm)

Return ff' at the given normalised psi

fpol(psinorm[, out])

Return f as a function of normalised psi

fvac()

Return f = R*Bt in vacuum

pprime(psinorm)

Return p' at the given normalised psi

pressure(psinorm[, out])

Return p as a function of normalised psi by integrating pprime

abstract Jtor(R, Z, psi, psi_bndry=None)[source]#

Return a numpy array of toroidal current density [J/m^2]

Return type:

ndarray

abstract ffprime(psinorm)[source]#

Return ff’ at the given normalised psi

Return type:

float

fpol(psinorm, out=None)[source]#

Return f as a function of normalised psi

abstract fvac()[source]#

Return f = R*Bt in vacuum

Return type:

float

abstract pprime(psinorm)[source]#

Return p’ at the given normalised psi

Return type:

float

pressure(psinorm, out=None)[source]#

Return p as a function of normalised psi by integrating pprime