This repository contains implementations of Bruggeman's analytical solutions in Python.
The philosphy behind this repository is to collect implementations of analytical solutions so they are readily available for use in projects or for benchmarking other computations or models.
Very much a work in progress. Any contributions are welcome.
Normal install:
pip install bruggeman
Development install:
pip install -e .
The documentation is available here.
To build the documentation locally:
- Install the optional documentation dependencies
pip install bruggeman[docs](orpip install -e ".[docs]"). - Navigate to
docs/ - Enter the command
make html. - The documenation is contained in the
docs/_buildfolder. Openindex.htmlin your browser to view the documentation.
Any contributions are welcome! For the best results please follow the guidelines below:
- The analytical solutions are generally stored in the
bruggeman/*.pyfiles. Please select the appropriate python file for your solution. E.g. 1D flow solutions should be storedflow1d.py. Create a new file if your solution does not fit into the currently available files. - Create a notebook showcasing your solution. Put the notebook in
docs/examples/. - Add the notebook under the appropriate section in
docs/examples/index.rst. Follow the examples in the file to add your notebook. Don't forget to add your notebook to the table of contents as well. - Consider decorating your function with latexify by importing
from bruggeman.general import latexify_function. Follow the examples already present in the python files. This will allow you to render your formulas with LateX in a notebook.