Page 1 of 1

modification in cs_turbulence_model.c

Posted: Fri Apr 08, 2016 2:30 pm
by C.FLAG.
Dear users / developpers,

I want to modify the WALE model constant, using a value of 0.325 instead of the default 0.25. Therefore, I have put a modified version of cs_turbulence_model.c in my SRC folder. However, in the listing of the simulation, the value of CWALE is still 0.25.

As a side remark, I would be happy to have a simple workaround for that situation as I am a new user of Code_Saturne.

Best regards,
Cedric

Re: modification in cs_turbulence_model.c

Posted: Sun Apr 10, 2016 1:55 pm
by Yvan Fournier
Hello Cédric,

cwale is reset to 0.25 in iniini.f90 (which is a leftover from when if was defined in Fortran).

Try removing the line containing cwale in iniini.f90 (we need to do that in the reference code anyways).

Regards,

Yvan

Re: modification in cs_turbulence_model.c

Posted: Mon Apr 11, 2016 8:05 am
by C.FLAG.
Hello Yvan,

Removing the line in iniini.f90 leads to a value of zero for cwale. I have therefore used the file iniini.f90 to force cwale to 0.325. It works like a charm.

Thank you very much for your help,

Best regards,
Cedric

P.S. : running version 4.0.4