fdtdx.compute_integrated_power

fdtdx.compute_integrated_power#

fdtdx.compute_integrated_power(E, H, axis, area_weights=None)[source]#

Computes the integrated power (Poynting flux) across a transverse plane.

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]. Defaults to None.

Returns:

The absolute integrated power.

Return type:

jax.Array