What are "recompute_cocg" and "inc" in gradient function?

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

What are "recompute_cocg" and "inc" in gradient function?

Post by Mohammad »

Hello,

I want to use cs_field_gradient_scalar() function, but it needs two inputs that I don't know what are they!

One of them is recompute_cocg which has the following description in doxygen:
should COCG FV quantities be recomputed ?
What is COCG? Is it necessary to be recomputed?

The other one is inc with the following description:
if 0, solve on increment; 1 otherwise
What does it mean to solve on increment? Increment of what?

Regards,

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

Re: What are "recompute_cocg" and "inc" in gradient function?

Post by Yvan Fournier »

Hello,

Those arguments are used when solving by increments in the general solving process (described in the theory documentation).

If you are using those functions in regular user code (for example for postprocessing), you can do as you should find in the Doxygen examples, with recompute_cocg = 1 and inc = 1.

Regards,

Yvan
Post Reply