CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Courant number calculation in OF (https://www.cfd-online.com/Forums/openfoam/76037-courant-number-calculation.html)

mecbe2002 May 12, 2010 08:48

Courant number calculation in OF
 
Hi,

someone please explain the below loop. It is used to calculate the maximum Courant number in "rhoSonicFoam"

scalar CoNum = max
(
mesh.surfaceInterpolation::deltaCoeffs()
*mag(phiv)/mesh.magSf()
).value()*runTime.deltaT().value();


All times are GMT -4. The time now is 21:52.