# pvtlib
`pvtlib` is a Python library that provides various tools in the categories of thermodynamics, fluid mechanics, and metering. The library includes functions for calculating flow rates, energy balances, and other related calculations.
## Installation
You can install the library using `pip`:
```sh
pip install pvtlib
```
## Usage
Here is an example of how to use the library:
```py
from pvtlib.metering import differential_pressure_flowmeters
# Example usage of the calculate_flow_venturi function
result = differential_pressure_flowmeters.calculate_flow_venturi(D=0.1, d=0.05, dP=200, rho1=1000)
print(result)
```
## Features
- **Thermodynamics**: Thermodynamic functions
- **Fluid Mechanics**: Fluid mechanic functions
- **Metering**: Metering functions
- **aga8**: Equations for calculating gas properties (GERG-2008 and DETAIL)
- **Unit converters**: Functions to convert between different units of measure
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/chagenvik/pvtlib/blob/main/LICENSE) file for details.
## Contact
For any questions or suggestions, feel free to open an issue or contact the author at chaagen2013@gmail.com.
Raw data
{
"_id": null,
"home_page": "https://github.com/chagenvik/pvtlib",
"name": "pvtlib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "thermodynamics fluid-mechanics metering aga8",
"author": "Christian H\u00e5genvik",
"author_email": "chaagen2013@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/50/e1/009f5064cdb695374637d250a2f2b80d787f943344132d0fa0118215c580/pvtlib-1.2.0.tar.gz",
"platform": null,
"description": "# pvtlib\n\n`pvtlib` is a Python library that provides various tools in the categories of thermodynamics, fluid mechanics, and metering. The library includes functions for calculating flow rates, energy balances, and other related calculations.\n\n## Installation\n\nYou can install the library using `pip`:\n\n```sh\npip install pvtlib\n```\n\n## Usage\n\nHere is an example of how to use the library:\n\n```py\nfrom pvtlib.metering import differential_pressure_flowmeters\n\n# Example usage of the calculate_flow_venturi function\nresult = differential_pressure_flowmeters.calculate_flow_venturi(D=0.1, d=0.05, dP=200, rho1=1000)\nprint(result)\n```\n\n## Features\n\n- **Thermodynamics**: Thermodynamic functions\n- **Fluid Mechanics**: Fluid mechanic functions\n- **Metering**: Metering functions\n- **aga8**: Equations for calculating gas properties (GERG-2008 and DETAIL)\n- **Unit converters**: Functions to convert between different units of measure\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/chagenvik/pvtlib/blob/main/LICENSE) file for details.\n\n## Contact\n\nFor any questions or suggestions, feel free to open an issue or contact the author at chaagen2013@gmail.com.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A library containing various tools in the categories of thermodynamics, fluid mechanics, metering etc.",
"version": "1.2.0",
"project_urls": {
"Homepage": "https://github.com/chagenvik/pvtlib"
},
"split_keywords": [
"thermodynamics",
"fluid-mechanics",
"metering",
"aga8"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5af5625200108c04dddaf3e1764b32ade153a8ada07a059c6be89ff9d6bc23c9",
"md5": "3b9ee09f5c996c2695892d0f0930f7e8",
"sha256": "4b5e5c328d2a3f3d7510c08df57b2b7f6c01ba4b9a92348b619968ab94b1041c"
},
"downloads": -1,
"filename": "pvtlib-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b9ee09f5c996c2695892d0f0930f7e8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 42318,
"upload_time": "2025-01-17T16:31:55",
"upload_time_iso_8601": "2025-01-17T16:31:55.535410Z",
"url": "https://files.pythonhosted.org/packages/5a/f5/625200108c04dddaf3e1764b32ade153a8ada07a059c6be89ff9d6bc23c9/pvtlib-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "50e1009f5064cdb695374637d250a2f2b80d787f943344132d0fa0118215c580",
"md5": "664948569ea9f790befbd06ade1ddc6c",
"sha256": "804267535d67be6ca9c9da6617d133e053d1b9476bd7d7d2fd4ce44e9f31634f"
},
"downloads": -1,
"filename": "pvtlib-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "664948569ea9f790befbd06ade1ddc6c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 26415,
"upload_time": "2025-01-17T16:31:58",
"upload_time_iso_8601": "2025-01-17T16:31:58.254292Z",
"url": "https://files.pythonhosted.org/packages/50/e1/009f5064cdb695374637d250a2f2b80d787f943344132d0fa0118215c580/pvtlib-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-17 16:31:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "chagenvik",
"github_project": "pvtlib",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.26.2"
]
]
},
{
"name": "pyaga8",
"specs": [
[
">=",
"0.1.8"
]
]
}
],
"lcname": "pvtlib"
}