Pictures of the project
The pipe flow program is a simulation created for the calculations of flow speed through a pipe system. Given the starting and ending points, their heights and pressure, we can calculate the flow speed using extended Bernoulli's equation.
The program is recommended to be viewed on a screen larger than 1280x850, due to the window being a fixed size and not scaling down to smaller screens.
- There are three folders in the repository,
- Code, which contains all of the source code for the program as well as unit-testing in the file named projectTest.py
- Documents, which contain both the initial program plan and the final documentation of the entire project
- Images, which contain necessary image files for the program to work, such as the icons for pipes
Ideally the steps below would work for the installation:
- Create a new folder for the project to be downloaded into
- Open a command terminal in the Code folder
- Make sure that you have a version of python 3.6.1 or above installed
- Installing python is as simple as navigating to the download section on their official website: Download Python
- Type into the command terminal:
python main.py
- The program should now open up
In case that doesn't work, the following steps should give an alternative way
- Create a new folder for the project to be cloned into
- Open a command terminal in that folder
- Type:
git clone git@version.aalto.fi:tammh1/y2_2023_20296.git
or
git clone https://version.aalto.fi/gitlab/tammh1/y2_2023_20296.git
- Make sure that you have a version of python 3.6.1 or above installed along with pip
- Installing python is as simple as navigating to the download section on their official website: Download Python
To install Pip:
- Open cmd
- Type the following in order:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
- If the console recommends upgrading, type:
pip install --upgrade pip
- Open any preferred IDE (ex. PyCharm)
- Open terminal and type:
pip install PyQt6
- The program should now open up when the main.py file is booted through an IDE or any console
The program can be used in 3 simple steps:
- Choose the heights for both the starting and ending points (A and B)
- Build a pipesystem to connect these points
- Enter desired pressure values in kPa units and click "Calculate Flow!"-button
- For further use, the grid can be cleared to build a new pipesystem, though currently it doesn't impact the calculation results at all :(
- Adding pipes to the grid by clicking an empty square
- Deleting pipes by clicking them in the grid
- Switching between different placeable objects (4 pipes)
- Clear grid button for clearing the entire grid of all present objects
- Rotate button for rotating the pipes
- Two inputs for pressure at start and end points
- Start and end points are initialized at random positions and can be moved by clicking on the colored area of the grid
- Calculate button works, despite the calculations most likely being inaccurate
Checkpoints have been moved to another README file called 'README_OLD', allowing for this to be the main README containing all the information of the current and the final state of the project.