JuliaWaveScattering / MultipleScattering.jl

A Julia library for simulating, processing, and plotting multiple scattering of waves.
Other
45 stars 12 forks source link

Allow the amplitude of a source to be a function #25

Closed arturgower closed 5 years ago

arturgower commented 5 years ago

At the moment, the sources implement in physics/acoustics/source.jl take the follow arguments: point_source(medium, source_position, amplitude), where amplitude is a constant.

Allowing amplitude to be a function of frequency ω has many uses: shift the source in time, allow for one source to use, say, a Gaussian filter, while another source can still use a sinc filter. There are almost no drawbacks to this generalisation, so I will implement.