Skip to main content

Module fdtd

Module fdtd 

Source
Expand description

Finite-difference time-domain (FDTD) solvers on Yee grids.

  • Fdtd1D: E_z, H_y along x with per-cell permittivity, permeability and conductivity, and first-order Mur absorbing ends (exact at the magic time step, Courant number 1).
  • FdtdTmz: the 2D transverse-magnetic mode (E_z, H_x, H_y) with a graded Berenger split-field perfectly matched layer around the domain, per-cell permittivity and perfect electric conductors.

Fields use the normalised magnetic field H̃ = η₀ H so E and H̃ share units, and the time step is Δt = S Δ / c for Courant number S (S ≤ 1 in 1D, S ≤ 1/√2 in 2D).

See the book entry The finite-difference time-domain method.

Structs§

Fdtd1D
A one-dimensional FDTD grid.
FdtdTmz
A two-dimensional TMz FDTD grid with a perfectly matched layer.

Functions§

gaussian_pulse
A Gaussian pulse exp(−((n − delay)/width)²) in time steps.