fdtdx.normalize_by_poynting_flux

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 axis is one.

Parameters:
  • E (Array) – Electric field array with component axis first.

  • H (Array) – Magnetic field array with component axis first.

  • axis (int) – Physical propagation axis whose Poynting component is integrated.

  • area_weights (Array | None) – 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.

Return type:

tuple[Array, Array]