pyrokinetics.gk_code.gk_output.Fields#
- class pyrokinetics.gk_code.gk_output.Fields(phi=None, apar=None, bpar=None, dims=('theta', 'kx', 'ky', 't'))[source]#
Bases:
GKOutputArgsUtility dataclass type used to pass field data to
GKOutput.- __init__(phi=None, apar=None, bpar=None, dims=('theta', 'kx', 'ky', 't'))#
Methods
__init__([phi, apar, bpar, dims])items()Dict-like items iteration
units(name, c)Return units associated with each field for a given convention
values()Dict-like values iteration
with_units(c)Apply units to each quantity in turn and return a new
Coords.Attributes
Parallel component of the magnetic vector potential.
Parallel component of the magnetic flux density.
coordsTuple containing the names of each supplied field (those that aren't
None).The dimensionality of the fields.
namesNames of all quantities held by this dataclass
the electrostatic potential.
shapeShape of quantities.
- apar: Optional[ArrayLike] = None#
Parallel component of the magnetic vector potential. Units of
[bref * rhoref**2 / lref].- Type:
\(A_\parallel\)
- bpar: Optional[ArrayLike] = None#
Parallel component of the magnetic flux density. Units of
[bref * rhoref / lref].- Type:
\(B_\parallel\)
- dims: dataclasses.InitVar[Tuple[str, ...]] = ('theta', 'kx', 'ky', 't')#
The dimensionality of the fields. Each field should have the same number of dimensions.
- phi: Optional[ArrayLike] = None#
the electrostatic potential. Units of
[tref * rhoref / (qref * lref)]- Type:
\(\phi\)