CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

how to add turbulence model in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2016, 19:18
Default how to add turbulence model in OpenFoam
  #1
New Member
 
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10
Salim is on a distinguished road
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
Salim is offline   Reply With Quote

Old   December 13, 2016, 21:25
Default
  #2
New Member
 
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10
Salim is on a distinguished road
any help????
Salim is offline   Reply With Quote

Old   December 14, 2016, 18:24
Default
  #3
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14
pbachant is on a distinguished road
Which OpenFOAM version?
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   January 30, 2017, 04:28
Default
  #4
New Member
 
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10
Salim is on a distinguished road
Quote:
Originally Posted by pbachant View Post
Which OpenFOAM version?
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
Salim is offline   Reply With Quote

Old   January 30, 2017, 20:51
Default
  #5
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14
pbachant is on a distinguished road
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.
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   January 30, 2017, 21:02
Default
  #6
New Member
 
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10
Salim is on a distinguished road
Quote:
Originally Posted by pbachant View Post
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.

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
Salim is offline   Reply With Quote

Old   January 30, 2017, 21:14
Default
  #7
Senior Member
 
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14
pbachant is on a distinguished road
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");
__________________
Home | Twitter | GitHub
pbachant is offline   Reply With Quote

Old   January 30, 2017, 21:26
Default
  #8
New Member
 
Salim
Join Date: Dec 2016
Posts: 22
Rep Power: 10
Salim is on a distinguished road
Quote:
Originally Posted by pbachant View Post
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");
I already have done that...(you can check the link http://www.tfd.chalmers.se/~hani/kur...bedi/files.tgz)


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
Salim is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:24.