Numerical Test Rig. A Python-Package for Pre- and Postprocessing Computational Fluid Dynamics Simulations with a focus on transient and scale resolving simulations.
- Free software: MIT license
- Documentation: https://NTR.readthedocs.io.
Install package using pip 'pip install PATH/TO/PACKAGE'
Or install via 'python -m setup install'
As a developer, install development-requirements via 'pip install -r requirements_dev.txt'
Be aware that this package is in constant development. A test-module should keep things running. But not everything is tested and not everything can be tested within NTR itself. When using this package, please contribute to this collection of methods. Write issues, write your own code and make merge-requests for methods, that bring benefits
- preprocessing
- geometrycreation
- experimental implementation of a naca-profile-generator
- meshing for cascade-cases (using numeca igg and it's strong smoothing algorithm)
- casecreation from ascii-based templates, independend from the solver that will be used
- postprocessing
- tbd
I am working on the examples all the time. Thats why I started to use a test-module in my development-enviroment for the examples. Though I cant test all examples within the scope of a continious integration system, I am trying to keep the examples working.
There should be a README as
Create meshes using the igg-python-interpreter. Settings from the "case_settings.yml" are transmitted using a pickle-object.
Create cfd-cases with this function. Use an example-case to learn how to set the "case.yml". The function will create standardized cases for conducting and monitoring simulations. Only OpenFOAM-CascadeCases implemented yet. Large-Eddy-Simulations are running but not validated. RAS-cases are not parametrized yet. The RAS-Package is only a dummy-package right now
Based on the settings, the function is calling create_probes (see below)
there is a method implemented for the creation of probes in openfoam-srs-cases
Create probe-dictionaries with this algorithm. You will need the profile-surface as a vtk (PolyData). Set your options in the "case.yml"-file. Try out an example, you need a *.vtk - domain for a case. Only cascade-cases implemented.
The function can be called using
from NTR.preprocessing.openfoam import createProbesProfileDict
- createProbesProfileDict("pathtovtk",pden_Probes_Profile_SS, pden_Probes_Profile_PS,
- interval_time_steps_probes, output_path, tolerance=1e-6
The dictionary will be written out in the working directory
The module can be partially tested using pytest and the testing-module in /tests/tesT_NTR.py There will be plenty of warnings, because things are not coded correctly. The testing will perform tests on the main geometrical functions. Further tests are welcome. If things are not working correctly, let me know and I will develop tests.
The NTR-Package is based on the NTR-Package by Mark Ziesse (ziesse@tfd.uni-hannover.de)
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.