mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
deltaT().value() to deltaTValue()
and
deltaT0().value() to deltaT0Value()
across the whole code - faster to return especially if being used
often, in each call to a submodel for example.
22 lines
593 B
C
22 lines
593 B
C
scalar sumLocalContErr =
|
|
runTime.deltaTValue()*
|
|
mag
|
|
(
|
|
fvc::ddt(rho)
|
|
+ fvc::div(phi)
|
|
)().weightedAverage(rho*mesh.V()).value();
|
|
|
|
scalar globalContErr =
|
|
runTime.deltaTValue()*
|
|
(
|
|
fvc::ddt(rho)
|
|
+ fvc::div(phi)
|
|
)().weightedAverage(rho*mesh.V()).value();
|
|
|
|
cumulativeContErr += globalContErr;
|
|
|
|
Info<< "time step continuity errors : sum local = " << sumLocalContErr
|
|
<< ", global = " << globalContErr
|
|
<< ", cumulative = " << cumulativeContErr
|
|
<< endl;
|