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(); const fvMesh& mesh = ssf.mesh();
surfaceVectorField faceVols surfaceVectorField SfHat(mesh.Sf()/mesh.magSf());
(
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]);
}
}
tmp<GeometricField<GradType, fvPatchField, volMesh> > treconField tmp<GeometricField<GradType, fvPatchField, volMesh> > treconField
( (
@ -83,7 +70,7 @@ reconstruct
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
inv(surfaceSum(mesh.Sf()*faceVols))&surfaceSum(faceVols*ssf), inv(surfaceSum(SfHat*mesh.Sf()))&surfaceSum(SfHat*ssf),
zeroGradientFvPatchField<GradType>::typeName zeroGradientFvPatchField<GradType>::typeName
) )
); );