|
[Sponsors] |
December 12, 2016, 19:18 |
how to add turbulence model in OpenFoam
|
#1 |
New Member
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10 |
Hi
I'm working on a Airfoil model in OpenFoam and it is required to Implement 4 new turbulence models. I also trying to follow this tutorial (page 11 and 12) http://www.tfd.chalmers.se/~hani/kur...ort_task_3.pdf but I found it a little complicated as the commands style is a bit different and not easy to follow as I am new to the OpenFoam and terminal things. could someone provide me an easy a step by step way to implement a new turbulence model??? many Thanks, Salim |
|
December 13, 2016, 21:25 |
|
#2 |
New Member
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10 |
any help????
|
|
January 30, 2017, 04:28 |
|
#4 |
New Member
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10 |
I use Openfoam 2.3 version currently
and this is my case files before running the simpleFoam: http://www.tfd.chalmers.se/~hani/kur...bedi/files.tgz |
|
January 30, 2017, 20:51 |
|
#5 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
Firstly, you really should spend a little time learning to use the terminal. I recommend going through the lesson at http://swcarpentry.github.io/shell-novice/
After that, the tutorial report you linked should work if you follow it step-by-step. |
|
January 30, 2017, 21:02 |
|
#6 | |
New Member
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10 |
Quote:
I have been working on the airfoil case and I got this so far http://www.tfd.chalmers.se/~hani/kur...bedi/files.tgz I have been facing an issue which is when I try to run a simpleFoam to the my_airfoil_alpha1 file case it appears an error message saying that Unknown RASModel type mySpalartAllmaras.. I guess that I should add new turbulence model!! but How ???? please help me I am stuck |
||
January 30, 2017, 21:14 |
|
#7 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
You need to add your new turbulence models library to system/controlDict so OpenFOAM will know where to find the compiled code.
So, following the tutorial, you will need in controlDict: Code:
libs ("libmyIncompressibleRASModels.so"); |
|
January 30, 2017, 21:26 |
|
#8 | |
New Member
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10 |
Quote:
but I got errors when I am trying to compile the turbulence models after I execute the command ( wmake ) the error appears in the red colour for all 4 cases which are: mySpalartAllmaras , myZoneSpalartAllmaras, myAlphaPdcSpalartAllmaras, myPdcSpalartAllmaras and this appears at the bottom of the message after executing (wmake ) command in the terminal |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Which turbulence model is applicable for Plain diffuser flow simulation in openFOAM? | mukut | OpenFOAM Running, Solving & CFD | 4 | January 30, 2015 09:06 |
OpenFOAM: LES turbulence model names | Ollie | OpenFOAM | 5 | January 7, 2013 11:24 |
Add additional scalar to turbulence model | john_w | OpenFOAM | 1 | December 23, 2010 13:45 |
Why Turbulence models are not universal. | Senthil | Main CFD Forum | 4 | July 5, 2000 05:34 |