A web app for preliminary sizing of vertical and horizontal gas–liquid separators, built with Python and Django.
Live app: https://separator-sizing-tool.vercel.app
The procedure follows Svrcek & Monnery, "Design two-phase separators within the right limits", Chemical Engineering Progress 89(10), 1993.
- Terminal velocity. With a wire-mesh mist eliminator, the Souders–Brown equation is used, with K from the pressure correlation (K = 0.35 ft/s between 15 and 40 psia). Without one, the terminal velocity of the design droplet comes from a force balance, Vt = √(4 g dp (ρl − ρg) / (3 ρg Cd)), with the drag coefficient Cd from an explicit fit in X = ln(Cd·Re²).
- Design gas velocity. Vv = velocity factor × Vt (0.75 by default).
- Liquid volumes. Holdup = holdup time × Ql, and surge = surge time × Ql.
- Vertical vessels. The diameter is set by gas capacity, plus the mist-eliminator ring allowance. The height is the sum of the low liquid level (15 in below 300 psia, 6 in above), holdup and surge heights, HLL to inlet nozzle (1 ft + dN with an inlet diverter, 1 ft + dN/2 without), disengagement height (the larger of 0.5 D and 3 ft + dN/2, or 2 ft + dN/2 with a mist eliminator) and 1.5 ft for the mist eliminator. The tool reports H/D against the 1.5–6 guideline.
- Horizontal vessels. For each trial diameter (in 0.5 ft steps) the tool sets the low liquid level from the diameter and the vapour space height Hv = max(0.2 D, 2 ft with a mist eliminator or 1 ft without). It uses exact circular-segment areas to find the length needed to hold the liquid. The length is also checked against the minimum needed for droplets to settle through Hv before the gas leaves the vessel. The tool varies both the diameter (6 in steps) and the vapour space height. It keeps the designs whose L/D is inside the pressure-based range (1.5–3 up to 250 psia, 3–4 up to 500 psia, 4–6 above) and picks the lightest vessel, using shell and head surface area as a proxy for weight. If no design lands in the range, the closest one is shown with a warning.
The calculations are in SeparatorSizing.py as plain Python functions, so they can be reused outside the web app. Tests are in sepBox/tests.py and include hand-checked values.
| Symbol | Meaning | Unit |
|---|---|---|
| Wg, Wl | Gas and liquid mass flow rates | lb/hr |
| ρg, ρl | Gas and liquid densities | lb/ft³ |
| μg | Gas viscosity | cP |
| dp | Design droplet diameter | ft |
| P | Operating pressure | psia |
| — | Velocity factor (default 0.75), holdup and surge times (min), optional maximum L/D | — |
pip install -r requirements.txt
python manage.py runserverThen open http://127.0.0.1:8000. To run the tests: python manage.py test sepBox.
The app is stateless (results are computed and displayed, not stored), so it deploys on Vercel without a database. Set DJANGO_SECRET_KEY as an environment variable in production.
Kwaku Appenteng Wiredu, BSc Petroleum Engineering, KNUST (2025)