|
|
| 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
|
|
|
| 11 Aug 2008 |
Damon McCartney
|
|
|
| 06 Sep 2008 |
M Pi
|
|
|
| 06 Sep 2008 |
m cha
|
|
|
| 18 Oct 2008 |
amit shelke
|
|
|
| 08 Dec 2008 |
John
|
|
|
| 21 Mar 2009 |
Rico Sympotein
|
|
|
| 15 Jun 2009 |
Ravi
|
|
|
| 04 Apr 2011 |
Nayyar Mehmood
|
|
|
|
Contact us at files@mathworks.com