OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

compressibleContinuityErrs.H

Go to the documentation of this file.
00001     scalar sumLocalContErr =
00002         runTime.deltaT().value()*
00003         mag
00004         (
00005             fvc::ddt(rho)
00006           + fvc::div(phi)
00007         )().weightedAverage(rho*mesh.V()).value();
00008 
00009     scalar globalContErr =
00010           runTime.deltaT().value()*
00011           (
00012               fvc::ddt(rho)
00013             + fvc::div(phi)
00014           )().weightedAverage(rho*mesh.V()).value();
00015 
00016     cumulativeContErr += globalContErr;
00017 
00018     Info<< "time step continuity errors : sum local = " << sumLocalContErr
00019         << ", global = " << globalContErr
00020         << ", cumulative = " << cumulativeContErr
00021         << endl;
Copyright © 2000-2009 OpenCFD Ltd