In[]:=
ClearAll[x,y,t,u,Ω1,Ω2,Ω3,Ω4,Ω5,ΩT,y1,P1,P2,BC,sol]Ω1=Rectangle[{-2,-2},{2,2}];BC:=DirichletConditionu[t,x,y]=
,(x-2&&1.75≤y≤2)||(x2&&-2≤y≤-1.75)IC:=u[0,x,y]0heatEquation:=D[u[t,x,y],t]-10u[t,x,y]0sol=NDSolveValue[{heatEquation,BC,IC},u,{t,0,150},{x,y}∈Ω1]ContourPlot[sol[5,x,y],{x,y}∈Ω1]
|
2
∇
{x,y}
|
Out[]=
InterpolatingFunction
Out[]=

