AFM

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
s marco
Posts: 11
Joined: Fri Feb 14, 2020 3:59 pm

AFM

Post by s marco »

Hi,
I am trying to validate a different AFM in version 6. To do that I changed coefficients xiafm, etaafm, cthafm in the subroutine cs_turboulence_model.c, please find it attached.
That works in code_saturne_4 but in code_saturne_6 I got errors in compile stage, please find it in compile.log.

Is there for version 6 a different cs_turbulence_model.c that I am not able to find it or in the new version something works differently?

Best regards,
Marco
Attachments
compile.log
(12.28 KiB) Downloaded 175 times
cs_turbulence_model.c
(31.94 KiB) Downloaded 178 times
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: AFM

Post by Yvan Fournier »

Hello,

Yes, using a modified non-user file such as cs_turbulence_model.c from one version to another has about a 0.2% chance of working, and is definitely not recommended, so what you need to do is apply the changes to a version of the file based on version 6.0. If you work directly on a git checkout is is easy because you can merge a change from one branch to another or use "git format-patch" to extract a diff and "git am" to apply it to another branch or even clone.

Best regards,

Yvan
Post Reply