fdtdx.compute_poynting_flux#
- fdtdx.compute_poynting_flux(E, H, axis=0)[source]#
Calculates the Poynting vector (energy flux) from E and H fields.
- Parameters:
E (jax.Array) – Electric field array with shape (3, nx, ny, nz)
H (jax.Array) – Magnetic field array with shape (3, nx, ny, nz)
axis (int, optional) – Axis for computing the poynting flux. Defaults to 0.
- Returns:
Poynting vector array with shape (3, nx, ny, nz) representing energy flux in each direction
- Return type:
jax.Array