Skip to main content

greens_function_2d

Function greens_function_2d 

Source
pub fn greens_function_2d(r: f64, k: f64) -> Complex64
Expand description

2D Helmholtz Green’s function G = (i/4) H_0^(1)(kr)

Uses the Hankel function of the first kind.

§Arguments

  • r - Distance |x - y|
  • k - Wave number