I have a problem using the FF package.
In[]:=
FEMAddOnsInstall[];
In[]:=
Needs["FEMAddOns`"]
In[]:=
Needs["NDSolve`FEM`"]
Mesh:
In[]:=
bmesh1=ToBoundaryMesh
,MaxCellMeasureInfinity;
In[]:=
bmesh2=ToBoundaryMesh
,MaxCellMeasureInfinity;
In[]:=
bmesh3=ToBoundaryMesh
,MaxCellMeasureInfinity;
In[]:=
bmesh=BoundaryElementMeshJoin[bmesh1,bmesh2,bmesh3]
Out[]=
ElementMesh[{{-1.,1.},{-1.,1.}},Automatic]
In[]:=
mesh=ToElementMesh[bmesh,"RegionMarker"{{{0,0.5},10},{{0,-0.5},20}},"MaxCellMeasure"0.005]
Out[]=
ElementMesh[{{-1.,1.},{-1.,1.}},{TriangleElement[<983>]}]
Material Properties:
In[]:=
kk=Piecewise[{{0.079,ElementMarker10},{0.235,ElementMarker20}}];
In[]:=
ρρ=Piecewise[{{7.87,ElementMarker10},{2.7,ElementMarker20}}];
In[]:=
cc=Piecewise[{{0.44,ElementMarker10},{0.9,ElementMarker20}}];
Initial and Boundary Condition:
In[]:=
in={u[x,y,0]==0,DirichletCondition[u[x,y,t]100Sin[2πAbs[x]],{x,y}∈bmesh1],DirichletCondition[u[x,y,t]10,{x,y}∈bmesh2]};
In[]:=
neu=NeumannValue[1000,{x,y}∈bmesh3];
Solution:
In[]:=
eq=Div[kkGrad[u[x,y,t],{x,y}],{x,y}]+==ρρccD[u[x,y,t],t]+neu/.->50//Simplify
e
ger
e
ger
Out[]=
50+
[x,y,t]+[x,y,t]NeumannValue[1000,{x,y}∈ElementMesh[{{-1.,1.},{0.,0.}},Automatic]]+
[x,y,t]
|
(0,2,0)
u
(2,0,0)
u
|
|
(0,0,1)
u
In[]:=
dsol=NDSolve[Join[{eq},in],u,{t,0,20},{x,y}∈mesh]//Flatten
Out[]=
uInterpolatingFunction
The above message appears. Does anyone know how to solve this?
