compressibleContinuityErrors.H
Go to the documentation of this file.
1{
2 dimensionedScalar totalMass = fvc::domainIntegrate(rho);
3
5 (
6 fvc::domainIntegrate(mag(rho - thermo.rho()))/totalMass
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
scalar sumLocalContErr
scalar globalContErr
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
dynamicFvMesh & mesh
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.