Added mesh flux check
This commit is contained in:
parent
5a87b7b4aa
commit
d553abb830
1 changed files with 16 additions and 0 deletions
|
@ -66,6 +66,22 @@ int main(int argc, char *argv[])
|
|||
if (runTime.timeIndex() % checkFrequency == 0)
|
||||
{
|
||||
mesh.checkMesh(true);
|
||||
|
||||
volScalarField magMeshCo
|
||||
(
|
||||
"magMeshCo",
|
||||
fvc::surfaceSum
|
||||
(
|
||||
mag
|
||||
(
|
||||
mesh.phi()*
|
||||
mesh.surfaceInterpolation::deltaCoeffs()/
|
||||
mesh.magSf()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
magMeshCo.write();
|
||||
}
|
||||
|
||||
runTime.write();
|
||||
|
|
Reference in a new issue