freegs.jtor.Profile#
- class freegs.jtor.Profile[source]#
Bases:
ABCBase 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