Text this: Three-dimensional simulation of transient flows during the emptying of pipes with entrapped air