Sunteți pe pagina 1din 4

HeatEquation-1.

nb 1

i
j y
z
j
j H0, z
z
j z
ut = uxx
j
j z
z
j
j H1, z
z
j z
=
j z
u tL 0
j z
k Hx, Hπ {
u tL = 0
u 0L = Sin xL

In[52]:= α = 1;

sol = NDSolve@8uH0,1L @x, tD uH2,0L @x, tD, u@x, 0D


u, 8x, 0, 1<, 8t, 0, .2<D
In[53]:= Sin@π xD, u@0, tD 0, u@1, tD 0<,

Out[53]= 88u → InterpolatingFunction@880., 1.<, 80., 0.2<<, <>D<<

In[57]:= pl = Plot3D@Evaluate@u@x, tD ê. sol@@1DDD, 8t, 0, .2<, 8x, 0, 1<D

0.75
1

0.5

0.25 0.75

0
0 0.5

0.05

0.1 0.25

0.15

0
0.2

Out[57]= SurfaceGraphics
HeatEquation-1.nb 2

In[56]:= Show@pl, AxesLabel → 8"x", "t", "z"<, PlotLabel −> "Heat Surface", Mesh → FalseD

Heat Surface

0.75
1
z
0.5

0.75
0.25

0
0 0.5
t
0.05

0.1 0.25

x
0.15

0
0.2

Out[56]= SurfaceGraphics
HeatEquation-1.nb 3

In[58]:= Show@pl, ViewPoint −> 82.221, 0.844, 2.409<D


0

0.05

0.1

0.15

0.2
1

0.75

0.5
5

0.25
25

0
0

0.25

0.5

0.75

Out[58]= SurfaceGraphics
HeatEquation-1.nb 4

Show@pl, AxesLabel → 8"x", "t", "z"<, PlotLabel −> "Heat Surface",


ViewPoint −> 82.221, 0.844, 2.409<, Shading → FalseD
In[59]:=

Heat Surface
0

0.05

x
0.1

0.15

0.2
1

0.75
z
0.5
5

0.25
25

0
0

0.25

0.5

t 0.75

Out[59]= SurfaceGraphics

S-ar putea să vă placă și