CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Set Parameters of a Turbulence Model (https://www.cfd-online.com/Forums/su2/221767-set-parameters-turbulence-model.html)

alinaghedifar October 29, 2019 09:07

Set Parameters of a Turbulence Model
 
Hi everyone
I need to change some parameters of turbulence model (e.g. TurbSA_E_COMP) which are not normally available in config file. For example, I want change "cw3_6" parameter in "TurbSA_E_COMP". Could you please help me?
The code of "TurbSA_E_COMP" is located in "src\numerics_direct_turbulent.cpp":


CSourcePieceWise_TurbSA_E_COMP::CSourcePieceWise_T urbSA_E_COMP(unsigned short val_nDim, unsigned short val_nVar,
CConfig *config) : CNumerics(val_nDim, val_nVar, config) {

incompressible = (config->GetKind_Regime() == INCOMPRESSIBLE);
rotating_frame = config->GetRotating_Frame();

/*--- Spalart-Allmaras closure constants ---*/

cv1_3 = pow(7.1, 3.0);
k2 = pow(0.41, 2.0);
cb1 = 0.1355;
cw2 = 0.3;
ct3 = 1.2;
ct4 = 0.5;
cw3_6 = pow(2.0, 6.0);
sigma = 2./3.;
cb2 = 0.622;
cb2_sigma = cb2/sigma;
cw1 = cb1/k2+(1.0+cb2)/sigma;

}

pcg October 30, 2019 05:18

Hi,
Have a look at this thread on the SU2 github: https://github.com/su2code/SU2/issues/679
You might be able to use the branch @amirkb91 was working on.


All times are GMT -4. The time now is 13:02.