Skip to the content.

NeqSim Documentation

Industrial Agentic Engineering with NeqSim — AI Agents for Engineering Task Solving in Industry. NeqSim (Non-Equilibrium Simulator) is a comprehensive Java library developed at NTNU.

Java CI Maven Central License
🚀 Get Started ⭐ Star on GitHub 📖 Reference Manual 📘 JavaDoc API

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();
gas.initProperties();

// Get properties
System.out.println("Density: " + gas.getDensity("kg/m3") + " kg/m³");
System.out.println("Compressibility: " + gas.getZ());

� New: Quickstart & Learning Resources


�📖 Documentation Sections

Section Description
🧪 ThermodynamicsEquations of state, phase behavior, component properties
⚙️ Process SimulationUnit operations, process systems, controllers
🔄 Dynamic SimulationTransient simulation, time-stepping, depressurization
📊 Physical PropertiesTransport properties, interfacial tension
🛢️ PVT SimulationReservoir fluid characterization, tuning
🌊 Fluid MechanicsPipeline flow, multiphase modeling
🎯 OptimizationProduction optimization, multi-objective, constraints
⚠️ Risk & ReliabilityEquipment failure, Monte Carlo, SIS/SIF, bow-tie
🛡️ Safety SystemsESD, HIPPS, PSV, blowdown, alarms
🌱 Emissions & SustainabilityCO₂, methane, nmVOC virtual measurement, Norwegian methods
💰 Cost EstimationCAPEX, OPEX, financial metrics (NPV, ROI)
💡 ExamplesTutorials, Jupyter notebooks, code samples
🤖 AI-Assisted EngineeringMulti-agent task solver: simulation, validation, and report generation
🔧 DevelopmentContributing guidelines, developer setup

📚 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)
gas.initProperties()
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