Easy Reduced Basis method.
EZyRB is a python library for the Model Order Reduction based on baricentric triangulation for the selection of the parameter points and on Proper Orthogonal Decomposition for the selection of the modes. It is ideally suited for actual industrial problems, since its structure can interact with several simulation software simply providing the output file of the simulations. Up to now, it handles files in the vtk and mat formats. It has been used for the model order reduction of problems solved with matlab and openFOAM.
See the Examples section below to have an idea of the potential of this package.
EZyRB is now provided with a very basic Graphic Unit Interface (GUI) that, in Ubuntu environment, looks like the one depicted below. This feature can be easily used even by the pythonists beginners with not much effort. Just see the tutorial 3.
Up to now, EZyRB GUI works on linux and Mac OS X computers.
EZyRB requires numpy, scipy and matplotlib. They can be easily installed via pip. Moreover EZyRB depends on vtk. These requirements cannot be satisfied through pip.
Please see the table below for instructions on how to satisfy the requirements.
| Package | Version | Comment |
|---|---|---|
| vtk | >= 5.0 | Simplest solution is conda install vtk |
The official distribution is on GitHub, and you can clone the repository using
> git clone https://github.com/mathLab/EZyRBTo install the package just type:
> python setup.py installTo uninstall the package you have to rerun the installation and record the installed files in order to remove them:
> python setup.py install --record installed_files.txt
> cat installed_files.txt | xargs rm -rfEZyRB uses Sphinx for code documentation. To build the html versions of the docs simply:
> cd docs
> make htmlThe generated html can be found in docs/build/html. Open up the index.html you find there to browse.
We are using Travis CI for continuous intergration testing. You can check out the current status here.
To run tests locally:
> python test.pyEZyRB is currently developed and mantained at SISSA mathLab by
under the supervision of Prof. Gianluigi Rozza.
Contact us by email for further information or questions about EZyRB, or suggest pull requests. EZyRB is at an early development stage, so contributions improving either the code or the documentation are welcome!
We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
-
It's generally best to start by opening a new issue describing the bug or feature you're intending to fix. Even if you think it's relatively minor, it's helpful to know what people are working on. Mention in the initial issue that you are planning to work on that bug or feature so that it can be assigned to you.
-
Follow the normal process of forking the project, and setup a new branch to work in. It's important that each group of changes be done in separate branches in order to ensure that a pull request only includes the commits related to that bug or feature.
-
To ensure properly formatted code, please make sure to use a tab of 4 spaces to indent the code. You should also run pylint over your code. It's not strictly necessary that your code be completely "lint-free", but this will help you find common style issues.
-
Any significant changes should almost always be accompanied by tests. The project already has good test coverage, so look at some of the existing tests if you're unsure how to go about it. We're using coveralls that is an invaluable tools for seeing which parts of your code aren't being exercised by your tests.
-
Do your best to have well-formed commit messages for each change. This provides consistency throughout the project, and ensures that commit messages are able to be formatted properly by various git tools.
-
Finally, push the commits to your fork and submit a pull request. Please, remember to rebase properly in order to maintain a clean, linear git history.
See the LICENSE file for license rights and limitations (MIT).