6 conserve.primitiveFieldRef() +=
7 (1.0 -
mesh.V0()/
mesh.V())/runTime.deltaTValue();
9 scalar sumLocalContErr = runTime.deltaTValue()*
10 mag(conserve)().weightedAverage(
mesh.V()).value();
12 scalar globalContErr = runTime.deltaTValue()*
13 conserve.weightedAverage(
mesh.V()).value();
15 Info<<
"volume continuity errors : sum local = " << sumLocalContErr
16 <<
", global = " << globalContErr <<
endl;
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)