continuityErrs.H
Go to the documentation of this file.
1{
2 volScalarField thermoRho = psi*p + alphal*rhol0;
3
4 dimensionedScalar totalMass = fvc::domainIntegrate(rho);
5
7 (
8 fvc::domainIntegrate(mag(rho - thermoRho))/totalMass
9 ).value();
10
12 (
13 fvc::domainIntegrate(rho - thermoRho)/totalMass
14 ).value();
15
17
18 Info<< "time step continuity errors : sum local = " << sumLocalContErr
19 << ", global = " << globalContErr
20 << ", cumulative = " << cumulativeContErr
21 << endl;
22}
alphal
Definition: alphavPsi.H:12
scalar sumLocalContErr
cumulativeContErr
scalar globalContErr
dimensionedScalar totalMass
Definition: continuityErrs.H:4
volScalarField & p
const volScalarField & psi
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:82