C-fdtd
First vertion for Processing 2.x published on: Nov. Then, open and run "acoustic_2d_fdtd_processing2.pde" or "acoustic_2d_fdtd_processing3.pde" file. Prior to running this sketch, please setup Processing 2 or 3. Please see the "Stability Conditions" section below.
C FDTD CODE
You can also change the acoustic properties (wave speed etc.) by changing the parameters in the source code directly. You can easily change the model by preparing your own image files. This sketch has been tested with Processing 2.2.1 and 3.1.2 (64bit) both on Windows and OSX. Processing version (2-D Acoustic FDTD) Ī sketch (program) of 2-D Acoustic FDTD for Processing 2 & 3. This can be run on your HTML5-compatible web browsers (Blink, WebKit, Gecko, IE, and Spartan including smartphones). Pure JavaScript simulation of the 2-D Acoustic FDTD method. JavaScript version (2-D Acoustic FDTD) - Sound Propagation in Lena This script can be run on your HTML5 and WebGL-compatible web browsers (Blink, WebKit, Gecko, IE, and Spartan including recent smartphones). The 3-D rendering is based on the WebGL library three.js. JavaScript version (3-D Acoustic FDTD) - A Helium Balloon in the Air A realtime 3-D rendering of the 3-D Acoustic FDTD simulation written in JavaScript. These programs solve the equations of 3-D and 2-D Acoustic FDTD simulation. The codes below are truly physical simulation programs of sound wave propagation (The original data come from: Yoshiki NAGATANI et al., Ultrasonics 48 (2008) pp.607-612.) A pulse ultrasound at 1 MHz is transmitted from the bottom part of the field. The connecting network is solid (trabecular bone) and the remaining part around the bone is liquid (water). The model was prepared using X-ray CT images of an actual bone sample.
C FDTD MOVIE
This movie is an example of the 3-D Elastic FDTD simulation in a cancellous bone model. The followings are some examples and demonstrations of the FDTD method.Īn Example of 3-D Elastic FDTD simulation of Bone In addition to these parameters, the viscosity of the media can be considered in the Viscoelastic FDTD. In the Elastic FDTD mothod, normal stress and shear stress (vector values) in the elastic media are calculated instead of sound pressure. In the Acoustic FDTD mothod, particle velocity and sound pressure (scalar value) in the simulation field are calculated in sequence. For the purpose of an acoustic wave simulation, some types of FDTD method have been proposed: Acoustic FDTD, Elastic FDTD, and Viscoelastic FDTD etc.
The FDTD method is one of the simulation techniques for the investigation of the wave propagation in a given field, which can be 1-D, 2-D, or 3-D. FDTD stands for Finite- Difference Time- Domain method.