Droplet Contact Angle Simulation

Hello everybody. Just wondering if anyone has tried simulating contact angle in FreeFEM before. I have tried this model from the past FreeFEM day, but I am stuck on where or how to apply the contact angle boundary condition…

https://github.com/FreeFem/FreeFem-days/blob/master/2016/pdf/AS-KO.pdf