This Python 3 package is a collection of functions for tribology research and education, including contact mechanics, lubrication science, data handling and data processing. It provides implementations of analytical and numerical calculation routines together with frequently used constants.
The tribology package is hosted on GitHub:
https://github.com/moritzploss/tribology
You can install the package from the PyPI index using pip:
pip install tribology
After installation, it is recommended to import the package and all its modules as follows:
import tribology as tr
The package
documenation is provided through GitHub Pages; the Sphinx source files
can be found in the /docs
directory. Simple examples of how to use
the package are provided in the /examples
directory.
The package is provided under an MIT license. See the
LICENSE.txt
file for more information.
You can refer to the tribology package in scientific publications by using its DOI. The following DOI will resolve all releases of the package and automatically point to the latest release. A more detailed overview of the DOI release history can be found through Zenodo:
DOI: 10.5281/zenodo.1117727
The suggested citation format is:
[List of contributors] et al., Tribology -- A Python Package for Tribology
Research and Education, version v[x.x.x] ([date]). doi: [DOI]
Please refer to the release history for a detailed overview.
The following releases of NumPy may cause file access errors when using data
import and processing routines of the tribology package. It is
recommended to use the NumPy release(s) specified in setup.py
.
1.16.2
1.16.3
Some older versions of the tribology package (0.4 <= version < 0.5) may raise the following error when imported:
ModuleNotFoundError: No module named 'cv2'
This is caused by a missing install_requires
argument in
setup.py
. To fix this, either update to a later version of the
package, or install the missing cv2
package manually:
pip install opencv-python