How to generate a boundary condition where the function is defined at y=1 \phi(x,1) = (2u+1)\frac{\pi}{2} where u can only be integers

Please see Read before posting: How do I get my question answered?.