How to define boundary conditions ?

How to define boundary conditions ?#