0% found this document useful (0 votes)
80 views2 pages

Heat Eqn PDF

The document solves the one dimensional heat equation using NDSolve and plots the numerical solution. It solves the equation in 1D with boundary and initial conditions specified. It also solves the heat equation in 2D and plots the numerical solution.

Uploaded by

jagdish002
Copyright
© Attribution Non-Commercial (BY-NC)
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)
80 views2 pages

Heat Eqn PDF

The document solves the one dimensional heat equation using NDSolve and plots the numerical solution. It solves the equation in 1D with boundary and initial conditions specified. It also solves the heat equation in 2D and plots the numerical solution.

Uploaded by

jagdish002
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 2

one dimentional heat equatin

NDSolve@8D@u@t, xD, tD == D@u@t, xD, x, xD, u@0, xD == 0, u@t, 0D == Sin@tD, u@t, 5D == 0<,
u, 8t, 0, 10<, 8x, 0, 5<D

88u InterpolatingFunction@880., 10.<, 80., 5.<<, <>D<<

Plot3D@Evaluate@u@t, xD . %D, 8t, 0, 10<, 8x, 0, 5<, PlotRange AllD


4

0
1.0
0.5
0.0
-0.5
-1.0
0

10

NDSolve@8t u@t, xD == x,x u@t, xD, u@0, xD 0, u@t, 0D Sin@tD, u@t, 5D 0<,
u, 8t, 0, 10<, 8x, 0, 5<D

88u InterpolatingFunction@880., 10.<, 80., 5.<<, <>D<<

heat eqn..nb

Plot3D@Evaluate@u@t, xD . %D, 8t, 0, 10<, 8x, 0, 5<, PlotRange AllD

1.0
0.5
0.0
4

-0.5
-1.0
0
2
5

10

NDSolve@8D@u@x, tD, 8x, 2<D - D@u@x, tD, 8t, 2<D 0, u@x, 0D Sin@xD,
D@u@x, tD, 8t, 1<D 0, u@x, 0D 0, u@0, tD 0<, u, 8x, 0, 5<, 8t, 0, 4<D

NDSolve::overdet : There are fewer dependent variables, 8u@x, tD<, than equations, so the system is overdetermined.
NDSolveA9- uH0,2L @x, tD + uH2,0L @x, tD 0, u@x, 0D Sin@xD,

uH0,1L @x, tD 0, u@x, 0D 0, u@0, tD 0=, u, 8x, 0, 5<, 8t, 0, 4<E

You might also like