Python bindings for the Java library NeqSim (via JPype), with python stubs
Project description
jNeqSim
Python interface for the NeqSim java package, with stubs. Java interface is created with jpype, and stubs are generated with stubgenj
PYPI
https://pypi.org/project/jneqsim/
[!NOTE] JNeqSim mirrors NeqSims versions
Demo
Example
from jneqsim import neqsim
def pressurize_gas():
inlet_fluid = neqsim.thermo.system.SystemSrkEos()
neqsim.thermo.system.SystemSrkEos()
thermo_ops = neqsim.thermodynamicOperations.ThermodynamicOperations(inlet_fluid)
inlet_fluid.addComponent("methane", 100.0)
inlet_fluid.setTemperature(10, "C")
inlet_fluid.setPressure(20, "bara")
inlet_fluid.setMultiPhaseCheck(True)
inlet_fluid.setSolidPhaseCheck("methane")
thermo_ops.TPflash()
thermo_ops.bubblePointTemperatureFlash()
inlet_fluid.initProperties()
enthalpy = inlet_fluid.getEnthalpy()
inlet_fluid.setPressure(1.0, "bara")
thermo_ops.PHflash(enthalpy)
Dependencies
:+1: Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jneqsim-2.5.33.tar.gz
(88.0 MB
view details)
Built Distribution
jneqsim-2.5.33-py3-none-any.whl
(85.9 MB
view details)
File details
Details for the file jneqsim-2.5.33.tar.gz
.
File metadata
- Download URL: jneqsim-2.5.33.tar.gz
- Upload date:
- Size: 88.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a65f097c242eacdf4f7f6e233991b3bebd31f5a6d9dcad8601a4423e5d955d8 |
|
MD5 | 2d1b35e19ec2c78b2261ea2ebf348d77 |
|
BLAKE2b-256 | 1b1a3eea8572446b62403fa2ab9a7a1fddb01001388e267d60890e8d179566a8 |
File details
Details for the file jneqsim-2.5.33-py3-none-any.whl
.
File metadata
- Download URL: jneqsim-2.5.33-py3-none-any.whl
- Upload date:
- Size: 85.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b92e3e4539c790f9bb956e5561f1890f3cc05eddb73008abfcf5f3564f3827c |
|
MD5 | 7f2167be22433b8c34c8d5e90ef3abf8 |
|
BLAKE2b-256 | 16900009af31d6324f17fd1d8a1aa0096e03b763b25f8bf36fd0e3821fc150f7 |