So, I am trying to solve a simple problem using the FEM method.
The distribution of Voltage over a region,
The region is,
<< NDSolve`FEM`
bm = ToBoundaryMesh[
"Coordinates" -> {{0., 0.}, {1., 0.}, {12/10, 0.}, {12/10, 1.}, {1.,
1.}, {0., 1.}},
"BoundaryElements" -> {LineElement[{{1, 2}, {2, 3}, {3, 4}, {4,
5}, {5, 6}, {6, 1}, {5, 2}}]}];
em = ToElementMesh[bm,
"RegionMarker" -> {{{0.5, 0.5}, 1}, {{1.2, 0.5}, 2}}];
which look like this,
Show[{
em["Wireframe"["MeshElementStyle" -> Directive[EdgeForm[Red], Thin],
"MeshElementMarkerStyle" -> Blue]],
bm["Wireframe"["MeshElementStyle" -> Black]]
}, ImageSize -> 300]
I have two equations,
op1 = Laplacian[v1[x, y], {x, y}];
op2= Laplacian[v2[x, y], {x, y}];
bc1=DirichletCondition[v1[x, y] == 4, x == 12/10 && y==1];
bc2=DirichletCondition[v2[x, y] == 0, x == 0];
omg=376.991;
dd=100;
d=25*10^-6;
eef={4.18382,4.22462,9.95342,12.8216,13.9473,14.4967,14.8028,14.9896,15.1113,15.195,15.2551,15.2998,15.3341,15.3611,15.3829,15.4007,15.4155,15.428,15.4387,15.4478,15.4556,15.4624,15.4682,15.4733,15.4777};
ee1 = ListInterpolation[eef, {{0, Length[eef] - 1}}, InterpolationOrder -> 1]
ee1 has dependence on v1[x,y]-v2[x,y], as ee1[Abs[v1[x,y]-v2[x,y]]]
{v1fun,v2fun} = NDSolveValue[{op1==If[ElementMarker == 1, ((I omg ee1[
Abs[v1[x, y] - v2[x, y]]])/(dd d)) (v1[x, y] -
v2[x, y]), 0], op2==If[ElementMarker == 1, (
(I omg ee1[
Abs[v1[x, y] - v2[x, y]]])/(dd d)) (v2[x, y] -
v1[x, y]), 0],bc1,bc2},{v1[x, y],v2{x,y}}, {x, y} ∈ em]
The output contour plot of (Abs[v1[x,y]-v2[x,y]]) should be the distribution of voltage over the entire mesh region with the highest values at the x=0 and x=1.2.
I am getting different errors in versions 11.1 and 13.1. I am trying to solve complex equations in NdSolveValue and FEM.