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

How to access turbulence model constants

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2022, 05:25
Default How to access turbulence model constants
  #1
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 6
Swirl is on a distinguished road
Hi everyone,

does anyone know, if there is a way to access the model constants of your turbulence model, e.g. Cmu of the k-Epsilon model?

It seems like there is no functions that returns those values. I could hard code them, but automatically using the correct values would be more elegant, if possible.
Swirl is offline   Reply With Quote

Old   March 29, 2022, 06:14
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
There is a member function (actually it is also public) which returns the coefficient dictionary: https://www.openfoam.com/documentati...8H_source.html


having the dictionary you can access also the entries


Best


Michael
mAlletto is offline   Reply With Quote

Old   March 29, 2022, 07:30
Default
  #3
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 6
Swirl is on a distinguished road
Ah, I missed that one. Perfect. Thank you very much!
Swirl is offline   Reply With Quote

Reply

Tags
turbulence models


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
[GUIDE] Switching turbulence model to SpalartAllmaras gabrielfelix OpenFOAM Running, Solving & CFD 1 March 24, 2022 21:19
Turbulence model activation Scaty Main CFD Forum 8 October 26, 2021 19:33
Access turbulence model type karim_mohamed OpenFOAM Programming & Development 0 December 22, 2020 07:11
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
changing model constants in k-e turbulence model Sunil CFX 3 October 3, 2006 13:12


All times are GMT -4. The time now is 14:52.