Modify buoyancy-term parameter Pr
Posted: Fri Jan 09, 2026 5:04 pm
Bonjour,
I am using code_saturne 9.0 to simulate breaking waves on cronos. I would like to modify the buoyancy-term parameter Pr in order to compare my results with other published papers that use OpenFOAM.
Does anyone know how to modify Pr in the user-defined files (e.g. cs_user_parameters.c)? Or can it only be changed by modifying the source code and recompiling code_saturne?
Below is the definition of Pr as implemented in the source code of the k–ω turbulence model.
/* Buoyancy production
------------------- */
/* prodk=min(P,c1*eps)+G */
/* prodw=P+(1-ce3)*G */
cs_real_t prdtur = 1;
Best regards,
Wenhao
I am using code_saturne 9.0 to simulate breaking waves on cronos. I would like to modify the buoyancy-term parameter Pr in order to compare my results with other published papers that use OpenFOAM.
Does anyone know how to modify Pr in the user-defined files (e.g. cs_user_parameters.c)? Or can it only be changed by modifying the source code and recompiling code_saturne?
Below is the definition of Pr as implemented in the source code of the k–ω turbulence model.
/* Buoyancy production
------------------- */
/* prodk=min(P,c1*eps)+G */
/* prodw=P+(1-ce3)*G */
cs_real_t prdtur = 1;
Best regards,
Wenhao