4.28571

4.3 | 7 ratings Rate this file 46 Downloads (last 30 days) File Size: 1.79 KB File ID: #21000
image thumbnail

Tiny FDTD v1.0

by Nick Clark

 

07 Aug 2008 (Updated 07 Aug 2008)

Minimal acoustics simulation in 1, 2 or 3D

| Watch this File

File Information
Description

This is a very minimal, acoustic, multidimensional FDTD simulation in under 25 lines of code. The FDTD calculations are actually performed using very few commands (the number of dimensions of your simulation +1). The source is a ‘hard source’ Gaussian pulse and there are no boundary conditions, or anything else to complicate the script as yet. This hopefully makes each process is very obvious. Pressure and Velocity field calculations are vectorized for efficiency and compact code. The output is animated over time.

This script is supplied ready to run. Just hit F5. The code is supplied in 2 dimensions, but, this can be changed to 1D or 3D with a couple of simple copy/paste and edits.

Enjoy! (email: nick@ihr.mrc.ac.uk)

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
09 Aug 2008 David Steckler

Excellent, awesome, Very good

11 Aug 2008 Damon McCartney  
06 Sep 2008 M Pi  
06 Sep 2008 m cha

v good. simple

18 Oct 2008 amit shelke

simple and good!!!can u give the reference plzz???

08 Dec 2008 John

Simple and effective!!!

21 Mar 2009 Rico Sympotein

Fantastic, makes FDTD very accessible. Easily modifiable source and other parameters. Thanks!

15 Jun 2009 Ravi

awesome keep it up!

04 Apr 2011 Nayyar Mehmood

very great job ...

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
audio processing Nick Clark 22 Oct 2008 10:13:43
video processing Nick Clark 22 Oct 2008 10:13:43
acoustics Nick Clark 22 Oct 2008 10:13:43
ray Nick Clark 22 Oct 2008 10:13:43
tracing Nick Clark 22 Oct 2008 10:13:43
fdtd Nick Clark 22 Oct 2008 10:13:43
room Nick Clark 22 Oct 2008 10:13:43
reverb Nick Clark 22 Oct 2008 10:13:43
sound Nick Clark 22 Oct 2008 10:13:43
2d Nick Clark 22 Oct 2008 10:13:43
graphics Nick Clark 22 Oct 2008 10:13:43
3d Nick Clark 22 Oct 2008 10:13:43
2d Cristina McIntire 07 Nov 2008 12:47:45
3d Cristina McIntire 07 Nov 2008 12:47:48
fdtd Patrick Moran 21 Dec 2008 16:38:42
fdtd Charles 13 Apr 2009 10:58:26
awesome keep it up Ravi 15 Jun 2009 17:08:22
acoustics Richard Primerano 09 Dec 2009 19:30:06
3d Martín Josemaría Vuelta Rojas 11 Jul 2011 16:31:54
3d Biswanath Saha 31 Oct 2011 05:29:51

Contact us at files@mathworks.com