CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to make parameter option in turbulent model constants (https://www.cfd-online.com/Forums/fluent/225545-how-make-parameter-option-turbulent-model-constants.html)

Baejh March 31, 2020 05:05

How to make parameter option in turbulent model constants
 
Hi everyone!
I study about SST transition model coefficients effect on flat plate using sensitivity analysis.
So I have to simulate about 100 case changing coefficients.
For convenience, I want to set parameter about model coefficients.
In my fluent version(18.2), turbulent model coefficients can't make parameter setting like inlet condition(e.g. velocity magnitude).
Is there other fluent version to make parameter setting or other way to macro?

Thank you for reading my question:)

vinerm March 31, 2020 09:27

Model Coefficients
 
By model coefficients, are you referring to physical model, i.e., coefficients used by the turbulence model or do you mean some boundary or initial conditions for turbulence?

Both can be controlled via commands, however, where will you get 100 values for coefficients of the turbulence model?

Baejh April 1, 2020 06:34

Dear vinerm, Thank you for your response.

I mean turbulence closure coefficients like Ca1, Ca2 ,.. in SST transition model.
Make the about 100 cases changing the closure coefficients and get the result like skin friction(QOI) from each cases.
So I want to know how to change the model coefficients each case automatically(like macro).

vinerm April 1, 2020 07:42

Model Coefficients
 
Those can be changed easily using rpsetvar, however, do note that those are not meant to be changed drastically or without any logic.

Command to change an rp variable is

(rpsetvar '<variable name> new-value)

e.g., if you want to change Ca1 from 2 to 2.1, you may do it like

(rpsetvar 'trans-sst-ca1 2.1)

For variables that are enabled only with transition model, you have to use trans in front of their name, such as, in the example above. For those that are native to SST model, you can call those without trans, such as, \beta_{i1} is called sst-beta-i1

Remember that parentheses are part of the command.

Baejh April 2, 2020 00:32

Thank you so much How to change the closure coefficient!
I will try to make a case for this way.


All times are GMT -4. The time now is 18:35.