neqsim-cfd-coupling

Convert NeqSim flash results into OpenFOAM boundary conditions, cases, and enhancement factors.

4|2|Updated May 31, 2026
One-click install
npx skills add https://github.com/equinor/neqsim-community-skills --skill neqsim-cfd-coupling-equinor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neqsim-cfd-coupling
Source: https://github.com/equinor/neqsim-community-skills/tree/main/skills/process/cfd-coupling
Command: npx skills add https://github.com/equinor/neqsim-community-skills --skill neqsim-cfd-coupling-equinor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? One-dimensional process models work in bulk quantities, but damage and flow behavior concentrate at local features like bends, welds, and restrictions that bulk models cannot resolve. This Skill bridges NeqSim process simulations and CFD by turning flashed fluid states into defensible OpenFOAM cases and converting solved local fields back into enhancement factors for one-dimensional models. ## Core Features & Use Cases - Traceable design basis: Merge P&ID, STID, datasheet, and plant-data inputs by source precedence, flag conflicts, and report missing fields before meshing. - Boundary conditions and case generation: Derive velocity, Reynolds, turbulence inlet state, and solver class from a NeqSim flash, then write and run steady single-phase RANS or transient volume-of-fluid OpenFOAM cases. - Multiphase screening and quality gating: Screen whether VOF, Lagrangian, or Euler-Euler is defensible using Weber, Froude, and Stokes numbers, and gate any CFD study on wall treatment, mesh independence, and turbulence model before its numbers are used. - Use Case: Given a wet-gas line from a P&ID and STID register, flash the fluid in NeqSim, size the near-wall mesh for a y+ target, write and run an OpenFOAM case, and convert the solved wall shear into a mass-transfer enhancement factor for a corrosion screening model. ## Quick Start Ask the agent to build a CFD design basis from your P&ID and datasheet inputs, flash the fluid in NeqSim, and generate an OpenFOAM case for the line.

Frequently Asked Questions about neqsim-cfd-coupling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an OpenFOAM case from a NeqSim flash?

Flash the fluid in NeqSim, call fluid_state_from_neqsim to extract density and viscosity, derive boundary conditions with derive_boundary_conditions, then write the case with OpenFoamCase.write. The case runs automatically when OpenFOAM is installed, otherwise the commands to run it elsewhere are returned.

How do I choose between VOF, Lagrangian, and Euler-Euler multiphase models?

Use derive_multiphase_conditions, which computes Weber, Froude, and Stokes numbers plus the maximum stable droplet size from one flash. It recommends vof for resolvable interfaces like stratified or slug flow, lagrangian for dilute mists, and euler_euler for dense dispersed phases.

Can I use this CFD coupling without NeqSim or OpenFOAM installed?

Yes, both are optional. Without NeqSim you supply the fluid state directly as a FluidState object; without OpenFOAM the case is still written to disk and the commands needed to run it elsewhere are returned.

Why does my CFD case have zero viscosity from NeqSim?

Transport properties return as zero unless initProperties() is called on the NeqSim system after the flash. The fluid_state_from_neqsim function invokes it automatically, but reading properties directly from a phase without it produces an absurd Reynolds number.

When should I not use steady RANS for a flow study?

Avoid steady RANS for tonal noise diagnosis, fatigue, or erosion questions, because it smooths the fluctuations those questions depend on. For tonal aeroacoustics, call assess_aeroacoustic_readiness first; it fails closed unless geometry, synchronized spectra, and acoustic boundaries are available.

What are the limitations of the generated OpenFOAM cases?

The skill generates steady single-phase RANS and transient VOF cases only; Lagrangian and Euler-Euler models are recommended but not written. Phase change, cavitation, combustion, conjugate heat transfer, and temperature fields are out of scope, and fluid properties are frozen at the inlet flash.