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

How to set turbulent model constants in a journal file?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2019, 04:44
Question How to set turbulent model constants in a journal file?
  #1
New Member
 
Qing
Join Date: Mar 2013
Location: China
Posts: 29
Rep Power: 13
xq712000 is on a distinguished road
Dear All,

I want to change the model constants such as C1, C2, and Prandtl Number
in k-espilon turbulent models

How can I do this in a journal file ?
xq712000 is offline   Reply With Quote

Old   April 18, 2019, 14:30
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I found the TUI macros to set these to user-defined-functions in the expert settings, but this is probably too complex a solution. I couldn't find the TUI macros for setting these parameters directly like you can in the GUI. But you can still use rpstvar if you know the fluent built-in variable names. Unfortunately you didn't say which k-epsilon model you use and precisely which parameters you want to change for me to give a comlete answer... But here are some examples:

standard k-epsilon

Code:
(rpsetvar 'kecmu 0.09)
(rpsetvar 'ke1 1.44)
(rpsetvar 'kec2 1.92)
(rpsetvar 'kesigk 1)
(rpsetvar 'kesige 1.3)
realizable k-epsilon

Code:
(rpsetvar 'rke-kec2 1.9)
(rpsetvar 'kesigk 1)
(rpsetvar 'rke-kesige 1.2)
(rpsetvar 'prt 0.85)
 (rpsetvar 'wallprt 0.85)

Open the .cas file (saved as ascii) in with a text editor and you can figure out what these variable names are.
xq712000 and lisa_china like this.
LuckyTran is offline   Reply With Quote

Old   April 19, 2019, 03:38
Default
  #3
New Member
 
Qing
Join Date: Mar 2013
Location: China
Posts: 29
Rep Power: 13
xq712000 is on a distinguished road
Thank you very much! This is most helpful! ^_^
xq712000 is offline   Reply With Quote

Reply

Tags
journal file, model constant


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
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 15:08.