pyrokinetics.gk_code.gk_output.Fluxes#
- class pyrokinetics.gk_code.gk_output.Fluxes(particle=None, heat=None, momentum=None, dims=('field', 'species', 'kx', 'ky', 't'))[source]#
Bases:
GKOutputArgsUtility dataclass type used to pass fluxes to
GKOutput.- __init__(particle=None, heat=None, momentum=None, dims=('field', 'species', 'kx', 'ky', 't'))#
Methods
__init__([particle, heat, momentum, dims])items()Dict-like items iteration
units(name, c)Return units associated with each flux 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
coordsTuple containing the names of each supplied field (those that aren't
None).The dimensionality of the fluxes.
Units of
[nref * vref * tref * (rhoref / lref)**2].units of
[nref * lref * tref * (rhoref / lref)**2].namesNames of all quantities held by this dataclass
Units of
[nref * vref * (rhoref / lref)**2].shapeShape of quantities.
- dims: dataclasses.InitVar[Tuple[str, ...]] = ('field', 'species', 'kx', 'ky', 't')#
The dimensionality of the fluxes. Each array should have the same dimensionality.
- heat: Optional[ArrayLike] = None#
Units of
[nref * vref * tref * (rhoref / lref)**2].
- momentum: Optional[ArrayLike] = None#
units of
[nref * lref * tref * (rhoref / lref)**2].
- particle: Optional[ArrayLike] = None#
Units of
[nref * vref * (rhoref / lref)**2].