Demonstration of an orifice calculation module
Project description
Demo Orifice Calculation
A simple python package containing a single-function module which calculates the orifice diameter required to acheive a given flowrate in a pipe. The calculation itself is straightforward and serves as an example of how Python libraries could be used to manage verified and tested calculations rather than using uncontrolled and untrusted spreadsheets.
Installation
You can install this demo orifice calculation module from PyPI:
pip install demo-orifice-calc
How to use
The module can be imported into any python 3.x environment such as Jupyter. Or, using the Python interpreter:
>>> from demo_orifice_calc import orifice_calc
>>> help(orifice_calc)
As a working example if we want to find the orifice diameter required to give a 1.0 m headloss in a 300 mm diameter pipe at 100 L/s :
>>> orifice_calc(0.1, 0.3, 1.0)
Trust
In order to gain confidence in the validity of the results of calculation functions like this a test suite can be created. This demo library includes one such test which can be checked by looking for the "build | passing" icon near the top of the page on GitHub.
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
Built Distribution
Hashes for demo_orifice_calc-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20dd0aaee0e23cd70b48731eba13c7f90cc314fd4e4c463d9b58554c3b88c2f6 |
|
MD5 | bdb74f801e18aee90aeb5a9e15ac7306 |
|
BLAKE2b-256 | 28b67017a2821fe023da7faecae5726ac9b93bf70525f7d0e48ed4b1ad132e82 |