Skip to main content
2 of 2
added 78 characters in body
user64494
  • 3.5k
  • 14
  • 22

This can be done numerically in Mathematica. Here is an example.

sol = NDSolve[{Laplacian[u[x, y], {x, y}] == 0, DirichletCondition[u[x, y] == 0, x <= 0.35], 
DirichletCondition[u[x, y] == 1, x >= 0.35]}, u, {x, y} \[Element] Disk[]]
ContourPlot[u[x, y] /. sol, {x, -1, 1}, {y, -1, 1}]

enter image description here

Edit. A typo in the code. The right picture instead of an incorrect one.

user64494
  • 3.5k
  • 14
  • 22