|
|
|
compressibleContinuityErrs.HGo to the documentation of this file.00001 { 00002 # include "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 } |