postgkyl.diagnostics.mom.plasma.magB¶
- postgkyl.diagnostics.mom.plasma.magB(field, *, inplace=False, tag=None, label=None)¶
Magnitude of the magnetic field
|B|.- Parameters:
field – EM field data (components 3:6 are
Bx, By, Bz); must be NumPy-backed.inplace – mutate and return
fieldinstead of a new dataset.tag – optional tag for the returned dataset.
label – optional label for the returned dataset.
- Returns:
A single-component dataset of
|B|.- Raises:
ValueError – if
fieldis modal DG coefficients.