Name | jneqsim JSON |
Version |
3.0.31
JSON |
| download |
home_page | None |
Summary | Python bindings for the Java library NeqSim (via JPype), with python stubs |
upload_time | 2025-07-18 03:35:09 |
maintainer | Jørgen |
docs_url | None |
author | Jørgen |
requires_python | <4.0,>=3.9 |
license | Apache-2.0 |
keywords |
neqsim
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# jNeqSim
[](https://opensource.org/licenses/Apache-2.0)
Python interface for the [NeqSim java package](https://equinor.github.io/neqsimhome/), with stubs. Java interface is created with [jpype](https://jpype.readthedocs.io/en/latest/index.html#), and stubs are generated with [stubgenj](https://gitlab.cern.ch/scripting-tools/stubgenj)
## PYPI
[https://pypi.org/project/jneqsim/](https://pypi.org/project/jneqsim/)
> [!NOTE]
> JNeqSim mirrors NeqSims versions
## Demo

## Example
```python
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
- [jpype](https://jpype.readthedocs.io/en/latest/index.html#)
<a id="Contributing"></a>
## :+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.
Raw data
{
"_id": null,
"home_page": null,
"name": "jneqsim",
"maintainer": "J\u00f8rgen",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": "jenge@equinor.com",
"keywords": "neqsim",
"author": "J\u00f8rgen",
"author_email": "jenge@equinor.com",
"download_url": "https://files.pythonhosted.org/packages/45/72/01314f671f697a03a032f6296cfc9688d633905901d8f0821ffd77871a34/jneqsim-3.0.31.tar.gz",
"platform": null,
"description": "# jNeqSim\n\n[](https://opensource.org/licenses/Apache-2.0)\n\nPython interface for the [NeqSim java package](https://equinor.github.io/neqsimhome/), with stubs. Java interface is created with [jpype](https://jpype.readthedocs.io/en/latest/index.html#), and stubs are generated with [stubgenj](https://gitlab.cern.ch/scripting-tools/stubgenj)\n\n\n## PYPI\n\n[https://pypi.org/project/jneqsim/](https://pypi.org/project/jneqsim/)\n> [!NOTE]\n> JNeqSim mirrors NeqSims versions\n\n## Demo\n\n\n\n\n## Example\n\n```python\nfrom jneqsim import neqsim\n\n\ndef pressurize_gas():\n inlet_fluid = neqsim.thermo.system.SystemSrkEos()\n neqsim.thermo.system.SystemSrkEos()\n thermo_ops = neqsim.thermodynamicOperations.ThermodynamicOperations(inlet_fluid)\n inlet_fluid.addComponent(\"methane\", 100.0)\n\n inlet_fluid.setTemperature(10, \"C\")\n inlet_fluid.setPressure(20, \"bara\")\n inlet_fluid.setMultiPhaseCheck(True)\n inlet_fluid.setSolidPhaseCheck(\"methane\")\n\n thermo_ops.TPflash()\n thermo_ops.bubblePointTemperatureFlash()\n\n inlet_fluid.initProperties()\n enthalpy = inlet_fluid.getEnthalpy()\n\n inlet_fluid.setPressure(1.0, \"bara\")\n thermo_ops.PHflash(enthalpy)\n```\n\n## Dependencies\n\n- [jpype](https://jpype.readthedocs.io/en/latest/index.html#)\n\n\n<a id=\"Contributing\"></a>\n\n## :+1: Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Python bindings for the Java library NeqSim (via JPype), with python stubs",
"version": "3.0.31",
"project_urls": {
"Homepage": "https://github.com/equinor/jneqsim",
"Repository": "https://github.com/equinor/jneqsim"
},
"split_keywords": [
"neqsim"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8864974582ab0685aa584a99489b07ef9b7cb0c4a8abce1102dced05f3c7ed05",
"md5": "e0ff1f891d2101338c0cdaabde0de7fa",
"sha256": "4f701b340dd6c36457c73a1877abf55f9a4186603ee54cb222914b329c21b095"
},
"downloads": -1,
"filename": "jneqsim-3.0.31-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0ff1f891d2101338c0cdaabde0de7fa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 94028909,
"upload_time": "2025-07-18T03:35:03",
"upload_time_iso_8601": "2025-07-18T03:35:03.832427Z",
"url": "https://files.pythonhosted.org/packages/88/64/974582ab0685aa584a99489b07ef9b7cb0c4a8abce1102dced05f3c7ed05/jneqsim-3.0.31-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "457201314f671f697a03a032f6296cfc9688d633905901d8f0821ffd77871a34",
"md5": "4dec4ed39ca77c158c4636fb09cc28e7",
"sha256": "5579e98b8fe75cfc19067ae7f45fda1874c5c8394c22324f9530f4a9846b8f59"
},
"downloads": -1,
"filename": "jneqsim-3.0.31.tar.gz",
"has_sig": false,
"md5_digest": "4dec4ed39ca77c158c4636fb09cc28e7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 96189789,
"upload_time": "2025-07-18T03:35:09",
"upload_time_iso_8601": "2025-07-18T03:35:09.025496Z",
"url": "https://files.pythonhosted.org/packages/45/72/01314f671f697a03a032f6296cfc9688d633905901d8f0821ffd77871a34/jneqsim-3.0.31.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-18 03:35:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "equinor",
"github_project": "jneqsim",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "jneqsim"
}