Solve an electrostatics PDE over a region with two materials.
Specify a mesh.
Solve the equation with material coefficients specified with an If statement.
Contour plot the solution with the boundary mesh.
Try Buy Mathematica is available on Windows, macOS, Linux & cloud »
Questions? Comments? Contact a Wolfram expert »