Skip to main content

Module field_container

Module field_container 

Source
Expand description

Field containers: scalar or vector samples on a Domain, harmonic or time-varying, tagged with the physical quantity they hold.

  • HarmonicField: complex peak phasors at one frequency, with a TimeConvention. Values are stored as a (samples, components) array, one component for scalar fields and three (in the field’s PolarizationBasis) for vector fields.
  • TimeField: real samples on a uniform TimeAxis, stored as (steps, samples, components). Vector time fields use linear bases only (circular components are complex by nature).

Every sample’s position comes from the domain, so a field never stores positions itself. Domains are shared through Arc, which makes fields cheap to derive from one another.

See the book entry Fields on grids.

Structs§

HarmonicField
Complex peak phasors at one frequency on a domain.
TimeAxis
A uniform time axis start + k·step, k = 0..count.
TimeField
Real field samples on a domain over a uniform time axis.

Enums§

FieldQuantity
The physical quantity a field holds, with its SI units.
Rank
Scalar, or vector with components in a polarization basis.