FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

compressibleContinuityErrors.H

Go to the documentation of this file.
00001 {
00002     dimensionedScalar totalMass = fvc::domainIntegrate(rho);
00003 
00004     scalar sumLocalContErr =
00005     (
00006         fvc::domainIntegrate(mag(rho - thermo.rho()))/totalMass
00007     ).value();
00008 
00009     scalar globalContErr =
00010     (
00011         fvc::domainIntegrate(rho - thermo.rho())/totalMass
00012     ).value();
00013 
00014     cumulativeContErr[i] += globalContErr;
00015 
00016     Info<< "time step continuity errors (" << mesh.name() << ")"
00017         << ": sum local = " << sumLocalContErr
00018         << ", global = " << globalContErr
00019         << ", cumulative = " << cumulativeContErr[i]
00020         << endl;
00021 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines