FreeFOAM The Cross-Platform CFD Toolkit
compressibleContinuityErrs.H
Go to the documentation of this file.
1  scalar sumLocalContErr =
2  runTime.deltaT().value()*
3  mag
4  (
6  + fvc::div(phi)
7  )().weightedAverage(rho*mesh.V()).value();
8 
9  scalar globalContErr =
10  runTime.deltaT().value()*
11  (
12  fvc::ddt(rho)
13  + fvc::div(phi)
14  )().weightedAverage(rho*mesh.V()).value();
15 
17 
18  Info<< "time step continuity errors : sum local = " << sumLocalContErr
19  << ", global = " << globalContErr
20  << ", cumulative = " << cumulativeContErr
21  << endl;
22 
23 // ************************ vim: set sw=4 sts=4 et: ************************ //