blah1
Newbie level 5
Hi everyone,
I've read about the FDTD quite a bit, both through resources I found on this board and in the local library. I have implemented a 1D FDTD algorithm in C, with a Gaussian pulse as the excitation. The code is posted below. If on line 97 i set currentTime == 0, I get the initial pulse as expected. However, as soon as I try to take a snapshot of the pulse further down the timeline, say at currentTime == 50, I can see that it is going terribly unstable, tending towards infinity.
I think my problem is that I am not introducing the source pulse correctly, but for the life of me can not figure out why.
Any clues to help me out?
Thanks!
I've read about the FDTD quite a bit, both through resources I found on this board and in the local library. I have implemented a 1D FDTD algorithm in C, with a Gaussian pulse as the excitation. The code is posted below. If on line 97 i set currentTime == 0, I get the initial pulse as expected. However, as soon as I try to take a snapshot of the pulse further down the timeline, say at currentTime == 50, I can see that it is going terribly unstable, tending towards infinity.
I think my problem is that I am not introducing the source pulse correctly, but for the life of me can not figure out why.
Any clues to help me out?
Thanks!