Text this: A variational method in potential flows with a free surface.