Sie sind auf Seite 1von 19

S. Mandayam/ EEMAG-1/ECE Dept.

/Rowan University

Engineering Electromagnetics 1
0909.301.01

Fall 2004 INTODUCTION TO MATLAB PDE TOOLBOX September 22, 2004 Shreekanth Mandayam
ECE Department Rowan University
http://engineering.rowan.edu/~shreek/fall04/eemag1/lectures/pdetoolbox.ppt

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:
No Surface Charge

V=10

Laplaces Equation

V=0

V =0
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 2

Select Electrostatics Application

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 3

The Draw Menu

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 4

Create Rectangle

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 5

The Boundary Menu

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 6

Display Options

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 7

Select Boundary 4

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 8

Specify Boundary Condition

Steps 9 - 10 Select Boundary 1 and specify condition

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Steps 11 - 14 conditions

Specify remaining boundary

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 15

The PDE Mode

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 16

PDE Menu

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 17

Specify PDE parameters

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

PDE Solution: Voltage Calculated

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 18

The Plot Menu

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Step 19

Specify plotting parameters

S. Mandayam/ EEMAG-1/ECE Dept./Rowan University

Solution: Electric Field Lines and Potential Contours

Das könnte Ihnen auch gefallen