fvcReconstruct: Revert to standard Sf-weighted form

This commit is contained in:
Henry
2013-06-25 18:36:44 +01:00
parent b7fe6ae087
commit 9171a6f0b4

View File

@ -56,20 +56,7 @@ reconstruct
const fvMesh& mesh = ssf.mesh();
surfaceVectorField faceVols
(
mesh.Sf()/(mesh.magSf()*mesh.nonOrthDeltaCoeffs())
);
faceVols.internalField() *= (1.0 - mesh.weights().internalField());
forAll(faceVols.boundaryField(), patchi)
{
if (faceVols.boundaryField()[patchi].coupled())
{
faceVols.boundaryField()[patchi] *=
(1.0 - mesh.weights().boundaryField()[patchi]);
}
}
surfaceVectorField SfHat(mesh.Sf()/mesh.magSf());
tmp<GeometricField<GradType, fvPatchField, volMesh> > treconField
(
@ -83,7 +70,7 @@ reconstruct
IOobject::NO_READ,
IOobject::NO_WRITE
),
inv(surfaceSum(mesh.Sf()*faceVols))&surfaceSum(faceVols*ssf),
inv(surfaceSum(SfHat*mesh.Sf()))&surfaceSum(SfHat*ssf),
zeroGradientFvPatchField<GradType>::typeName
)
);