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

compressibleContinuityErrs.H

Go to the documentation of this file.
00001 {
00002 #   include <finiteVolume/rhoEqn.H>
00003 }
00004 {
00005     scalar sumLocalContErr =
00006         (sum(mag(rho - rho0 - psi*(p - p0)))/sum(rho)).value();
00007 
00008     scalar globalContErr = (sum(rho - rho0 - psi*(p - p0))/sum(rho)).value();
00009 
00010     cumulativeContErr += globalContErr;
00011 
00012     Info<< "time step continuity errors : sum local = " << sumLocalContErr
00013          << ", global = " << globalContErr
00014          << ", cumulative = " << cumulativeContErr << endl;
00015 }
00016 
00017 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines