Blendings in code_saturne

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Mohammad
Posts: 114
Joined: Thu Oct 25, 2018 12:18 pm

Blendings in code_saturne

Post by Mohammad »

Hello,

I'm a little bit confused about blending of schemes in code_saturne.

We can choose the second order scheme between Central & SOLU schemes by setting the value of ischcv to 1 or 0. I'm OK with these two choices.
We also have blencv which indicates the proportion of second-order convective scheme.

But there's another choice for ischcv and that is the number 3 which in doxygen we have:
3: Blending between Second Order Linear Upwind and Centered scheme
Now the question is, if this option is about blending between two second-order schemes (Central & SOLU), then how can we set the blending percentage? By setting blencv? As doxygen says, blencv is blending between second-order and first-order schemes, not two second-order schemes.
Then if it is set by blencv or any other variables, the set value is for the proportion of Central scheme or SOLU scheme?

Regards,
Mohammad
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: Blendings in code_saturne

Post by Yvan Fournier »

Hello,

I am not too sure about this. To check the logic which is used internally, you can check how ischcp (a local copy of ischcv for a given variable) is used in src/alge/cs_convection_diffusion.c. The documentation probably does not go into detail enough here.

Best regards,

Yvan
Post Reply