Skip to content
Snippets Groups Projects
README.rst 2.37 KiB
Newer Older
============
NTRfC README
============
Malte Nyhuis's avatar
Malte Nyhuis committed

MaNyh's avatar
MaNyh committed
Numerical Test Rig for Cascades.
Malte Nyhuis's avatar
Malte Nyhuis committed


* Free software: MIT license
* Documentation: https://ntrfc.readthedocs.io.
Malte Nyhuis's avatar
Malte Nyhuis committed
* NTRfC is the base of the (NTRFlows)[https://gitlab.uni-hannover.de/tfd_public/tools/NTRFlows] repository, a workflow for cfd parameter studies


Features
Easy geometry and post-processing visualization and manipulation with pyvista.
Tested methods and functions for math, time-series, and mesh quality analysis.
Malte Nyhuis's avatar
Malte Nyhuis committed

Dependencies
Malte Nyhuis's avatar
Malte Nyhuis committed

NTRfC v0.1.0 and any following version is based on Python 3.10. Only older versions can be used with older versions of Python. Library requirements will be installed with the package itself.
Installation
Malte Nyhuis's avatar
Malte Nyhuis committed

NTRfC is utilizing powerful and complex dependencies like pyvista and gmsh. We strongly recommend using virtual or conda environments for installation.
Malte Nyhuis's avatar
Malte Nyhuis committed

For more information, see:

    virtualenv: https://pypi.org/project/virtualenv/
    miniconda: https://docs.conda.io/en/latest/miniconda.html
    anaconda: https://docs.anaconda.com/anaconda/install/index.html
    mamba: https://mamba.readthedocs.io/en/latest/installation.html
### Installation from gitlab with pip

Malte Nyhuis's avatar
Malte Nyhuis committed
```
Malte Nyhuis's avatar
Malte Nyhuis committed
pip install git+https://gitlab.uni-hannover.de/tfd_public/tools/NTRfC.git
Malte Nyhuis's avatar
Malte Nyhuis committed
```
Malte Nyhuis's avatar
Malte Nyhuis committed

### Installation from source
Malte Nyhuis's avatar
Malte Nyhuis committed

After cloning the repository, go to the project root dir and type

Malte Nyhuis's avatar
Malte Nyhuis committed
```
Malte Nyhuis's avatar
Malte Nyhuis committed
python setup.py install
Malte Nyhuis's avatar
Malte Nyhuis committed
```
### Editable installation from source with pip
Malte Nyhuis's avatar
Malte Nyhuis committed

After cloning the repository, go to the project root dir and type
Malte Nyhuis's avatar
Malte Nyhuis committed

Malte Nyhuis's avatar
Malte Nyhuis committed
```
Malte Nyhuis's avatar
Malte Nyhuis committed
pip install -e .
Malte Nyhuis's avatar
Malte Nyhuis committed
```
Malte Nyhuis's avatar
Malte Nyhuis committed
This way you have NTRfC installed but the code is not installed, but linked to the source-code.
You don't have to reinstall the package after your edits.
This speeds up testing and will lead to less debugging time.
Malte Nyhuis's avatar
Malte Nyhuis committed

Malte Nyhuis's avatar
Malte Nyhuis committed

use a singularity container from ntrfc singularity releases:  https://cloud.sylabs.io/library/nyhuma/ntrflows/ntr.sif].
The containers will come with a virtual graphics card and a xvfb display-server, enabling you to render on hpc-systems and any other unprepared system with limited graphics capability.
Malte Nyhuis's avatar
Malte Nyhuis committed

## Credits

This package was created with Cookiecutter and the `audreyr/cookiecutter-pypackage` project template. It uses the following libraries:
Malte Nyhuis's avatar
Malte Nyhuis committed

- [pyvista](https://github.com/pyvista)
- [gmsh](http://gmsh.info/)
- [Cookiecutter](https://github.com/audreyr/cookiecutter)
- [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage)