u
t
u
rr
-1
r
u
r
u(r,0)f(r)
u(a,t)0, t≥0
Weknowthat,whereisthefirstpositiverootoftheBesselFunctionand.Nowwesolvetheproblemwiththemethodseparationofvariables.Nowwesolvetheproblemwiththemethodseparationofvariables.Let.Then,WedividebothsideswithThus,(t)(r)+(r)-λSowehavethefollowingtwoequationsItisSturmLiouvilleproblem,fromwhichwecanconcludetheweightfunctionis.WechangevariablesthenweobtainTheequationhasassolutiontheBesselfunction.Theboundaryconditionbecome,so(ka)0.ThatmeansmustbetherootoftheBesselfunctionwithzeroorder.·a, m1,2,....Now(t)+λW(t)0hasgeneralsolutionThenwehaveNowfromsuperpositionthegeneralsolutiontotheproblemwillbeandthecoefficientwillbe(),whereNowIamtryingtowritetheMathematicacode
f(r)(r)
J
0
x
01
x
01
av1
u(r)R(r)T(t)
R(r)(t)(r)T(t)+(r)T(t)
′
T
′′
R
-1
r
′
R
R(r)T(t)
′
T
T(t)
′′
R
R(r)
-1
r
′
R
R(r)
r·(r)+(r)+λ·rR(r)0, 0<r<1(1)
′′
R
′
R
wr
xk·r
x+bar+x0(2).
′′
R
′
R
R
(2)
barR(x)(kr)
J
0
J
0
u(a,t)0,t≥0
R(a)0
J
0
k·a
k
m
x
0m
′
W
W(t)(3)
c
1
-λ·t
e
W(t)
c
1
-·t
2
k
n
e
u(r,t)··(r)
∞
∑
n1
d
m
-·t
2
k
n
e
J
0
k
m
d
m
2r·f(r)·(r)dr
a
∫
0
J
0
k
m
2
a
2
J
1
x
m
k
m
x
0m
a
In[]:=
Clear["Global`*"]
In[]:=
a=1;
In[]:=
x01=N@BesselJZero[0,1];
In[]:=
f[r_]:=BesselJ[0,x01*r]
In[]:=
k1:=
x01
a
Due to the orthogonality of the Bessel functions, the numerator of is zero except for . So is just $$ .
d
m
m1
u
u(r,t)exp-(r/a)
d
1
x
01
2
a
J
0
x
01
In[]:=
d1=*
2r*BesselJ[0,k1*r]*f[r]r
a
∫
0
2
a
2
BesselJ[1,x01]
Out[]=
1.
In[]:=
u[r_,t_]:=E^(-k1^2*t)*BesselJ[0,k1*r];
In[]:=
Manipulate[ParametricPlot3D[{r*Cos[θ],r*Sin[θ],u[r,t]},{r,0,1},{θ,0,2Pi},PlotRange->{-1.2,1.2},BoundaryStyle->Directive[Red,Thick],ColorFunction->"SolarColors",Mesh->True],{t,0,10,0.0001}]
Out[]=
In[]:=
graphs=TableParametricPlot3D[{r*Cos[θ],r*Sin[θ],u[r,t]},{r,0,1},{θ,0,2Pi},PlotRange{-1.2,1.2},BoundaryStyleDirective[Red,Thick],ColorFunction"SolarColors"],t,0,2.5,
2.5
8
Out[]=
,
,
,
,
,
,
,
,

