Skip to content

Commit

Permalink
All changes to support varying angle scattering for a halfspace
Browse files Browse the repository at this point in the history
  • Loading branch information
pivaps committed Mar 15, 2024
1 parent 96e38f4 commit 60f9cd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/effective_waves/wavemode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ end
function WaveMode::T, wavenumber::Complex{T}, psource::PlaneSource{T,Dim,1}, material::Material{Halfspace{T,Dim}};
tol::T = 1e-6, kws...) where {T,Dim}

direction = transmission_direction(wavenumber, (ω / material.microstructure.medium.c) * psource.direction, material.shape.normal)
direction = transmission_direction(wavenumber, (ω / psource.medium.c) * psource.direction, material.shape.normal)
eigvectors = eigenvectors(ω, wavenumber, psource, material; direction_eff = direction, kws...)

α = solve_boundary_condition(ω, wavenumber, eigvectors, psource, material; kws...)
Expand Down
2 changes: 0 additions & 2 deletions src/wave_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ struct EffectiveRegularWaveMode{T<:AbstractFloat,P<:PhysicalMedium,S<:AbstractS
if typeof(medium_material) != typeof(medium_source)
if (typeof(material.shape) <: Sphere{T, 2} where T) && (typeof(source.medium) <: Acoustic{T, 2} where T)
S = TranslationSymmetry{3, Float64}([0.0, 0.0, 1.0])
else
throw(DimensionMismatch("dimensions of acoustic medium of material $medium_material and source $medium_source do not match."))
end
else
S = Symmetry(source,material)
Expand Down

0 comments on commit 60f9cd1

Please sign in to comment.