16 lines
423 B
C
16 lines
423 B
C
|
{
|
||
|
# include "rhoEqn.H"
|
||
|
}
|
||
|
{
|
||
|
scalar sumLocalContErr =
|
||
|
(sum(mag(rho - rho0 - psi*(p - p0)))/sum(rho)).value();
|
||
|
|
||
|
scalar globalContErr = (sum(rho - rho0 - psi*(p - p0))/sum(rho)).value();
|
||
|
|
||
|
cumulativeContErr += globalContErr;
|
||
|
|
||
|
Info<< "time step continuity errors : sum local = " << sumLocalContErr
|
||
|
<< ", global = " << globalContErr
|
||
|
<< ", cumulative = " << cumulativeContErr << endl;
|
||
|
}
|