S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...
Transcript of S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...
![Page 1: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/1.jpg)
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
![Page 2: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/2.jpg)
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.
![Page 3: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/3.jpg)
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
![Page 4: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/4.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 1Step 1• Start the toolbox by typing in
>> pdetoolat the Matlab prompt
![Page 5: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/5.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 2Step 2 Select Electrostatics ApplicationSelect Electrostatics Application
![Page 6: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/6.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 3Step 3 The Draw MenuThe Draw Menu
![Page 7: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/7.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 4Step 4 Create RectangleCreate Rectangle
![Page 8: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/8.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 5Step 5 The Boundary MenuThe Boundary Menu
![Page 9: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/9.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 6Step 6 Display OptionsDisplay Options
![Page 10: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/10.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 7Step 7 Select Boundary 4Select Boundary 4
![Page 11: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/11.jpg)
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
![Page 12: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/12.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Steps 11 - 14Steps 11 - 14 Specify remaining boundarySpecify remaining boundaryconditionsconditions
![Page 13: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/13.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 15Step 15 The PDE ModeThe PDE Mode
![Page 14: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/14.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 16Step 16 PDE MenuPDE Menu
![Page 15: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/15.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 17Step 17 Specify PDE parametersSpecify PDE parameters
![Page 16: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/16.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
PDE Solution: Voltage CalculatedPDE Solution: Voltage Calculated
![Page 17: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/17.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 18Step 18 The Plot MenuThe Plot Menu
![Page 18: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/18.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Step 19Step 19 Specify plotting parametersSpecify plotting parameters
![Page 19: S. Mandayam/ EEMAG-1/ECE Dept./Rowan University ...](https://reader031.fdocuments.us/reader031/viewer/2022012500/6179a646e058b45d3739ae70/html5/thumbnails/19.jpg)
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University
Solution: Electric Field Lines and PotentialSolution: Electric Field Lines and PotentialContoursContours