Computing the volume enclosed by a periodic surface and its variation to model a follower pressure