A Petrov-Galerkin method for the direct simulation of fully enclosed flows