26 #include "compressibleCourantNo.H" 40 / rho.primitiveField()
43 scalar CoNum = 0.5*
gMax(sumPhi/mesh.V().field())*runTime.deltaTValue();
46 0.5*(
gSum(sumPhi)/
gSum(mesh.V().field()))*runTime.deltaTValue();
48 Info<<
"Region: " << mesh.name() <<
" Courant Number mean: " << meanCoNum
49 <<
" max: " << CoNum <<
endl;
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar compressibleCourantNo(const fvMesh &mesh, const Time &runTime, const volScalarField &rho, const surfaceScalarField &phi)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Type gSum(const FieldField< Field, Type > &f)
volScalarField scalarField(fieldObject, mesh)
Type gMax(const FieldField< Field, Type > &f)
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField