Solve PDEs with Material Regions 

Solve an electrostatics PDE over a region with two materials.

Specify a mesh.

In[1]:=
Click for copyable input
X
Out[1]=

Solve the equation with material coefficients specified with an If statement.

In[2]:=
Click for copyable input
X

Contour plot the solution with the boundary mesh.

In[3]:=
Click for copyable input
X
Out[3]=