View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
GUI for TE/TM electromagnetic plane waves propagation through multilayered structures

5.0 | 5 ratings Rate this file 81 Downloads (last 30 days) File Size: 283 KB File ID: #16724 Version: 1.8
image thumbnail

GUI for TE/TM electromagnetic plane waves propagation through multilayered structures



05 Oct 2007 (Updated )

GUI for the analysis of TE/TM E.M. plane waves propagation through multilayered structures

| Watch this File

File Information

This tool is a GUI for the analysis of the TE/TM plane waves propagation through structures composed by multiple layers with different electromagnetic characteristics.
The GUI provides graphical results as well as detailed calculations of the transmission line equivalent circuit model. Also double-negative materials are supported.
Take a look at the "Help.html" file included into the zip archive for a comprehensive description of the GUI features.
In case of problems and/or bugs, please do not hesitate to contact me. Send me an email also if you would like new features to be implemented.
Version 2.0 new features and bug fixing:
- possibility to input frequency and incidence angle also as vectors: in this case the GUI will iteratively calculate the EM field for each frequency and angle value
- parallel field calculation added (both y and z components)
- figures can be zoomed in and out and single pixel values can be inspected by moving the mouse on the plots
- power reflected by the whole media structure added (percentage of the power incident on the first interface)
- “Close all figures” button added
- bug fixed: use of the TM reflection coefficient in the calculation of reflected and transmitted fields

Version 2.1 new features and bug fixing:
- save the results produced by the GUI into a Matlab workspace (one workspace for each frequency and incidence angle value). See the HTML file attached to this script for the detailed description of the results that are saved to disk.
- all the quantities calculated in the TL model are now relative to the z direction and not the wave propagation direction.
- a bug relative to evanescent waves has been fixed.

Required Products Image Processing Toolbox
MATLAB release MATLAB 8.0 (R2012b)
MATLAB Search Path
Other requirements Developed and tested with Matlab release R2007a. It does not seem to run properly on previous Matlab versions.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
15 Dec 2016 Kazeem Yinusa

10 Feb 2016 olivier DI BELLA

Hi Lorenzo,

I am fond of your GUI !

I would like to know how can I simulate the TFSF formalism in a 3D code. More particularly, I would like to see the propagation of a plane wave in the TFSF thanks to a cutting plane. This is my project of master's degree and I am a beginner in FDTD !

Thanks a lot for your answer !

Best regards,

06 Jun 2013 Paul Kassebaum

19 Nov 2010 Mohammad

28 Jul 2010 Greg

Greg (view profile)

Lorenzo, thanks, looks like the right answer now!

28 Jul 2010 Lorenzo Luini

@Greg: The problem arises due to an error in the inputs. If you open the Help of the GUI, you will read for Electric Permittivity:

"Electric permittivity

...Complex values of the electric permittivity (indicating power losses associated to the material) are allowed (the imaginary part has to be negative, according to the temporal convention exp(j*omega*t))..."

This means that the right input in your case should be:
eps = [1 -100-100*j 1]

Comment only
27 Jul 2010 Greg

Greg (view profile)

Hi Lorenzo, Ive noticed what I believe is a mistake:

frequency = 3.23e13
eps = [1 -100+100i 1]
zcoor = [0 -1000E-9]

returns G_ = -1.05+.165i, abs(G_) = 1.066>1. Reflection must be less than 1, so how can this be?

Comment only
09 May 2010 Lorenzo Luini

@Jveer: by the way, just comment all the "impixelinfo" commands in the script to make the GUI work correctly: you won't be able to inspect single pixel values by moving the mouse on the plots, but the GUI will work correctly.

Comment only
08 May 2010 Lorenzo Luini

The bug is probably due to the use of an old Matlab version in which the "impixelinfo" command is not defined yet.

Comment only
07 May 2010 Jveer

Jveer (view profile)

interesting but has bugs:

??? Undefined function or variable 'impixelinfo'.

Error in ==> PlaneWaveGUI_v2_1>PlaneWave_MultLayer at 1191

Error in ==> PlaneWaveGUI_v2_1>PlaneWaveGUI_v2_1_OpeningFcn at 124

Error in ==> PlaneWaveGUI_v2_1>gui_mainfcn at 4534
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in ==> PlaneWaveGUI_v2_1 at 60
gui_mainfcn(gui_State, varargin{:});

Comment only
09 Apr 2010 1.2

See the "Description" frame.

10 Apr 2010 1.4

See the "Description" frame.

07 May 2010 1.6

See the "Description" frame.

12 Sep 2012 1.7

Updated to include an App file for R2012b

20 Nov 2014 1.8

Submission as a Toolbox

Contact us