freegs.jtor.ProfilesPprimeFfprime#

class freegs.jtor.ProfilesPprimeFfprime(pprime_func, ffprime_func, fvac, p_func=None, f_func=None)[source]#

Bases: Profile

Specified profile functions p’(psi), ff’(psi)

Jtor = R*p’ + ff’/(R*mu0)

__init__(pprime_func, ffprime_func, fvac, p_func=None, f_func=None)[source]#

pprime_func(psi_norm) - A function which returns dp/dpsi at given normalised flux ffprime_func(psi_norm) - A function which returns f*df/dpsi at given normalised flux (f = R*Bt)

fvac - Vacuum f = R*Bt

Optionally, the pres

Methods

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

Calculate toroidal plasma current

__init__(pprime_func, ffprime_func, fvac[, ...])

pprime_func(psi_norm) - A function which returns dp/dpsi at given normalised flux ffprime_func(psi_norm) - A function which returns f*df/dpsi at given normalised flux (f = R*Bt)

ffprime(psinorm)

Return ff' at the given normalised psi

fpol(psinorm[, out])

Return f=R*Bt at given value(s) of normalised psi.

fvac()

Return f = R*Bt in vacuum

pprime(psinorm)

Return p' at the given normalised psi

pressure(psinorm[, out])

Return pressure [Pa] at given value(s) of normalised psi.

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

Calculate toroidal plasma current

Jtor = R*p’ + ff’/(R*mu0)

ffprime(psinorm)[source]#

Return ff’ at the given normalised psi

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

Return f=R*Bt at given value(s) of normalised psi.

fvac()[source]#

Return f = R*Bt in vacuum

pprime(psinorm)[source]#

Return p’ at the given normalised psi

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

Return pressure [Pa] at given value(s) of normalised psi.