Question: laplace Eq. with compound boundary condition

Hello,

 

I am going to solve 2D Laplace equation for function phiΦ(x,y) in a rectangule which has a*b dimension, yet its boundary condition, at least for me, is rather complex. Here it is:

d/dx(Φ)=0  at  x=0 , x=a

Φ=1  at  0<x<a/2 , y=0   

d/dy(Φ)=0  at a/2<x<a , y=0

Φ=0  at  0<x<a/2 , y=b   

d/dy(Φ)=0  at  a/2<x<a , y=b

 

The problem is that I don't know how to input my desired BC.

Thanks for your response.

Please Wait...