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.
- required effective orifice area [m^2] (rounded up to an API 526 letter)
- relief mass rate [kg/s]
- relieving pressure [Pa, absolute]
- set pressure [Pa, gauge] — the equipment design pressure
- allowable overpressure/accumulation fraction (0.10 typical)
- effective discharge coefficient
- back-pressure correction
- rupture-disc combination factor
- liquid back-pressure correction
- ratio of specific heats c_p/c_v
- compressibility
- molar mass [kg/mol]
- fire heat absorption [W]
- API 521 constant (43200 with drainage, else 70900)
- environment factor (1.0 bare, 0.3 insulated)
- wetted surface area [m^2]
- 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.