Page 1 of 1

Turbulent Prandtl number

Posted: Tue Mar 03, 2020 12:22 pm
by s marco
Hi,
how can I change the turbulent Pr number in my setup for code saturne 6?
I' ve only found advises about sigmas but it seems be available only in older version.

Thanks in advance,
Marco

Re: Turbulent Prandtl number

Posted: Wed Mar 04, 2020 1:33 am
by Yvan Fournier
Hello,

The turbulent Schmidt (sigmas) is still available, as a field keyword, "turbulent_schmidt".

In C,

value = cs_field_get_key_double(f, cs_field_key_id("turbulent_schmidt"));

or

cs_field_set_key_double(f, cs_field_key_id("turbulent_schmidt"), value);

Best regards,

Yvan

Re: Turbulent Prandtl number

Posted: Fri Mar 06, 2020 4:01 pm
by s marco
Thanks a lot.

In which subroutine should I specify this value?

Kind regards,
Marco

Re: Turbulent Prandtl number

Posted: Fri Mar 06, 2020 4:03 pm
by Yvan Fournier
Hello,

cs_user_parameters should do.

Best regards,

Yvan