Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

MaNyh/NTR

Repository files navigation

NTR

Documentation Status

Numerical Test Rig. A Python-Package for Pre- and Postprocessing Computational Fluid Dynamics Simulations with a focus on transient and scale resolving simulations.

Installation

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

Features

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

Examples

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

Usage meshing

Create meshes using the igg-python-interpreter. Settings from the "case_settings.yml" are transmitted using a pickle-object.

Usage create_case

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)

Creating probes

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

Usage testing-module

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.

Credits

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.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors