fdtdx.compute_pole_coefficients

fdtdx.compute_pole_coefficients#

fdtdx.compute_pole_coefficients(poles, dt)[source]#

Compute the discrete-time ADE recurrence coefficients of isotropic poles.

Scalar-per-pole variant of compute_pole_coefficients_per_axis() (see there for the coefficient definitions). Raises ValueError when any pole has per-axis parameters — use the per-axis function for those.

Parameters:
  • poles (tuple[Pole, ...]) – Tuple of isotropic poles (may be empty).

  • dt (float) – Simulation time step (seconds).

Return type:

tuple[ndarray, ndarray, ndarray, ndarray]

Returns:

Four numpy arrays of shape (len(poles),) with c1, c2, c3, c4. For an empty pole tuple, returns four empty arrays.