modification in cs_turbulence_model.c

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
C.FLAG.
Posts: 34
Joined: Fri Apr 08, 2016 2:19 pm

modification in cs_turbulence_model.c

Post 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
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: modification in cs_turbulence_model.c

Post 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
C.FLAG.
Posts: 34
Joined: Fri Apr 08, 2016 2:19 pm

Re: modification in cs_turbulence_model.c

Post 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
Post Reply