This sounds exactly like a typical exam question. When I was at university many years ago we would be faced with answering questions like this, in 35 minutes, without a computer.
Here is my answer.
Mass of gas in pipeline m = (density).volume = p.M/(z.R T).V where V is pipeline volume, p is pressure
or, abbreviating, m = p.(K1)
Differentiate: dm/dt = dp/dt. (K1).........................................(1)
Critical flow through orifice is given by flowrate dm/dt = K2. p...................................(2)
From equations (1) and (2), dp/dt. (K1) = p.(K2)
Integrate:
ln (p1/p2) = (K2/K1).twhere t is time for pressure to fall from p1 to p2
Just evaluate the constants K1 and K2 for your pipeline and your hole size and you have the solution.
This does assume constant temperature, which is a simplification, but is not far wrong if most of the pipeline is under the sea where it will tend to keep warm. It is at least a simple and reasonable approximation.
Paul
Edited by paulhorth, 03 June 2011 - 05:54 PM.