Page 1 of 1

Blendings in code_saturne

Posted: Wed Dec 23, 2020 9:13 pm
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

Re: Blendings in code_saturne

Posted: Sun Dec 27, 2020 3:58 pm
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