NeqSim Documentation
NeqSim (Non-Equilibrium Simulator) is a comprehensive Java library for thermodynamic, physical property, and process simulation developed by Equinor.
Quick Navigation
โก Quick Start Example
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
// Create a natural gas fluid
SystemInterface gas = new SystemSrkEos(298.15, 50.0);
gas.addComponent("methane", 0.90);
gas.addComponent("ethane", 0.05);
gas.addComponent("propane", 0.03);
gas.addComponent("CO2", 0.02);
gas.setMixingRule("classic");
// Perform flash calculation
ThermodynamicOperations ops = new ThermodynamicOperations(gas);
ops.TPflash();
// Get properties
System.out.println("Density: " + gas.getDensity("kg/m3") + " kg/mยณ");
System.out.println("Compressibility: " + gas.getZ());
๐ Documentation Sections
๐ Interactive Reference Manual
The Interactive Reference Manual provides a searchable, navigable guide to all NeqSim packages:
โ
Complete package hierarchy
โ
Class and interface listings
โ
Usage examples and snippets
โ
Cross-referenced links
๐ Python Integration
NeqSim is also available for Python through neqsim-python:
from neqsim.thermo import TPflash, fluid
# Create and flash a natural gas
gas = fluid("srk")
gas.addComponent("methane", 0.9)
gas.addComponent("ethane", 0.1)
gas.setTemperature(298.15, "K")
gas.setPressure(50.0, "bara")
TPflash(gas)
print(f"Gas density: {gas.getDensity('kg/m3'):.2f} kg/mยณ")
๐ Resources
๐ฆ
GitHub Repository
Source code & issues โ Maven Central
Latest releases ๐ Issue Tracker
Report bugs ๐ฌ Discussions
Community Q&A
Source code & issues โ Maven Central
Latest releases ๐ Issue Tracker
Report bugs ๐ฌ Discussions
Community Q&A