Code covered by the BSD License  

Highlights from
2D FDTD code with TF/SF interface and UPML absorbing borders

4.8

4.8 | 8 ratings Rate this file 109 Downloads (last 30 days) File Size: 4.78 KB File ID: #41518
image thumbnail

2D FDTD code with TF/SF interface and UPML absorbing borders

by

 

29 Apr 2013 (Updated )

Simple example implements FDTD + UPML + Total Field/Scattered Field interface

| Watch this File

File Information
Description

The example contains:
1. 2D FDTD algorithm for simultaneously TE and TM modes calculation,
2. Uniaxial PML absorbing border conditions,
3. Total Field/Scattered field (TF/SF) interface for plane EM-waves scattering problems investigations.

Works well for free-form scatterers with constant permittivities, permeabilities and conductivities. Number of materials isn't limited.
For more details see Allen Taflove's "bible".

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
14 Feb 2014 jpadam

Thanks for the correction of the TE mode, everything works fine now !

05 Feb 2014 Vasily Kozhevnikov

Yes, L in [meters].
UPML FDTD for TE mode needs three Index matrixes due to the fact that in FDTD Ex, Ey and Hz have different space grids. You may apply single Index, but it'll cause distortions at low space resolution.
"My" implementation based on original Gedney's work http://dx.doi.org/10.1109/8.546249

05 Feb 2014 arnold

great implementation, seems to work well.

L is in meters too, I guess.
I don't get why there are three indices, why should material 2 not be congruent in space for all three, doesn't make sense in my head.

Maybe it'd make sense to add the ability to give complex refractive index, many users of FDTD do optics only and might not be physicists :)

....oh and there is no paper to cite your implementation, so I can give it to my students, is there?

29 Jan 2014 Alexey Borisov  
05 Dec 2013 jpadam

Really nice and well written script. Ready to study the EM scattering of 2D structures.

However, I think there is a problem in the TE mode. I simulated a cylinder (just removed "&& (L(1)-I*dx<=J*dy", line 63) and observed that the Hz pattern isn't quite symmetric...

05 Dec 2013 jpadam  
05 Dec 2013 jpadam  
03 Sep 2013 Ulrich

Great, thanks!

29 Jul 2013 Aleksey  
20 Jul 2013 Aleksey  
Updates
29 Jan 2014

TE mode corrected (grid collocation)

Contact us