Fluid Dynamics Calculations
Project description
Description
This Python module is meant to facilitate the calculations of head losses in circuits an the selection of suitable pomps. It is built on Fluids https://pypi.org/project/fluids/, Thermo https://pypi.org/project/thermo/ and Pint https://pypi.org/project/Pint/.
Use Cases
easy calculation of head losses
pump working point determination
visualisation of pump and circuit curves and working point
orifice dimensioning
Calculations
Interactive Plot
The Fluid Solve tool
This is a tool of toolkit, not a user friendly appication to do headloss calculations. Thus the calculations scripts need to be written in Python. Although this is all relative simple code, some knowledge of python will be necessary. We will use Python (at least version 3.10) with some additional libraries. If you install it via pip (see below), these dependencies will be installed together with the tool,
Usage
This module contains a number of functionalities:
Medium definition.
Material definition.
Component definition.
Pump definition.
Path definition (consisting of one ore more components).
Network definition (consisting of a network of connected components).
Pump and component selection (from catalogue)
Plotting (static or interactive) Q-H graphs.
Orifice dimensioning and other utility tools.
Take a look at the included examples for more info.
IMPORTANT NOTE:
In order to reduce typing there is only one namespace: fluidsolve. So when in the documentation there is: fluidsolve.extplot.QHcurve, you have to type fluidsolve.QHcurve. Or when you from fluidsolve import *, you simply type QHcurve.
Installation
fluidsolve is just a Python package, so:
pip install fluidsolve
Step by step installation (basic)
Two things are needed: a Python environment and an editor to create and run yous scripts. For the python enviromnment, the most simple way is to download and install a Python interpreter. As en editor one has a lot of options, but I would suggest something like Notepad++ or VSCode.
Every Python setup will do. But as an example the procedure below should work on windows.
create on D: following map structure(this will be the loacation where you place your calculation scripts)
D:\ └── fluidsolve\
Download a python interpreter from https://www.python.org/downloads/windows/; choose Windows installer (64-bit)
Double click to install; make sure to add the interpreter to path.
Download Visual Studio Code (vscode) from https://code.visualstudio.com/;
Double click to install
- set the default terminal
Press Ctrl+Shift+P (or F1) to open the Command Palette.
To search for Terminal Settings type: Terminal: Select Default Profile
choose command prompt
- Install some vscode extensions:
Python
- Select Python default interpreter
Press Ctrl+Shift+P (or F1) to open the Command Palette.
To search for Terminal Settings type: Python: select interpreter
choose the interpreter
To test the interpreter: open a terminal and type: python –version
- Install library (fluidsolve is just a Python package)
in the terminal:
pip install fluidsolve
Step by step installation (virtual environment)
When you already have a Python environment, or you want to separate this form other python environments, you have to add some steps in the procedure before, just before installing the fluidsolve library. The complete procedure becomes (for details see above):
create on D: following map structure
D:\
└── fluidsolve\
└── ... (rest of the files)
Download a python interpreter from https://www.python.org/downloads/windows/; choose Windows installer (64-bit)
Double click to install; make sure to add the interpreter to path.
Download Visual Studio Code (vscode) from https://code.visualstudio.com/;
Double click to install
- set the default terminal
Press Ctrl+Shift+P (or F1) to open the Command Palette.
To search for Terminal Settings type: Terminal: Select Default Profile
choose command prompt
- Install some vscode extensions:
Python
Pylint
…
- Setup a virtual environment
Open the Command Palette (Ctrl+Shift+P), search for Python: Create Environment
Select venv
Enter the python interpreter
if in dev mode: select optional dependencies (check them all - also doc and test); also see the development section.
After selecting the Python interpreter version, a notification will show the progress of the environment creation.
The environment folder (.venv) will appear in your workspace.
Open the Command Palette (Ctrl+Shift+P), search for Python: Select Interpreter
select the python interpreter from the venv
To test the interpreter: open a terminal and type: python –version
- Install library (fluidsolve is just a Python package)
If you want to install it in dev mode: see that section
in the terminal:
pip install fluidsolve
Support
This library is under development. So breaking changes are always possible.
fluidsolve works with Python 3.10 and higher.
Development setup
See the development section.
Usage
Take a look at the example scripts.
Eventually activate the virtual environment: d:fluidsolve_venvfluidsolveScriptsactivate You can check if it is activated with: pip list
Data from printed pump characteristics can easily be extracted by using a tool such as webwplot digitizer: https://apps.automeris.io/wpd4/
References
homepage : https://github.com/DOSprojects/fluidsolve.git
documentation : https://fluidsolve.readthedocs.io/en/latest/index.html
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fluidsolve-0.9.3.tar.gz.
File metadata
- Download URL: fluidsolve-0.9.3.tar.gz
- Upload date:
- Size: 181.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e4b13da67c6069a33630671e044543d026991b736a753779a8179659953a4a
|
|
| MD5 |
d3ab89a04130a349dbb0c664b966251f
|
|
| BLAKE2b-256 |
f501d0d9109e59ea0358545e2db4eae1725e81a702055353eccf8e73a118dd0f
|
Provenance
The following attestation bundles were made for fluidsolve-0.9.3.tar.gz:
Publisher:
workflow.yml on DOSprojects/fluidsolve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fluidsolve-0.9.3.tar.gz -
Subject digest:
18e4b13da67c6069a33630671e044543d026991b736a753779a8179659953a4a - Sigstore transparency entry: 1396755951
- Sigstore integration time:
-
Permalink:
DOSprojects/fluidsolve@f5e83ce5dc6b41de13a1a3b368646794e044f4d2 -
Branch / Tag:
refs/tags/0.9.3 - Owner: https://github.com/DOSprojects
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@f5e83ce5dc6b41de13a1a3b368646794e044f4d2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fluidsolve-0.9.3-py3-none-any.whl.
File metadata
- Download URL: fluidsolve-0.9.3-py3-none-any.whl
- Upload date:
- Size: 225.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a0810fd3d35290466c92117f22df31fc625f7abacbe6031bc5bd092bf15502c
|
|
| MD5 |
d1adf7cf71c7d5678e21045465060d8b
|
|
| BLAKE2b-256 |
a91fbe4934614217827e9b9929c5e0b0ef22f40d463c1b495b880df5a8a903c4
|
Provenance
The following attestation bundles were made for fluidsolve-0.9.3-py3-none-any.whl:
Publisher:
workflow.yml on DOSprojects/fluidsolve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fluidsolve-0.9.3-py3-none-any.whl -
Subject digest:
5a0810fd3d35290466c92117f22df31fc625f7abacbe6031bc5bd092bf15502c - Sigstore transparency entry: 1396755959
- Sigstore integration time:
-
Permalink:
DOSprojects/fluidsolve@f5e83ce5dc6b41de13a1a3b368646794e044f4d2 -
Branch / Tag:
refs/tags/0.9.3 - Owner: https://github.com/DOSprojects
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@f5e83ce5dc6b41de13a1a3b368646794e044f4d2 -
Trigger Event:
release
-
Statement type: