use of CS_PHYSICAL_MODEL_FLAG

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Cbarnaud
Posts: 36
Joined: Tue Oct 22, 2019 10:28 am

use of CS_PHYSICAL_MODEL_FLAG

Post by Cbarnaud »

Hello all,

I was wondering which are the values corresponding to "CS_PHYSICAL_MODEL_FLAG".
There ares tests in the code "CS_PHYSICAL_MODEL_FLAG<=0" or "CS_PHYSICAL_MODEL_FLAG>=2" but I can't find in the documentation or in the source code a comment section to explain theses tests/values.

Best regards,
Camille B.
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: use of CS_PHYSICAL_MODEL_FLAG

Post by Yvan Fournier »

Hello,

Yes, the documentation is incomplete. This term is the C equivalent of ippmod(iphpar) in Fortran:

- 0: no specific physics
- 1: switch on the specific physics
- 2: switch on the specific physics plus radiative transfer with a parametric file

I don't know who thought that using the same indicator for something very generic ("a sepcific model is used") with something very specific (a certain radiative module confuguration) was a good idea, so we'll probably need to clean this up, but at least this is how it works today.

Best regards,

Yvan
Post Reply