As part of MACH Acoustics’ open window research, they wanted a FDTD model to visualise sound waves moving through various window opening scenarios. I created a FDTD function, that would create an impulse wave at a specified position then calculate discrete pressure points across a defined grid size and time step. Geometry (boundary conditions) could be loaded loaded into the function using scripts for different objects (opening, top/bottom swing window, baffle, etc), video saved and pressure, mic, time step data saved for repeat plotting (the solver took a few minutes to run so being able to plot existing data saved time). There is no currently no absorption so the sound does not decay, reflecting 100%. For short periods however this does not hinder the visualisation too drastically.

The videos below show it in action.
Opening with internal baffle plotted in isometric using surf
Opening with internal baffle plotted in isometric using surf
3 replies on “MATLAB Finite Difference Time Domain Acoustic Modelling”
hi John.I am doing research about the acoustic wave using FDTD using matlab..can i get some information about the coding or some instruction to make the simulation?
Hi Hidayat. I’m afraid that this work was done for MACH Acoustics so I can’t really share the code. A good starting point is this FDTD script on the Mathworks File Exchange however: http://www.mathworks.com/matlabcentral/fileexchange/21000-tiny-fdtd-v1-0
Hope this helps, any questions you can ask me.
John.
Thank you!! Really appreciate it..