0% found this document useful (0 votes)
127 views33 pages

PDE With Matlab

This document discusses solving partial differential equations (PDEs) using the MATLAB PDE toolbox. It provides an overview of the toolbox's capabilities for modeling PDEs that describe various physical phenomena. The key steps outlined are formulating the problem by defining geometry, boundary conditions, PDE coefficients, and initial conditions before solving using finite element methods. Common PDE types like elliptic, parabolic, and hyperbolic equations can be solved.

Uploaded by

mobin1978
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views33 pages

PDE With Matlab

This document discusses solving partial differential equations (PDEs) using the MATLAB PDE toolbox. It provides an overview of the toolbox's capabilities for modeling PDEs that describe various physical phenomena. The key steps outlined are formulating the problem by defining geometry, boundary conditions, PDE coefficients, and initial conditions before solving using finite element methods. Common PDE types like elliptic, parabolic, and hyperbolic equations can be solved.

Uploaded by

mobin1978
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

Mat

M tlab
b
(PD
)( E

) (PDE Matlab
:

PDE Matlab
IBVP . (Finite
) ElementMethod .
) PDE
( . Matlab :
>>pdetool
PDE . :

) (PDE Matlab
:


PDE .

.
:
GUI CSG PDE PDE MATLAB FiniteElementsMethod
:
) (drawmode
) (boundryconditionmode
(PDEmode) PDE
(meshmode) FEM
(solvemode) PDE
PDE
PDE ) (elliptic .


. f,a,c u c .
2*2.
3

) (PDE Matlab
:

.
.

PDE f,d,a,c .
PDE :
.

f,a,c u . :

u . )(:

):(GenetalizedNeumann
.

n r,h,q,g ) .
r,g (. r,h,q,g u
PDE .
:

) (PDE Matlab
:

.
.

PDE
GUI .

. quitecomplex

.
Matlab pdetool start Toolbox
PartialDifferentialEquation PDEToolGUI .
GUI :

) (PDE Matlab
:

Grid option/grid . snap options .


. GUI .
. CGSModel
. . R1 C1 . ...
. copy,cut,clear,delete .

shift .
(C1+R1+R2+E1) .
(R1+C1+R2)E1
CSG MFile File SaveAs .
BoundryMode . Boundry
Mode Boundry .

) (PDE Matlab
:

Doubleclick Boundry
Condition . Matlab
. 5

BoundryCondition Neumann 5 g
. Neumann q . OK
.
.

) (PDE Matlab
:

PDE PDESpecification PDE


.

f=10.0

a=0 c=1.0 .

mesh Mesh>InitailizeMesh
. RefineMesh Mesh
.

) (PDE Matlab
:

. solve SolvePDE .
. .

.
PlotSelection Parameters Plot .
plot
.

) (PDE Matlab
:

)) abs(grad(u colour Height


.

10

) (PDE Matlab
:


. Application
Option .

:
) (GenericScalar






...

11

) (PDE Matlab
:

PDE
. Parameters
PDE .

k
q
h

) T(x,y,z .
:


4 0.2 . GUI
pdetool . 0.2*4
options>axislimits .

12

) (PDE Matlab
:

Options Grid Snap . 4*0.2


:

13

) (PDE Matlab
:

Boundary>BoundaryMode :

14

) (PDE Matlab
:

Neumann
) (g=0 .

(g=10) 10 :

15

) (PDE Matlab
:

Mesh :

HeatTransfer Options>Application .

16

) (PDE Matlab
:

PDE PDESpecification .
h .

solve SolvePDE .

. plot Parameters
Close Plot .

17

) (PDE Matlab
:

Property ) (heatflux
.

18

) (PDE Matlab
:



45 . 10
2 4 2 1 .
0.1 .

19

) (PDE Matlab
:

HeatTransfer Options>Application . Options


Axislimits ] [0.53.5 . 3
Draw>Polygon . .

20

) (PDE Matlab
:

21

) (PDE Matlab
:

22

) (PDE Matlab
:

23

) (PDE Matlab
:

24

) (PDE Matlab
:

25

) (PDE Matlab
:

26

) (PDE Matlab
:

) (
v u .
v u ) v=grad(u .
div(v)=0 . div(grad(u))=0 .
Options Grid Snaps .
Options Axeslimits :

Draw Polygon
.

27

) (PDE Matlab
:

Options AxesEqual . Draw


) Ellipse/circle(centered :

setformula ) ((P1+C1)C2
Enter :

Boundary BoundaryMode
:

28

) (PDE Matlab
:

Neumann Dirichlet
.
r

Neumann

Dirichlet

Neumann

Neumann

Neumann

Neumann

10*y

Neumann

29

) (PDE Matlab
:

:7

PDE PDESpecification
div(y*grad(u))=0 . y
x .

Mesh MeshMode RefineMesh


. Solve SolvePDE .

30

) (PDE Matlab
:

u
u .
22
.

. Plot Parameters
.

31

) (PDE Matlab
:

Plot .

.
. contour
Plot Parameters .
32

) (PDE Matlab
:

Plot :

: u Matlab . solve
ExportSolution u Matlab .
Matlab Commandwindow :
>>u
u .
33

You might also like