NeqSim Process Safety Skill
Systematic hazard identification, layer-of-protection analysis (LOPA), and
safety-integrity-level (SIL) determination — the quantitative half of process
safety that complements depressurization (neqsim-dynamic-simulation) and relief
sizing (neqsim-relief-flare-network).
When to Use
- HAZOP / HAZID node walkdown with deviation guidewords
- Barrier management for PSFs/SCEs with document evidence and performance standards
- LOPA for a specific scenario — calculate residual frequency and required RRF
- SIL determination for an SIF — IEC 61508 / IEC 61511 verification
- Closed-loop SIF execution from live process signal through MooN voting and final element
- Bow-tie analysis (top event with threats + barriers + consequences)
- ALARP / risk-matrix scoring (5×5)
- High-pressure well or flowline produced against a low-pressure system (PAHH/HIPPS credit, IVO+CC transient, STS0131 LOPA): load
neqsim-hp-lp-interface-overpressure - Trapped-liquid fire rupture screening for blocked-in liquid-filled segments,
including PFP demand and source-term handoff
- Overpressure-protection study for a protected item — enumerate credible relief
contingencies, select the governing case, size the PSV, and check TR3001 / API
521 compliance
- Fixed-roof tank normal/emergency vent-demand and rated-capacity screening using externally
verified API 2000 demand and device evidence
Standards: IEC 61508, IEC 61511, CCPS LOPA Guidelines, API 521 / ISO 23251, API 520, API 2000, TR3001, ASME VIII Div 1 (UG-125), ASME B31.3/B31.4, ASME B16.5, API 754, NORSOK Z-013.
For API 2000, route to Api2000TankVentingScreeningKernel. Require caller-controlled licensed
demand factors/cases, externally rated capacities, consistent gas reference conditions, tank
pressure/vacuum limits, and evidence attestations. Do not relabel FireProtectionDesign, generic
PSV sizing, or an adequate screen as API tank-vent sizing or conformity.
Subsea tie-back pressure protection
For a well-to-platform case, use the executable pressure-protection study.
Record each zone's pressure datum and allowable transient pressure, valve feedback, actual boundary transfers and refinement sensitivity.
Use the verifier's adjacent 60→120 and 120→240 cell comparisons for the synthetic case. Carry
the resulting numerical verdict and the drawing findings into the study. Compare the two end
stations and the fixed riser-base station, retaining the zone substep maxima and the pressure
front, trip and seat times. Use --benchmark for a synchronized independent reference from the
same fixture. Carry a HOLD when a matched reference is missing. Evaluate channel independence
and reliability with project data.
A TwoFluidPipe blocked-outlet or HIPPS run must enable setEnableCoupledPressureMomentum(true) and
setEnableInterfacialPressure(true). Without them the pressure behind a CLOSED boundary stays flat while mass
accumulates, and the study silently shows no overpressure (TwoFluidPipeLinePackingTest; runTransient now warns).
Check the fortified-zone volume between the HIPPS and the first closable downstream valve: in a 12-inch, 300 t/h,
SITHP 275 bara tie-back (measured 2026-11-21), a valve closing 40 m downstream drove the line to SITHP before 12 s
HIPPS valves seated, while a full 15.6 km line took about 32 min to reach the 180 barg trip (remeasured 2026-11-22
with the frozen-composition property update, which is the default; with setFrozenCompositionDensityUpdate(false) the
same run shows 90-130 bar steps at the closed riser top that are not pressure peaks; with the default, steps of up to
13 bar remain there, so take the trip time from the inlet pressure).
Method 0b — Trapped-Liquid Fire Rupture Screening
Load neqsim-trapped-liquid-fire-rupture when a safety study concerns a
blocked-in liquid-filled pipe segment exposed to fire, no pressure relief, PFP
endurance, flange/pipe rupture, or a Word/HTML study report based on P&IDs/STID,
line lists, material certificates, and fire documents.
Recommended sequence:
- Retrieve the evidence package with the enterprise skill
enterprise-stid-document-retrieval(or supplied documents): P&ID/STID,
line list, piping spec, material certificate, flange/bolt/gasket data,
fire-zone/PFP documents, relief basis, and design basis.
- Extract a structured segment list with
neqsim-technical-document-reading:
isolation boundary, line numbers, fluid, P/T, ID, wall thickness, length,
material grade, flange class, fire basis, PFP endurance, relief availability,
acceptance criteria, and evidence gaps.
- Use
TrappedInventoryCalculatorto calculate trapped mass and volume. - Use
FireExposureScenario,MaterialStrengthCurve, and
TrappedLiquidFireRuptureStudy to calculate event times and limiting mode.
- Convert outputs to
SafetySystemDemandfor PFP checks and to
SourceTermResult for consequence handoff if rupture is predicted.
- Report all screening defaults as assumptions. Missing project data must stay
visible in an evidence/gaps register.
Method 0 — Evidence-Linked Barrier Register
Use BarrierRegister, SafetyCriticalElement, SafetyBarrier, PerformanceStandard,
and DocumentEvidence when agents read technical documentation and need a traceable
handoff into LOPA, SIL, bow-tie, or QRA.
Recommended sequence:
- Extract
DocumentEvidencefrom P&IDs, C&E charts, SRS, SIL verification reports,
inspection reports, vendor datasheets, and operating procedures.
- Build
PerformanceStandardobjects for each PSF/SIF/SCE function with target PFD,
availability, proof-test interval, response time, and acceptance criteria.
- Build
SafetyBarrierobjects with type, status, PFD/effectiveness, equipment tags,
hazard ids, owner, evidence, and performance-standard links.
- Group barriers under
SafetyCriticalElementrecords using process equipment tags. - Run MCP
runBarrierRegisterto get validation findings pluslopaHandoff,
silHandoff, bowTieHandoff, and qraHandoff blocks.
Credit rule: do not claim LOPA credit unless the barrier is AVAILABLE, has a valid
PFD, has a linked performance standard, and has traceable evidence. Missing evidence
must remain visible as a validation finding.
Method 1 — HAZOP Guidewords
Apply the 7 standard guidewords to each design intent at every node:
| Guideword | Deviation example | Typical cause |
| --------- | ----------------------------------------- | ----------------------------------- |
| NO | No flow to separator | Pump trip, blocked inlet |
| MORE | More pressure in V-100 | PCV stuck open, inlet surge |
| LESS | Less level in V-100 | LCV stuck open, drain leak |
| AS WELL AS | Water carryover in gas | Demister flooding, wave action |
| PART OF | Wrong composition fed | Crossover from neighbouring train |
| REVERSE | Reverse flow from compressor | Check valve failure |
| OTHER THAN | Maintenance with line live | Procedural / isolation failure |
Output as a HAZOP worksheet table; each row → candidate LOPA scenario.
For automated studies from STID/P&ID documents and NeqSim process simulations,
use MCP runHAZOP. It accepts a standard runProcess JSON model plus optional
document-extracted nodes, safeguards, evidence references, selected failure
modes, and a barrierRegister. The runner executes generated safety scenarios
on copied ProcessSystem models and returns IEC 61882 rows, simulation evidence,
quality gates, barrier-register handoff, and report markdown. See
docs/safety/automated_hazop_from_stid.md.
For a P&ID Safety Analyser / AI-HAZOP front-end that quantifies one deviation at
a time, use MCP runHazopScenario (backed by
neqsim.mcp.runners.HazopScenarioRunner). It accepts a runProcess JSON model
plus an optional guideWord / parameter / nodeTag filter and a limits
policy, and returns a stable schemaVersion "1.0" response where every finding
carries a computedValue, designLimit, verdict (PASS / EXCEEDS /
NOT_EVALUATED), standardReference, and a limitBasis provenance string
(HazopConsequenceFinding#getLimitBasis()) so a reviewer can see whether the
limit is a data-sheet value or a screening default. Equipment design limits
(neqsim.process.mechanicaldesign.DesignConditions) round-trip into DEXPI as a
GenericAttributes Set="DesignConditions" group, and blocked-outlet MORE
PRESSURE deviations can be screened with
neqsim.process.safety.depressurization.BlockedOutletOverpressureAnalyzer. See
docs/safety/ai_hazop_input_format.md for the full input-data format.
Method 1b — Quantify the governing deviations of a separator node
A guide-word grid on its own is not decision-grade. For a separation node, four
deviations carry the risk; each maps to a class that turns the qualitative row
into a number against a data-sheet limit:
| Guideword / parameter | Class | Standard |
| --- | --- | --- |
| MORE FLOW / MORE LEVEL (carryover) | Souders-Brown K = v_gas / sqrt((rho_l-rho_g)/rho_g) from the run ProcessSystem; SeparatorMechanicalDesign.setFromExistingDesign(id, lTanTan, wallThickness) to pin the as-built geometry | NORSOK P-002, GPSA |
| MORE PRESSURE (fire) | neqsim.process.safety.overpressure.FireCaseRelief | API 521 §4.3 |
| MORE PRESSURE (blocked outlet) | neqsim.process.util.fire.ReliefValveSizing.calculateRequiredArea on the full inlet gas rate; BlockedOutletOverpressureAnalyzer for the transient | API 520 Part I, API 521 §4.4.2 |
| LESS LEVEL (gas blow-by) | neqsim.process.safety.blowby.GasBlowbyAnalyzer | API 521 §4.4.7 |
| LESS TEMPERATURE (MDMT) | neqsim.process.safety.depressurization.DepressurizationSimulator + result.meetsMDMT(mdmtK) | API 521 §5.20, ASME VIII UCS-66 |
Three heuristics that repeatedly decide the outcome:
- Fire is rarely the governing relief case for a high-throughput separator.
The fire case only vents vapour generated from the wetted area, while a blocked
gas outlet must vent the whole inlet gas rate. Always size both and state which
governs — a 10× difference in required orifice area is normal.
- Blow-by on LESS LEVEL is choked in nearly every HP→LP pair, so the rate is
set purely by the open area of the level-control valve, not by downstream
pressure. When the valve Cv is unknown, present a 2″–8″ equivalent-diameter
sensitivity rather than picking one number.
- A thick-walled vessel does not reach MDMT during blowdown. Model the wall
(setWall(mass, area, cp, htc)); several hundred tonnes of steel keeps the
metal near ambient. The cold spot is the BDV/PSV tail pipe — check it with an
isenthalpic PHflash of the gas down to flare pressure, not with the vessel
temperature.
Carryover margin scales as 1/(1-level), so report the utilisation as a level
sensitivity — it converts "verify the HH trip" into a numeric trip setpoint.
Method 1c — Run the studies on every safeguard of a generated P&ID
When a P&ID was synthesized from the process (PidDesignSynthesizer), run
PidSafetyStudies.run(pid, process, PidSafetyStudies.Policy.screening()) after
PidStandardConnectionProposals.complete(...). It applies the Method 1b calculations to
every proposed PSV (blocked outlet, fire, gas blow-by through upstream liquid valves),
sizes each BDV by dynamic blowdown to the API 521 target, sums the flare load, places
trip set points between operating and relief limits, sets NOG 070 SIL targets and screens
PFDavg. Results land on the P&ID elements, the drawings, DEXPI and the HAZOP preparation
(quantifiedSafeguardEvidence). The blowdown minimum temperature is the fluid
temperature without wall heat capacity: treat BLOWDOWN_LOW_TEMPERATURE as a prompt
for the wall/tail-pipe check above. Report every finding; reliability data are screening
values (docs/process/safety/pid-safety-studies.md).