gmn012,
The easy part of the problem is the equation for the time required to drain the tank. Simply re-arrange:
Q,in – Q,out = dPressure,tank * volume / (Pressure,atm * dtime)
The hard part is finding Q,out. This will change over time as the pressure drops. The equation you need to use changes depending on whether the flow is choked or not, which is dependent on the pressure at the end of the pipe (which is dependent on pressure in the tank and pressure drop across the pipe (which is dependent on velocity in the pipe (which is dependent on whether the flow is choked or not (which…you get my drift…))))).
Here are some resources to get you started:
- Very good resource
- Article on choked/non-choked flow.
– thread with discussion on a similar problem.
- pay to use calculator but has good information underneath.
Hopefully the flow is choked at the start and hopefully the initial flow is so large that you can conclude that the tank will drain “fast enough” without needing to integrate the change in Q,out over time. Heck, it’s an 8” line to atmosphere, it’s going to drain a 400 cf tank pretty darn fast! Or you could simply do a test.