NeqSim Python 3.9.1
NeqSim Python 3.9.1
NeqSim Python is the Python interface to the NeqSim engine for thermodynamic calculations, physical properties, process simulation, and PVT analysis from Python and Jupyter notebooks.
Highlights
- Bundles the NeqSim Java 3.9.1 engine for Java 11+ runtimes.
- Bundles the NeqSim Java 3.9.1 engine for Java 8 runtimes.
- Aligns Python package metadata and the conda recipe with version 3.9.1.
Install
Use pip when you already have Java installed:
pip install --upgrade neqsim==3.9.1Use conda when you want OpenJDK installed with the package:
conda install -c conda-forge neqsimRequirements:
- Python 3.9 or newer.
- Java 8 or newer for pip installs.
- Conda installs include OpenJDK through conda-forge.
Verify the installed package version without starting the JVM:
python -c "from importlib.metadata import version; print(version('neqsim'))"Quick Start
from neqsim.thermo import TPflash, fluid, printFrame
natural_gas = fluid("srk")
natural_gas.addComponent("methane", 0.85)
natural_gas.addComponent("ethane", 0.10)
natural_gas.addComponent("propane", 0.05)
natural_gas.setTemperature(25.0, "C")
natural_gas.setPressure(60.0, "bara")
natural_gas.setMixingRule("classic")
TPflash(natural_gas)
printFrame(natural_gas)Useful Links
- Full changelog: v3.9.0...v3.9.1
- Documentation: https://equinor.github.io/neqsimhome/
- Python examples: https://github.com/equinor/neqsim-python/tree/master/examples
- Java engine: https://github.com/equinor/neqsim
- Discussions: https://github.com/equinor/neqsim/discussions