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.
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
📚 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
Source code & issues ☕ Maven Central
Latest releases 🐛 Issue Tracker
Report bugs 💬 Discussions
Community Q&A