There is a crack/leak/hole in the end of a closed pipe 50ft from the air tank. I am trying to determine the mass flow rate of the compressed air so I can know how quickly the tank will lose pressure. I don't know what formula I need to use, as well as what values I am missing that are necessary? Looking for an estimated value. Please include all units and a source of information if possible.
Assuming the following values:
Volume: 1350 ft3
Pressure: 170 psig
Exit Pressure: 0 psig
Tube Inner Diameter: 2 inches
Tube Length: 50 feet
molar mass air: 28.97 g/mol
Temperature is constant: 300K
Orifice diameter: 0.0356 inches
Specific Volume: 1.307 ft^3/lbm
Expansion Factor: 0.4602
Discharge Coefficient: 0.61
Any links to useful information would also be appreciated