ladybug-tools / butterfly

:butterfly: A light python API for creating and running OpenFoam cases for CFD simulation.
http://ladybug-tools.github.io/butterfly.html
GNU General Public License v3.0
249 stars 71 forks source link

how to apply K Omega model for wind tunnel? #327

Open ymg2007 opened 6 years ago

ymg2007 commented 6 years ago

Hi guys,the turbulent model in Butterfly is RNGkEpsilon model. I want to compare the difference of RNGkEpsilon and K Omega. As I knew the atmosphere boundary layer profice is defined for RNGkEpsilon model, not compatible for K Omega model. I can define K Omega model as RAS model.

image

But when running simpleFoam, It gave me the error "cannot find the o file.

image

image

So is there any method or component or any Python code can using K Omega model for wind tunnel?

Zarisu commented 6 years ago

I had this issue a while back and what i did was to generate a file like the one you can find in the tutorial exsample for OpenFoam on github. You will of cause have to match it to your boundary conditions for it to work.

You can code your way out of this, which is what i did. However, this is a suggestion for an easy fix.

Solution is 'simply' to create the omega.c file before running your simulation and placing it in your folder.

I attached the omega file that i have used for one of my previous windtunnel simulations: omega.txt

Code from tutorial for motorBike can be found at: https://github.com/OpenFOAM/OpenFOAM-2.2.x/blob/master/tutorials/incompressible/simpleFoam/motorBike/0.org/omega

Best Regards

Zarisu <<