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 org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
/**
* Runs a basic SRK TP-flash and validates its gas-state screening results.
*
* @author NeqSim
* @version 1.0
*/
public final class NeqSimQuickStart {
private static final Logger logger = LogManager.getLogger(NeqSimQuickStart.class);
/** Utility class. */
private NeqSimQuickStart() {}
/**
* Run the quick-start flash and fail closed if its gas-state results are invalid.
*
* @param args command-line arguments; unused
*/
public static void main(String[] args) {
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");
ThermodynamicOperations operations = new ThermodynamicOperations(gas);
operations.TPflash();
gas.initProperties();
double density = gas.getDensity("kg/m3");
double compressibility = gas.getZ();
require(Double.isFinite(density) && density > 0.0 && density < 200.0,
"Gas density left the validated 0-200 kg/m3 screening range");
require(Double.isFinite(compressibility) && compressibility > 0.0 && compressibility < 2.0,
"Compressibility left the validated 0-2 screening range");
logger.info("Density: {} kg/m3", density);
logger.info("Compressibility: {}", compressibility);
}
/**
* Fail closed when a quick-start engineering contract is not satisfied.
*
* @param condition contract result
* @param message failure description
*/
private static void require(boolean condition, String message) {
if (!condition) {
throw new IllegalStateException(message);
}
}
}
🆕 Quickstart & Learning Resources
📖 Documentation Sections
📚 Reference Manual Index
The Reference Manual Index organizes the documentation collection by topic and links to current guides, examples, and package references:
✅ Topic-based navigation
✅ Setup, thermodynamics, process, and engineering guides
✅ Usage guides and verified examples
✅ Cross-referenced documentation
🐍 Python Integration
NeqSim is also available for Python through neqsim-python:
from neqsim import jneqsim
# Create and flash a natural gas
gas = jneqsim.thermo.system.SystemSrkEos(298.15, 50.0)
gas.addComponent("methane", 0.9)
gas.addComponent("ethane", 0.1)
gas.setMixingRule("classic")
operations = jneqsim.thermodynamicoperations.ThermodynamicOperations(gas)
operations.TPflash()
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