Skip to the content.

Mathematical Models in NeqSim

NeqSim bundles several thermodynamic and transport models so you can switch between correlations without rewriting system setup code. The sections below summarize the most commonly used options and when to consider them.

Equations of State (EoS)

NeqSim primarily uses cubic equations of state of the general form:

[ P = \frac{RT}{v - b} - \frac{a(T)}{(v + \epsilon b)(v + \sigma b)} ]

where $P$ is pressure, $T$ is temperature, $v$ is molar volume, $R$ is the gas constant, and $a(T), b$ are the energy and co-volume parameters.

Supported Families

Selecting an EoS

SystemInterface fluid = new SystemSrkEos(298.15, 50.0);
fluid.addComponent("methane", 0.9);
fluid.addComponent("n-heptane", 0.1);
fluid.setMixingRule(2); // 2 = Huron–Vidal; use 1 for classical van der Waals

Use SystemSrkCPAstatoil or SystemSrkCPAs when hydrogen bonding is important, and prefer PR variants for high-pressure gas processing.

Reference Equations of State (Helmholtz Energy)

For high-accuracy applications involving natural gas or CCS mixtures, NeqSim supports multi-parameter equations of state explicit in the Helmholtz free energy:

See the GERG-2008 and EOS-CG guide for details.

Activity-Coefficient Models

NeqSim provides NRTL/UNIQUAC/UNIFAC variants for non-ideal liquid mixtures. They can be used directly for gamma-phi flashes or combined with cubic EoS via Wong–Sandler mixing rules.

SystemInterface fluid = new SystemFurstElectrolyteEos(298.15, 1.0);
fluid.addComponent("water", 1.0);
fluid.addComponent("ethanol", 1.0);
fluid.setMixingRule(4); // enables Wong–Sandler (NRTL) coupling

Load binary-interaction parameters via mixingRuleName or by reading custom datasets to align with lab data.

Hydrate and Solid Models

For hydrate prediction, enable hydrateCheck(true) and select a hydrate model (CPA-based or classical van der Waals–Platteeuw) depending on accuracy and speed requirements. Wax precipitation can be modeled using solid-phase enabled systems (e.g., PR with solid checks) and tuned heavy-end characterizations.

Transport and Physical Property Correlations

Choose property packages that match the flow regime: cubic EoS with corresponding-state transport for gas processing, CPA with association corrections for aqueous systems, and heavy-oil tuned correlations for late-life reservoirs.