initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / multiphase / cavitatingFoam / continuityErrs.H
blob6f1622510f63b07d18cbd86bea94ee378bdba4f4
2     volScalarField thermoRho = psi*p + (1.0 - gamma)*rhol0;
4     dimensionedScalar totalMass = fvc::domainIntegrate(rho);
6     scalar sumLocalContErr = 
7     (
8         fvc::domainIntegrate(mag(rho - thermoRho))/totalMass
9     ).value();
11     scalar globalContErr = 
12     (
13         fvc::domainIntegrate(rho - thermoRho)/totalMass
14     ).value();
16     cumulativeContErr += globalContErr;
18     Info<< "time step continuity errors : sum local = " << sumLocalContErr
19         << ", global = " << globalContErr
20         << ", cumulative = " << cumulativeContErr
21         << endl;