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

continuityErrs.H

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