/usr/include/freefoam/finiteVolume/volContinuity.H is in libfreefoam-dev 0.1.0+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
volScalarField conserve = -fvc::div(mesh.phi());
// The ddt term constructed by hand because it would be wrong for
// Backward Differencing in time.
conserve.internalField() +=
(1.0 - mesh.V0()/mesh.V())/runTime.deltaT().value();
scalar sumLocalContErr = runTime.deltaT().value()*
mag(conserve)().weightedAverage(mesh.V()).value();
scalar globalContErr = runTime.deltaT().value()*
conserve.weightedAverage(mesh.V()).value();
Info<< "volume continuity errors : sum local = " << sumLocalContErr
<< ", global = " << globalContErr << endl;
}
// ************************ vim: set sw=4 sts=4 et: ************************ //
|