I'm trying to figure out how is possible to solve a Poisson equation
$\nabla\cdot[d(x,y)\nabla u]+1=0$
where $d(x,y)$ equals 1 in one region and 2 in another one. Let say I have homogeneous Dirichlet boundary conditions.
The two regions should be physically distinct, I mean do not use just
d[x_,y_]:=If[x<0.5,1,2]
if x=0.5 is the edge between the two regions.
Thanks for the suggestion(s) F