fdtdx.normalize_by_energy#
- fdtdx.normalize_by_energy(E, H, inv_permittivity, inv_permeability)[source]#
Normalizes electromagnetic fields by their total energy.
- 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)
inv_permittivity (jax.Array | float) – Inverse of the electric permittivity array
inv_permeability (jax.Array | float) – Inverse of the magnetic permeability array
- Returns:
Tuple of (normalized E field, normalized H field)
- Return type:
tuple[jax.Array, jax.Array]