CourantNos.H
Go to the documentation of this file.
1  #include "CourantNo.H"
2 
3 {
4  scalar UrCoNum = 0.5*gMax
5  (
6  fvc::surfaceSum(mag(phi1 - phi2))().primitiveField()/mesh.V().field()
7  )*runTime.deltaTValue();
8 
9  Info<< "Max Ur Courant Number = " << UrCoNum << endl;
10 
11  CoNum = max(CoNum, UrCoNum);
12 }
surfaceScalarField & phi2
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:256
surfaceScalarField & phi1
dynamicFvMesh & mesh
scalar CoNum
Type gMax(const FieldField< Field, Type > &f)
messageStream Info
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)