Skip to content

NeqSim Python 3.9.1

Choose a tag to compare

@EvenSol EvenSol released this 30 Apr 18:58
· 3 commits to master since this release

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.1

Use conda when you want OpenJDK installed with the package:

conda install -c conda-forge neqsim

Requirements:

  • 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