00001 { 00002 dimensionedScalar totalMass = fvc::domainIntegrate(rho); 00003 00004 scalar sumLocalContErr = 00005 ( 00006 fvc::domainIntegrate(mag(rho - thermo.rho()))/totalMass 00007 ).value(); 00008 00009 scalar globalContErr = 00010 ( 00011 fvc::domainIntegrate(rho - thermo.rho())/totalMass 00012 ).value(); 00013 00014 cumulativeContErr[i] += globalContErr; 00015 00016 Info<< "time step continuity errors (" << mesh.name() << ")" 00017 << ": sum local = " << sumLocalContErr 00018 << ", global = " << globalContErr 00019 << ", cumulative = " << cumulativeContErr[i] 00020 << endl; 00021 }