In the orifice flow lecture, we reviewed estimated flows through an orifice for gases, liquids, and two-phase flow. Those equations can be used to size a relief valve to prevent the pressure from exceeding a certain value. Solving the mass or mole balance equations in such scenarios can often be completed in a straight forward way.
Important parameters for estimating the internal pressure to ensure the maximum pressure allowed isn’t exceeded include:
the generation rate of the gases from the failure mode that need to be vented
the size of the relief valve
The American Petroleum Institute publishes the API 520 which is a standard for sizing and selection of relief devices. The newest edition is the 10th edition and it is 509 dollars on their webstore: https://
API 520 Equation in SI units¶
where is the vent area in mm, is the mass flow through the vent in kg/hr, is the upstream relieving pressure (set pressure + overpressure + atmospheric pressure) in absolute pressure in kPa, T is the temperature in K, Z is the compressibility of the gases (1), M is the molecular weight of the gases in gm/mol, C is a value incorporating the heat capacity ratio and unit conversion and has a value here of 0.027. is the coefficient of discharge equal to 0.9. and are other coefficients depending on downstream resistance or other configurations and are equal to 1 in this case.
Gas Flow Through an Orifice (Theoretical)¶
Reproduced here is estimated the flow of a gas through an orifice from the orifice flow lecture. It is also derived from an energy balance assuming adiabatic and frictionless flow. The flow is characterized by the pressure ratio, and associated Mach number, . is the absolute pressure of the volume. The Mach number can be found from:
where is the ratio of specific heats (1.4 for air). The flow is choked when and unchoked when .
The molar flow rate is given by:
where is the gas constant and is the temperature, is the absolute pressure inside the vessel, is the discharge coefficient (typically about 0.9). If you use all SI units (Pascal, meters, kilograms, mole: so pressure in pascal, area in meters, R in J/mol/K, and Mw in kg/mol), you’ll get mole per second for . See Perry’s Handbook for Chemical Engineers Equation 6-118 for more information.
Relief valve sizing in some instances does required verification with actual flow per the AMSE Boiler and Pressure Vessel Code.
In Class Example: Venting CO2 from 2L Bottle¶
A two liter bottle is half filed with water. There is a relief valve on the top designed to relieve at 60 psig with a flow of 61 scfm. What is the flow rate of CO2 through the relieve per the above equations?
import numpy as np#fist find the Mach number
gamma = 1.3 #specific heat capacity ratio for CO2, estimate
P1 = 60 + 12.5 #initial pressure, estimate, psia
Patm = 12.5 # atmospheric pressure, psia
Ma = min(1, np.sqrt(2/(gamma-1)*((P1/Patm)**((gamma-1)/gamma)-1))) #Mach numberMa1#now calculate the molar flow rate
R = 8.314 # gas constant, J/(mol*K)
Temp = 295 # temperature, K
Area = np.pi/4*(1/4*0.0254)**2 # area of the pipe, m^2
Cd = 0.9 # discharge coefficient
Mw = 0.04401 # molar mass of CO2, kg/mol
# molar flow rate, mol/s
ndot = P1*6894.76*Area*Cd*np.sqrt(gamma/(R*Temp*Mw))*Ma*(1+(gamma-1)/2*Ma**2)**((gamma+1)/(2-2*gamma))
print(f'The molar flow rate is {ndot:0.2f} mol/s')The molar flow rate is 0.92 mol/s
#now convert that molar flow rate into scfm, PV = nRT
Tstandard = 298.15 # standard temperature, K
Pstandard = 101325 # standard pressure, Pa
scmps = ndot*R*Tstandard/Pstandard #units of m^3/s
scfm = scmps*60*(3.281**3)
print(f'The flow rate in scfm is {scfm:0.1f}')The flow rate in scfm is 47.4
Why is this number different than the reported flow rate of CO2 through the relief valve? Could the diameter of the relief be slightly larger?
How would you get the generation rate of CO2 from the submlimation of dry ice?
Does area () change? How would you get the heat transfer coefficient ()?
In Class Example 2: More venting from a CO2 bottle¶
See text, in-class notes, and the python code here: Calcs.ipynb (after the Chapter 7 Heading)