Use separation of variables to solve

$\displaystyle \bigtriangledown^2 u = 0 $, in D, u = f, on $\displaystyle \partial u$

if D is the semi-circle of radius 1 centred at the origin and above the x-axis where f = 1 on the circular boundary, f = 0 on the flat part