pyrokinetics.gk_code.gk_output.Coords#
- class pyrokinetics.gk_code.gk_output.Coords(kx, ky, time, species, theta=None, mode=None, energy=None, pitch=None, field=None)[source]#
Bases:
GKOutputArgsUtility dataclass type used to pass coordinates to
GKOutput- Parameters:
- __init__(kx, ky, time, species, theta=None, mode=None, energy=None, pitch=None, field=None)#
- Parameters:
- Return type:
None
Methods
__init__(kx, ky, time, species[, theta, ...])items()Dict-like items iteration
units(name, c)Return the units for each quantity
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).1D grid of the energy in the simulation Units of [dimensionless]
List of fields.
TODO document
namesNames of all quantities held by this dataclass
1D grid of the pitch angle in the simulation Units of [dimensionless]
Shape of quantities.
1D grid of theta used in the simulation Units of [radians]
1D grid of radial wave-numbers used in the simulation Units of [rhoref ** -1]
1D grid of bi-normal wave-numbers used in the simulation Units of [rhoref ** -1]
1D grid of time of the simulation output Units of [lref / vref]
List of species names in the simulation
- energy: Optional[ArrayLike] = None#
1D grid of the energy in the simulation Units of [dimensionless]
- field: Optional[Iterable[str]] = None#
List of fields. Normally this information is obtained from the
Fieldsclass, but there are edge cases in which noFieldscan be supplied but a fields coordinate must be defined.
- kx: ArrayLike#
1D grid of radial wave-numbers used in the simulation Units of [rhoref ** -1]
- ky: ArrayLike#
1D grid of bi-normal wave-numbers used in the simulation Units of [rhoref ** -1]
- mode: Optional[ArrayLike] = None#
TODO document
- pitch: Optional[ArrayLike] = None#
1D grid of the pitch angle in the simulation Units of [dimensionless]
- property shape: NoReturn#
Shape of quantities. Raises error if all are None. Should be overridden in
Coords, where this function makes no sense.
- species: Iterable[str]#
List of species names in the simulation
- theta: Optional[ArrayLike] = None#
1D grid of theta used in the simulation Units of [radians]
- time: ArrayLike#
1D grid of time of the simulation output Units of [lref / vref]