2026-04-18 15:05:35 -07:00
|
|
|
# fdtd
|
|
|
|
|
|
|
|
|
|
::: meanas.fdtd
|
|
|
|
|
|
|
|
|
|
## Core update and analysis helpers
|
|
|
|
|
|
|
|
|
|
::: meanas.fdtd.base
|
|
|
|
|
|
|
|
|
|
::: meanas.fdtd.pml
|
|
|
|
|
|
|
|
|
|
::: meanas.fdtd.boundaries
|
|
|
|
|
|
|
|
|
|
::: meanas.fdtd.energy
|
|
|
|
|
|
|
|
|
|
::: meanas.fdtd.phasor
|
2026-10-18 23:07:53 -07:00
|
|
|
|
|
|
|
|
CPML derivatives use electric widths for forward differences and magnetic
|
|
|
|
|
widths for backward differences. `cpml_params(..., dx=1.0)` specifies the uniform
|
|
|
|
|
physical cell width normal to a face; arbitrary nonuniform PML grading is not
|
|
|
|
|
implemented by this constructor. Scale the timestep consistently with the grid.
|
2026-10-18 23:10:36 -07:00
|
|
|
|
|
|
|
|
`ln_R_per_layer` must be finite and strictly negative. Zero attenuation raises
|
|
|
|
|
`ValueError`; disable individual CPML faces with `None` in the parameter table
|
|
|
|
|
passed to `updates_with_cpml`.
|