MaximaLabs
All unit operations

Relief valve (PSV) simulation

1 inlet -> process (passthrough) + relief (to flare)

Governing equations

The exact equations the solver works for a relief valve (psv) — the same math shown in the app's "Theory" panel, not a black box.

P1=Pset(1+α)+Patm(relieving pressure, API 520)P_1 = P_{set}(1+\alpha) + P_{atm}\quad(\text{relieving pressure, API 520})
A=WKdKbKcKwP1TZRMk  [k(2k+1)k+1k1]1/2A = \frac{W}{K_d K_b K_c K_w\, P_1}\sqrt{\frac{T Z R}{M k}}\;\left[k\left(\tfrac{2}{k+1}\right)^{\frac{k+1}{k-1}}\right]^{-1/2}
Q=CFAwet0.82,Wfire=Q/λ(API 521 fire case)Q = C\, F\, A_{wet}^{0.82},\quad W_{fire} = Q/\lambda\quad(\text{API 521 fire case})
AA
required effective orifice area [m^2] (rounded up to an API 526 letter)
WW
relief mass rate [kg/s]
P1P_1
relieving pressure [Pa, absolute]
PsetP_{set}
set pressure [Pa, gauge] — the equipment design pressure
α\alpha
allowable overpressure/accumulation fraction (0.10 typical)
KdK_d
effective discharge coefficient
KbK_b
back-pressure correction
KcK_c
rupture-disc combination factor
KwK_w
liquid back-pressure correction
kk
ratio of specific heats c_p/c_v
ZZ
compressibility
MM
molar mass [kg/mol]
QQ
fire heat absorption [W]
CC
API 521 constant (43200 with drainage, else 70900)
FF
environment factor (1.0 bare, 0.3 insulated)
AwetA_{wet}
wetted surface area [m^2]
λ\lambda
latent heat of the relieving vapour [J/kg]

Parameters

set_pressure [Pa, gauge — the protected equipment's MAWP, required]; scenario [blocked_outlet|fire|specified, default blocked_outlet]; overpressure_fraction [default 0.10]; for scenario=fire: wetted_area [m^2], environment_factor [1.0 bare, 0.3 insulated], adequate_drainage [bool]; for scenario=specified: relief_rate [mol/s]. Optional superimposed_back_pressure / built_up_back_pressure [Pa, gauge], valve_type [conventional|balanced_bellows|pilot_operated], rupture_disc [bool], discharge_coefficient, kb, kw [API 520 Figures 30/31]. relieving [bool, default False] models the valve LIFTED so the relief leg carries the load to a flare; left off, the valve is shut (process passes through unchanged) and only the sizing is reported.

Example flowsheets that use it

Stop fighting legacy software. Build your first flowsheet in 60 seconds.