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 }
dimensionedScalar totalMass
Definition: continuityErrs.H:4
dimensioned< scalar > mag(const dimensioned< Type > &)
messageStream Info
dynamicFvMesh & mesh
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
scalar globalContErr
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
psiReactionThermo & thermo
Definition: createFields.H:32
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.