How to change model constants with TUI-File?
Hello everybody,
I have written a TUI File that builds my model and solves it. Extract: /define/models/viscous/kw-sst yes The whole file is implemented in a batch file so I can run it iteratively. Now I would like to change the model constants of my k-omega-sst- model, like "a1" or the "wall prandtl number". I have not found out how this can be done by TUI. Is that not possible? I have looked through the text command list but I did not find it. Best regards Sarah |
It's possible but not so easily.
You have to use the rpsetvar command and manually set the variables, which means you have to know their built-in names. And as you know, the names are not documented anywhere. But remember that the case file contains all the information about your setup and the case file can be read by a text editor (as long as you don't save in binary language & as long as you have enough memory to open the entire mesh). It helps to have a small case file for testing purposes where you can easily do this. Now if you were to open the .cas file you would find lines like the following, somewhere: Code:
(kw-not-trans-sst-production-limiter? #t) Code:
(rpsetvar' sst-a1 0.32) |
Thank you very much!
I will try thar approach. What I did to know was recording a journal file where I only save the variable, extract the commands and this works quite well. But for saving some lines, I will implement your proposal. |
This is interesting. I was looking for away in changing turbulence model depending on a conditional statement.
If temperature per a cell is greater than 500K use k-e RNG Else use k-e Don't know how to write such a conditional statement in a TUI. Hope someone can show an example, thanks. |
TUI command to run k-e RNG
Code:
define models viscous> ke-rng? yes 1. Get temperature 2. compare with criteria 3. execute condition you may run this script on each timestep using execute commands |
All times are GMT -4. The time now is 03:34. |