S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
EngineeringEngineeringElectromagnetics 1Electromagnetics 1
0909.301.010909.301.01 Fall 2004Fall 2004
Shreekanth MandayamECE DepartmentRowan University
http://engineering.rowan.edu/~shreek/fall04/eemag1/lectures/pdetoolbox.ppt
INTODUCTION TO MATLAB PDEINTODUCTION TO MATLAB PDETOOLBOXTOOLBOX
September 22, 2004September 22, 2004
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
The PDE ToolboxThe PDE Toolbox• The Matlab PDE toolbox provides a user-friendly graphical
interface for solving 2-D partial differential equations offunctions of space and time
• Such equations arise in electromagnetics (electrostatics,magnetostatics, quasi-statics), thermal diffusion, structuralanalysis, etc.
• The GUI allows the user to draw 2-D cross-sections ofobjects, specify sources and boundary conditions andcompute the variables (electromagnetic fields,temperatures, stresses, etc.).
• A numerical technique called the Finite Element Method(will not be discussed here) is used to solve the pdes.
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
An Example fromAn Example fromElectrostaticsElectrostatics
• The following slides show an example application using theMatlab PDE toolbox.
• Problem statement:
02
=! V
V=10 V=0Laplace’s Equation
No Surface Charge
No Surface Charge
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 1Step 1• Start the toolbox by typing in
>> pdetoolat the Matlab prompt
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 2Step 2 Select Electrostatics ApplicationSelect Electrostatics Application
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 3Step 3 The Draw MenuThe Draw Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 4Step 4 Create RectangleCreate Rectangle
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 5Step 5 The Boundary MenuThe Boundary Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 6Step 6 Display OptionsDisplay Options
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 7Step 7 Select Boundary 4Select Boundary 4
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 8Step 8 Specify Boundary ConditionSpecify Boundary Condition
Steps 9 - 10 Select Boundary 1 and specifySteps 9 - 10 Select Boundary 1 and specifyconditioncondition
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Steps 11 - 14Steps 11 - 14 Specify remaining boundarySpecify remaining boundaryconditionsconditions
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 15Step 15 The PDE ModeThe PDE Mode
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 16Step 16 PDE MenuPDE Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 17Step 17 Specify PDE parametersSpecify PDE parameters
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
PDE Solution: Voltage CalculatedPDE Solution: Voltage Calculated
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 18Step 18 The Plot MenuThe Plot Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 19Step 19 Specify plotting parametersSpecify plotting parameters
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Solution: Electric Field Lines and PotentialSolution: Electric Field Lines and PotentialContoursContours