CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Inconsistency in CourantNoH (http://www.cfd-online.com/Forums/openfoam-bugs/62571-inconsistency-courantnoh.html)

rolando June 20, 2007 09:21

Hi, there seems to be a incon
 
Hi,
there seems to be a inconsistency in the calculation of the courant numbers in CourantNo.H.
The maximum Co is built with:
CoNum = max(SfUfbyDelta/mesh.magSf()).value()*runTime.deltaT().value();
The mean Co is built with:
meanCoNum = (sum(SfUfbyDelta)/sum(mesh.magSf())).value()*runTime.deltaT().value( );

This is no problem for serial cases.
But for parallel cases there should be used "gMax" and "gSum" instead of "max" and "sum" to build the Courant numbers considering all processors.

Rolando

henry June 20, 2007 09:31

The max and sum functions of G
 
The max and sum functions of GeometricField call gMax and gSum of the internal field from which it is derived.

rolando June 20, 2007 09:33

OK, then itīs clear. Thanks.
 
OK, then itīs clear.
Thanks.


All times are GMT -4. The time now is 04:15.