polykin.flow.prv¤
area_relief_2phase ¤
area_relief_2phase(
W: float,
P1: float,
P2: float,
v1: float,
v9: float,
Kd: float = 0.85,
Kb: float = 1.0,
Kc: float = 1.0,
Kv: float = 1.0,
) -> PRVResult
Calculate the required effective discharge area of a pressure relief device for two-phase flashing or non-flashing flow using the omega method.
The calculation is done according to the API standard 520, Appendix C.2.2.
This method can also be used for liquids that are saturated (but not subcooled) as they enter the relief device.
References
- Sizing, Selection, and Installation of Pressure-relieving Devices in Refineries: Part I—Sizing and Selection, API Standard 520, 10th ed., 2020.
PARAMETER | DESCRIPTION |
---|---|
W
|
Required relieving mass flow rate (kg/h).
TYPE:
|
P1
|
Upstream relieving pressure, absolute (bara).
TYPE:
|
P2
|
Downstream back pressure, absolute (bara).
TYPE:
|
v1
|
Overall specific volume of the two-phase mixture at upstream relieving conditions (m³/kg).
TYPE:
|
v9
|
Overall specific volume of the two-phase mixture evaluated at 90% of the upstream pressure (m³/kg). The flash calculation should be carried out isentropically, but an isenthalpic (adiabatic) flash is sufficient for low-vapor-content mixtures far from the thermodynamic critical point.
TYPE:
|
Kd
|
Effective discharge coefficient. Use
TYPE:
|
Kb
|
Backpressure correction factor for balanced bellows valves. The value can be obtained from the manufacturer or estimated with the help of Figure 31 of the API standard 520.
TYPE:
|
Kc
|
Combination correction factor for installations with a rupture disk
upstream of the PRV. Use
TYPE:
|
Kv
|
Viscosity correction factor. Use
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
PRVResult
|
Dataclass containing the results of the calculation. |
Examples:
Estimate the required discharge area of a pressure relief device handling a two-phase mixture, according to the API standard 520. The required flow is 216560 kg/h, the upstream relieving pressure is 5.564 bara, the downstream back pressure is 2.045 bara, the overall specific volume of the two-phase mixture at upstream relieving conditions is 0.01945 m³/kg, and the overall specific volume of the two-phase mixture evaluated at 90% of the upstream pressure is 0.02265 m³/kg.
>>> from polykin.flow import area_relief_2phase
>>> area_relief_2phase(W=216560, P1=5.564, P2=2.045, v1=0.01945, v9=0.02265)
PRVResult(Pcf=3.65e+00 bara, critical_flow=True, A=2.45e+04 mm²)
Source code in src/polykin/flow/prv.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
|