|
[Sponsors] |
How to set turbulent model constants in a journal file? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 18, 2019, 04:44 |
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 |
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 ? |
|
April 18, 2019, 14:30 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
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) 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. |
|
April 19, 2019, 03:38 |
|
#3 |
New Member
Qing
Join Date: Mar 2013
Location: China
Posts: 29
Rep Power: 13 |
Thank you very much! This is most helpful! ^_^
|
|
Tags |
journal file, model constant |
|
|
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 |