Stabilise fvcReconstruct in the presence of zero area faces. Experimental
This commit is contained in:
parent
dd0f2bb14e
commit
c064448239
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ reconstruct
|
||||||
// G -> G
|
// G -> G
|
||||||
|
|
||||||
// Calculate sum of the directional fluxes
|
// 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 =
|
const GeometricField<GradType, fvPatchField, volMesh> fluxTimesNormal =
|
||||||
surfaceSum((mesh.Sf()/magSfSqr)*ssf);
|
surfaceSum((mesh.Sf()/magSfSqr)*ssf);
|
||||||
|
|
||||||
|
|
Reference in a new issue