fdtdx.unfold_fields#
- fdtdx.unfold_fields(field, symmetry, field_type)[source]#
Reconstruct a full-domain
(3, Nx, Ny, Nz)field array from the reduced field.Mirrors the field across each symmetric axis with the correct per-component parity and concatenates the mirror image in front of the kept half, so the symmetry plane ends up at the center of the reconstructed array.
- Parameters:
field (jax.Array) – Reduced field, shape
(3, Nx, Ny, Nz)(component axis first).symmetry (tuple[int, int, int]) – Per-axis symmetry
(x, y, z); see module docstring.field_type (Literal["E", "H"]) – Whether
fieldis the electric or magnetic field.
- Returns:
Full-domain field; each symmetric axis is doubled in size.
- Return type:
jax.Array