Turbulent Prandtl number

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

Turbulent Prandtl number

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

Re: Turbulent Prandtl number

Post 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
s marco
Posts: 11
Joined: Fri Feb 14, 2020 3:59 pm

Re: Turbulent Prandtl number

Post by s marco »

Thanks a lot.

In which subroutine should I specify this value?

Kind regards,
Marco
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: Turbulent Prandtl number

Post by Yvan Fournier »

Hello,

cs_user_parameters should do.

Best regards,

Yvan
Post Reply