S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Engineering Electromagnetics Fall 2004 Shreekanth Mandayam ECE Department Rowan University INTODUCTION TO MATLAB PDE TOOLBOX September 22, 2004
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University The PDE Toolbox The Matlab PDE toolbox provides a user-friendly graphical interface for solving 2-D partial differential equations of functions of space and time Such equations arise in electromagnetics (electrostatics, magnetostatics, quasi-statics), thermal diffusion, structural analysis, etc. The GUI allows the user to draw 2-D cross-sections of objects, specify sources and boundary conditions and compute 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 from Electrostatics The following slides show an example application using the Matlab PDE toolbox. Problem statement: V=10 V=0 Laplace’s Equation No Surface Charge
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 1 Start the toolbox by typing in >> pdetool at the Matlab prompt
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 2Select Electrostatics Application
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 3The Draw Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 4Create Rectangle
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 5The Boundary Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 6Display Options
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 7Select Boundary 4
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 8Specify Boundary Condition Steps Select Boundary 1 and specify condition
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Steps Specify remaining boundary conditions
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 15The PDE Mode
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 16PDE Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 17Specify PDE parameters
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University PDE Solution: Voltage Calculated
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 18The Plot Menu
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Step 19Specify plotting parameters
S. Mandayam/ EEMAG-1/ECE Dept./Rowan University Solution: Electric Field Lines and Potential Contours