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 }
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:40
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
surfaceScalarField & phi1
dynamicFvMesh & mesh
surfaceScalarField & phi2
scalar CoNum
Type gMax(const FieldField< Field, Type > &f)
messageStream Info
Information stream (stdout output on master, null elsewhere)
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)