Page 1 of 1

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

Posted: Fri Jan 17, 2020 5:24 pm
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

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

Posted: Fri Jan 17, 2020 10:45 pm
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