Welcome to the NeqSim documentation. This comprehensive wiki provides guides, tutorials, and reference materials for using the library and contributing to development.
About NeqSim
NeqSim (Non-Equilibrium Simulator) is a Java library for estimating fluid properties and process design. The library contains models for:
- Phase behavior using rigorous equations of state (SRK, PR, CPA, GERG-2008)
- Physical properties (viscosity, density, thermal conductivity, interfacial tension)
- Process equipment (separators, compressors, heat exchangers, columns, and other unit operations)
- Pipeline flow (two-phase, multiphase, transient simulation)
- Flow assurance (hydrates, wax, asphaltene, scaling)
Development was initiated at the Norwegian University of Science and Technology (NTNU). NeqSim is part of the NeqSim project.
Quick Start
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;
public final class NeqSimQuickStart {
private static final Logger logger = LogManager.getLogger(NeqSimQuickStart.class);
private NeqSimQuickStart() {}
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();
logger.info("Density: {} kg/m3", gas.getDensity("kg/m3"));
logger.info("Compressibility: {}", gas.getZ());
}
}
๐ Getting Started
๐งช Thermodynamics & Phase Behavior
โ๏ธ Process Simulation
๐ง Equipment Models
๐ PVT & Reservoir
๐ Standards & Quality
Installation
Maven:
<dependency>
<groupId>com.equinor.neqsim</groupId>
<artifactId>neqsim</artifactId>
<version>3.18.0</version>
</dependency>
Download: GitHub Releases
Resources