compressibleContinuityErrors.H
Go to the documentation of this file.
1 {
3 
4  scalar sumLocalContErr =
5  (
7  ).value();
8 
9  scalar globalContErr =
10  (
11  fvc::domainIntegrate(rho - thermo.rho())/totalMass
12  ).value();
13 
15 
16  Info<< "time step continuity errors (" << mesh.name() << ")"
17  << ": sum local = " << sumLocalContErr
18  << ", global = " << globalContErr
19  << ", cumulative = " << cumulativeContErr[i]
20  << endl;
21 }
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
psiReactionThermo & thermo
Definition: createFields.H:31
dynamicFvMesh & mesh
dimensionedScalar totalMass
Definition: continuityErrs.H:4
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
scalar globalContErr
messageStream Info
dimensioned< scalar > mag(const dimensioned< Type > &)