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
modification in cs_turbulence_model.c
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: modification in cs_turbulence_model.c
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
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
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
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