neqsim-multiphase-flow-slug-screening
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Educational multiphase slug-flow regime and slug-catcher volume screening. USE WHEN: a task needs a public, screening-level indicator of whether a multiphase line is in an intermittent/slug regime and a first-pass slug-catcher volume estimate before validated multiphase flow analysis.
In this repository90 other files it gives its agents.
- neqsim-document-intelligence-extractionSkill
- neqsim-co2-emissions-screeningSkill
- neqsim-energy-emissions-screeningSkill
- neqsim-weather-dataSkill
- neqsim-anp-open-dataSkill
- neqsim-artificial-lift-screeningSkill
- neqsim-asset-value-npv-screeningSkill
- neqsim-capex-opex-screeningSkill
- neqsim-design-basis-screeningSkill
- neqsim-economy-basis-screeningSkill
- neqsim-ncs-infrastructure-networkSkill
- neqsim-ncs-ownership-equitySkill
- neqsim-ncs-value-chain-optimizationSkill
- neqsim-norwegian-continental-shelf-dataSkill
- neqsim-psc-bid-economics-screeningSkill
- neqsim-reservoir-depletion-screeningSkill
- neqsim-reservoir-facility-value-chainSkill
- neqsim-reservoir-model-builderSkill
- neqsim-resource-classification-screeningSkill
- neqsim-hydrate-margin-checkSkill
- neqsim-hydrate-screeningSkill
- neqsim-olga-multiphase-simulatorSkill
- neqsim-produced-water-scale-screeningSkill
- neqsim-surf-cooldown-screeningSkill
- neqsim-two-phase-flow-regime-screeningSkill
- neqsim-wax-margin-checkSkill
- neqsim-acoustic-induced-vibration-screeningSkill
- neqsim-adsorbent-capillary-condensation-screeningSkill
- neqsim-ageing-life-extension-screeningSkill
- neqsim-cfd-couplingSkill
- neqsim-compressor-antisurge-recycleSkill
- neqsim-compressor-operating-window-checkSkill
- neqsim-compressor-power-screeningSkill
- neqsim-continuous-improvement-toolkitSkill
- neqsim-control-authority-screeningSkill
- neqsim-control-valve-cv-screeningSkill
- neqsim-dry-gas-seal-screeningSkill
- neqsim-dynamic-instrument-controller-setupSkill
- neqsim-dynamic-process-preparationSkill
- neqsim-fem-couplingSkill
- neqsim-fired-heater-duty-screeningSkill
- neqsim-flow-induced-vibration-screeningSkill
- neqsim-gas-scrubber-sizing-screeningSkill
- neqsim-gas-turbine-performance-screeningSkill
- neqsim-heat-exchanger-fouling-assessmentSkill
- neqsim-line-velocity-checkSkill
- neqsim-noise-screeningSkill
- neqsim-pipe-wall-thickness-screeningSkill
- neqsim-piping-flexibility-screeningSkill
- neqsim-pressure-drop-screeningSkill
- neqsim-pump-hydraulics-screeningSkill
- neqsim-reciprocating-compressor-screeningSkill
- neqsim-reliability-data-screeningSkill
- neqsim-sand-erosion-screeningSkill
- neqsim-separator-modellingSkill
- neqsim-teg-dehydration-modelingSkill
- neqsim-uncertainty-quantificationSkill
- neqsim-utility-balance-screeningSkill
- neqsim-water-dewpoint-dehydration-screeningSkill
- neqsim-benchmark-reference-dataSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill for public, educational multiphase slug-flow screening.
- Distinctive: line 20
When a user asks whether a multiphase line is likely to be in a slug regime.
- Distinctive: line 21
When an agent needs a quick slug-catcher volume order-of-magnitude to scope a flow-assurance study.
- Distinctive: line 22
When examples must run without confidential pipeline geometry, project flow-assurance reports, or company multiphase guidelines.
- Very specific: line 53
when an available slug-catcher volume is provided, the capacity ratio drives rule-based warnings.
- Very specific: line 75
If the optional neqsim Python package is available, the result records that fact so an agent can recommend moving to validated NeqSim …
- Distinctive: line 95
No validated flow-pattern map (Beggs and Brill, Taitel-Dukler) is applied.
- Distinctive: line 96
No terrain, severe, or hydrodynamic slugging dynamics are modelled.
- Distinctive: line 97
No transient slug tracking or slug frequency is computed.
- Distinctive: line 98
Not suitable for safety-critical, design, guarantee, or standards-compliance work.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Multiphase Flow Slug Screening
Use this skill for public, educational multiphase slug-flow screening. It gives a coarse flow-regime indicator from superficial gas and liquid velocities and a first-pass slug-catcher volume estimate from slug geometry, so an agent can flag slug risk before moving to validated multiphase flow analysis.
When to Use
- When a user asks whether a multiphase line is likely to be in a slug regime.
- When an agent needs a quick slug-catcher volume order-of-magnitude to scope a flow-assurance study.
- When examples must run without confidential pipeline geometry, project flow-assurance reports, or company multiphase guidelines.
Inputs
superficial_gas_velocity: superficial gas velocity in m/s.superficial_liquid_velocity: superficial liquid velocity in m/s.pipe_internal_diameter: pipe inside diameter in m.slug_length_to_diameter: slug length expressed as a multiple of the diameter, default 30.0.liquid_holdup_in_slug: liquid holdup in the slug body, dimensionless in (0, 1], default 0.8.surge_factor: surge/safety factor on slug-catcher volume, default 1.2.available_slug_catcher_volume: optional available slug-catcher volume in m3 for a capacity check.
Outputs
mixture_velocity_m_per_s: sum of the superficial gas and liquid velocities.froude_number: mixture Froude number using the pipe inside diameter.liquid_fraction: liquid superficial velocity divided by the mixture velocity.flow_regime_indicator: coarse public regime label (gas-dominated, slug, liquid-dominated, transition).estimated_slug_volume_m3: screening slug volume from slug geometry and holdup.recommended_slug_catcher_volume_m3: slug volume scaled by the surge factor.capacity_ratio: recommended over available slug-catcher volume when an available volume is given.slug_warning:ok,watch, orhigh.assumptions: public assumptions used by the placeholder model.
Engineering Method
The Python class SlugScreeningModel uses open, published concepts only:
- the mixture velocity is the sum of the superficial gas and liquid velocities, and the Froude number uses the pipe inside diameter as the length scale.
- the flow-regime indicator is a coarse public heuristic over Froude number and liquid fraction. It is not a validated flow-pattern map.
- the slug volume is slug length times pipe area times liquid holdup, with a surge factor giving the recommended slug-catcher volume.
- when an available slug-catcher volume is provided, the capacity ratio drives rule-based warnings; otherwise a slug regime is flagged as
watch.
This is educational and screening-only logic. It is not a validated flow-pattern map, not a slug-catcher design method, and not a replacement for validated multiphase flow analysis and a qualified flow-assurance review.
Python Usage Pattern
from multiphase_flow_slug_screening import SlugScreeningModel
model = SlugScreeningModel()
result = model.evaluate(
superficial_gas_velocity=4.0,
superficial_liquid_velocity=1.0,
pipe_internal_diameter=0.3,
available_slug_catcher_volume=1.0,
)
print(result.flow_regime_indicator)
print(result.recommended_slug_catcher_volume_m3)
print(result.slug_warning)If the optional neqsim Python package is available, the result records that fact so an agent can recommend moving to validated NeqSim multiphase pipe flow analysis. If it is not installed, the example still runs with public placeholder logic.
Validation Checklist
- Velocities and diameter are in SI units.
- Example inputs are public and synthetic.
- Tests cover slug, capacity, and invalid-input cases.
- Results are described as educational screening indicators.
- Real slug-catcher sizing is redirected to validated multiphase flow methods and qualified review.
Common Mistakes
| Symptom | Cause | Fix |
| Regime label looks wrong | Superficial velocities taken at the wrong conditions | Evaluate superficial velocities at line pressure and temperature |
| Slug volume too small | Slug length-to-diameter set too low for terrain slugging | Use a length-to-diameter consistent with the line profile and terrain |
| Capacity check missing | No available slug-catcher volume provided | Pass available_slug_catcher_volume for a capacity ratio |
Limitations
- No validated flow-pattern map (Beggs and Brill, Taitel-Dukler) is applied.
- No terrain, severe, or hydrodynamic slugging dynamics are modelled.
- No transient slug tracking or slug frequency is computed.
- Not suitable for safety-critical, design, guarantee, or standards-compliance work.
Related NeqSim Functionality
This educational screening corresponds to validated, rigorous functionality in the NeqSim Java library that a qualified engineer should use for design-grade work:
neqsim.process.equipment.pipeline.PipeBeggsAndBrills— rigorous multiphase pressure drop, holdup, and flow-regime evaluation.neqsim.process.equipment.separator.ThreePhaseSeparator— slug-catcher / inlet-separation modelling for liquid handling.
In Python the same classes are reachable through the neqsim package (for example from neqsim import jneqsim).
Escalating to a Transient Simulator
This screening cannot produce a slug frequency, a slug length distribution, or the liquid surge that arrives at a receiving facility after a ramp-up or a shut-in and restart. When those govern the answer, escalate to the neqsim-olga-multiphase-simulator skill (or the olga-simulation-agent), which runs an OLGA transient case with slug tracking and returns the arrival trends. Use this screening first to decide whether that cost is justified.
References
- NeqSim repository: https://github.com/equinor/neqsim
- NeqSim Skills Guide: https://github.com/equinor/neqsim/blob/master/docs/integration/skills_guide.md
- Public multiphase flow references such as the Beggs and Brill correlation, the Taitel-Dukler flow-pattern map, and NORSOK P-001/P-002 for general multiphase line concepts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

