Stabilise fvcReconstruct in the presence of zero area faces. Experimental

This commit is contained in:
Hrvoje Jasak 2019-09-25 16:42:10 +01:00
parent dd0f2bb14e
commit c064448239

View file

@ -120,7 +120,9 @@ reconstruct
// G -> G
// Calculate sum of the directional fluxes
const surfaceScalarField magSfSqr = sqr(mesh.magSf());
const surfaceScalarField magSfSqr =
sqr(mesh.magSf() + dimensionedScalar("vsmall", dimArea, 1e-100));
const GeometricField<GradType, fvPatchField, volMesh> fluxTimesNormal =
surfaceSum((mesh.Sf()/magSfSqr)*ssf);