|
||||
|
![]() ![]() ![]() I - Laurie - am basically an undergrad (or I was when I wrote this) who was mistakenly given access to a workstation. Though I didn't know a whole lot about electromagnetics or programming, I thought I could write an FDTD engine. But I was quickly halted by the initial hurdles of where to start and what was strictly necessary to get even the simplest simulation running. That ToyFDTD exists today has a lot to do with the fact that I'm surrounded by brainiacs (like Paul and Matt). Paul and I initially wrote the heart of this code in a series of attempts by Paul to teach me basic concepts of FDTD and computational electromagnetics. Once launched, I was able to tackle more advanced problems like working on optical waveguide studies. So I wrote this overcommented code for anyone who'd like to play with FDTD but isn't surrounded by gurus. ToyFDTD is published in the sincere belief that if I can do this, anybody can. FDTD for Everyone!!! ![]() ![]() The code for the following simulations differed only by the number assigned to the global constant FREQUENCY at the beginning of the ToyFDTD1 code. What the colors mean: In each movie/image the entire simulation region is highlighted with a box. Red/Yellow indicates positive values, with yellow representing the greatest intensities and red representing values near zero. Blue/Green indicates negative, green the greatest intensities and blue values near zero. The most negative value is mapped to yellow, so a yellow spot in the middle of green represents the most negative point. |
|
||||||||||
|
||||||||||
|
||||||||||
View ToyFDTD1-1.03 C code
|
||||||||||
![]() |
||||||||||
|
||||||||||
![]() Max analyzed some differences between how C and F90 handle floating point assignments; here's his writeup. Have fun with the code, but keep in mind that none of us are Fortran hackers and none of us get enough sleep. ;) |
||||||||||
![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
![]() |
||||||||||
The image that forms the background of the logo is from the simulation run by ToyFDTD1 viewed using AnimaBob. Thank you to J-D Harrington for designing the cool logo and for setting up all the movies on this page in mpeg format. |
||||||||||