Setting up a numerical flume using a hybrid particle-mesh method