fdtdx.compute_pole_coefficients_tensor#
- fdtdx.compute_pole_coefficients_tensor(poles, dt)[source]#
Compute ADE recurrence coefficients with full 3x3 coupling tensors.
Generalizes
compute_pole_coefficients_per_axis()to oriented poles: the recurrence coefficientsc1/c2stay per-axis (uniform for an oriented pole, whoseomega_0/gammaare scalars), while the field couplingc3becomes a row-major 3x3 tensor per pole —(K dt^2 / D) u u^Tfor a pole oriented alongu, diagonal for per-axis and isotropic poles.- Parameters:
poles (
tuple[Pole,...]) – Tuple of poles (may be empty). Oriented poles must have a non-negative couplingK(passivity of theK u u^Ttensor).dt (
float) – Simulation time step (seconds).
- Returns:
c1,c2of shape(len(poles), 3)andc3of shape(len(poles), 9).- Return type:
Three
numpyarrays