Welcome to hsbalance’s documentation!¶
Turbomachinery-Flexible-Rotors-Balancing¶
Python Tools to Model and Solve the problem of High speed Rotor Balancing. hsbalance was built on the shoulders of great packages 🛠️💡😍 :
CVXPY: The core package that is used to process the optimization problems needed.
pandas: For printing tabulated results.
Numpy: For Linear Algebra.
Xpress : Solver that is used to solve the splitting mass problems.
Jump to The Walk-Through Example for a quick starter.
Introduction¶
Rotor Balancing
When a rotating object does not have a perfect mass distribution, the center of gravity does not lay on its rotation axis. This causes rotating centrifugal force to occur and generates vibrating force transmitted to the support bearings. | The vibration forces is usually of destructive type and reduces the life of the machine. | Perfect mass distribution is generally impossible to achieve in real world, so the need to reduce the effect of unbalance force is needed.
The solution is usually to install a counter weight to produce the same magnitude of force as mush as the unbalance but in the opposite direction. This is called rotor balancing.
If you wish to be more familiar to dynamic rotor balancing and this documentation terminology refer to primer to rotor balancing
What is hsBalance
?¶
hsBalance is Python package used as an API interface to provide programmers with tools to analyze balancing flexible rotors.
Note
This is not a user interacting program which asks for inputs and gives outputs back. A premitive trial by me was this program (which still needs software refactoring and heavy documentation to be used properly).
hsBalance
Package¶
Binder¶
Installation¶
Warning
The installation steps were tested in Linux OS, other systems may differ accordingly.
Prerequisites¶
Python >= 3.8
Quick Use¶
Create an isolated virtual environment for python 3.8. :
Note
This step is optional
- for Anaconda users:
$ conda create -n hsbalance python=3.8 $ conda activate hsbalance
- Virtualenv users:
$ virtualenv hsbalance $ source hsbalance/bin/activate
OR: To specify python 3.8 version
$ virtualenv -p /usr/bin/python3.8 hsbalance $ source hsbalance/bin/activate
Installing Using PIP:
$ pip install hsbalance
hsBalance In Action¶
Take a tour in examples to see hsBalance
in action.
Walkthrough Example¶
A walkthrough through an example with detailed discussion can be found here.