initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / heatTransfer / chtMultiRegionFoam / fluid / compressibleContinuityErrors.H
blob046ca5ec378429b496b6e4bbe47c844a1a6999de
2     dimensionedScalar totalMass = fvc::domainIntegrate(rho);
4     scalar sumLocalContErr =
5     (
6         fvc::domainIntegrate(mag(rho - thermo.rho()))/totalMass
7     ).value();
9     scalar globalContErr =
10     (
11         fvc::domainIntegrate(rho - thermo.rho())/totalMass
12     ).value();
14     cumulativeContErr[i] += globalContErr;
16     Info<< "time step continuity errors (" << mesh.name() << ")"
17         << ": sum local = " << sumLocalContErr
18         << ", global = " << globalContErr
19         << ", cumulative = " << cumulativeContErr[i]
20         << endl;