I have searched and read all previous questions but cannot get my head around this. I am new to mathematica. I have two regions in 2D where I want to solve PDE. Of the form:
Eqn=Laplacian[u[x,y], {x,y} - (alpha)u[x,y] == 0
Where alpha is equal to zero in one region (reduces to Laplace's eq) and equal to a constant (call it a so alpha=a). The regions are defined:
Omega = Rectangle[{100, 100}, {200, 101}];
Gamma = Rectangle[{0, 0}, {300, 200}];
Stigma = RegionDifference[Gamma, Omega];
So we have a narrow rectangle inside a much bigger rectangle. The ends of the inner rectange are equal to 1 and the outer borders are 0 as:
BCond1 = DirichletCondition[u[x, y] == 1.,
x == 100 && 100 <= y <= 101 ||
x == 200 && 100 <= y <= 101;
BCond2 = u[x, 0] == u[x, 200] == u[0, y] == u[300, y] == 0;
And my question, how do I solve for alpha=0 outside the inner box, i.e region Stigma and alpha=a=3.14(Example) inside the inner box, region Omega ? I have read loads of answers regarding this and it seems to stem on the Inactive func but can't for the life of me work out the notation or what exactly it is doing?
Any help greatly appreciated.
The ends of the inner rectangle are equal to 1
you only give B.C. for the left and right ends. What about the B.C. for top and bottom edges of the inner rectangle? $\endgroup$