Skip to content

Commit 01c667a

Browse files
committed
Updated polynomial solution for Yukawa
1 parent b256a92 commit 01c667a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/src/examples/cavity2d_scattering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ println("Number of quadrature points: ", length(Q))
5656
## Setup the integral operators
5757
op = Inti.Helmholtz(; dim = 2, k)
5858
S, D = Inti.single_double_layer(;
59-
op
59+
op,
6060
target = Q,
6161
source = Q,
6262
correction = (method = :none,),

src/vdim.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,14 @@ function polynomial_solution(op::Helmholtz, p::ElementaryPDESolutions.Polynomial
357357
return ElementaryPDESolutions.convert_coefs(P, Float64)
358358
end
359359

360+
function polynomial_solution(op::Yukawa, p::ElementaryPDESolutions.Polynomial)
361+
k = im*op.λ
362+
P = ElementaryPDESolutions.solve_helmholtz(p; k)
363+
return ElementaryPDESolutions.convert_coefs(P, Float64)
364+
end
365+
360366
function neumann_trace(
361-
::Union{Laplace,Helmholtz},
367+
::Union{Laplace,Helmholtz, Yukawa},
362368
P::ElementaryPDESolutions.Polynomial{N,T},
363369
) where {N,T}
364370
return _normal_derivative(P)

0 commit comments

Comments
 (0)