fdtdx.normalize_by_poynting_flux#
- fdtdx.normalize_by_poynting_flux(E, H, axis, area_weights=None)[source]#
Normalize fields so the integrated Poynting flux along
axisis one.- Parameters:
E (jax.Array) – Electric field array with component axis first.
H (jax.Array) – Magnetic field array with component axis first.
axis (int) – Physical propagation axis whose Poynting component is integrated.
area_weights (jax.Array | None, optional) – Optional detector-plane area weights broadcastable to
E[axis]. Uniform-grid callers may omit this for the historical raw-sum normalization; non-uniform callers should provide weights so refinement alone does not change the normalization.
- Returns:
Tuple of (normalized E field, normalized H field)
- Return type:
tuple[jax.Array, jax.Array]