Added mesh flux check

This commit is contained in:
Hrvoje Jasak 2015-04-07 15:00:14 +01:00
parent 5a87b7b4aa
commit d553abb830

View file

@ -66,6 +66,22 @@ int main(int argc, char *argv[])
if (runTime.timeIndex() % checkFrequency == 0) if (runTime.timeIndex() % checkFrequency == 0)
{ {
mesh.checkMesh(true); mesh.checkMesh(true);
volScalarField magMeshCo
(
"magMeshCo",
fvc::surfaceSum
(
mag
(
mesh.phi()*
mesh.surfaceInterpolation::deltaCoeffs()/
mesh.magSf()
)
)
);
magMeshCo.write();
} }
runTime.write(); runTime.write();