Hi Sup,
No we don’t have any example scripts implementing this at the moment. The basic idea is to keep track of a surface height field eta, and then apply the boundary conditions using a linearized evaluation of the fields at that height, which turns Dirichlet boundary conditions into Robin conditions, e.g. p(z=eta) = p(z=0) + eta*dz(p)(z=0). In place of the impenetrability boundary condition, you can apply something like p(z=eta) = 0. And you also have an evolution equation for eta. This is a simple version, though, so I’d really suggest looking into some literature on the topic for more details.
Best,
-Keaton