Skip to main content

spectral_plane_wave_divergence

Function spectral_plane_wave_divergence 

pub fn spectral_plane_wave_divergence(
    k_vec: [f64; 3],
    a0: [f64; 3],
    r_m: [f64; 3],
    phase0_rad: f64,
) -> f64
Expand description

Exact spectral Fourier-mode divergence oracle for a real plane wave $\mathbf{A}(\mathbf{r}) = \mathbf{A}_0 \cos(\mathbf{k}\cdot\mathbf{r} + \phi_0)$.