diff --git a/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.C b/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.C index ddc60991217202b28058877ac1c5049ce1c194ad..f5ce1243ea67d4f2dd210f10d8b4b9acd2c1c04e 100644 --- a/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.C +++ b/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.C @@ -46,15 +46,6 @@ wedgeFvPatch::wedgeFvPatch(const polyPatch& patch, const fvBoundaryMesh& bm) {} -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -Foam::tmp<Foam::vectorField> Foam::wedgeFvPatch::delta() const -{ - const vectorField nHat(nf()); - return nHat*(nHat & (Cf() - Cn())); -} - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam diff --git a/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.H b/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.H index 16fab3e42b8291335a6f203e27b67abd809b913a..25be556b1c1052a93545af70d70aad60f1eefedf 100644 --- a/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.H +++ b/src/finiteVolume/fvMesh/fvPatches/constraint/wedge/wedgeFvPatch.H @@ -83,9 +83,6 @@ public: { return wedgePolyPatch_.cellT(); } - - //- Return cell-centre to face normal vector - virtual tmp<vectorField> delta() const; }; diff --git a/src/finiteVolume/fvMesh/fvPatches/fvPatch/fvPatch.C b/src/finiteVolume/fvMesh/fvPatches/fvPatch/fvPatch.C index c55ad272daa75ad31188e2e54f97b7186ccac278..e7dd41207e179ec4c42c8e153fae34bee4047374 100644 --- a/src/finiteVolume/fvMesh/fvPatches/fvPatch/fvPatch.C +++ b/src/finiteVolume/fvMesh/fvPatches/fvPatch/fvPatch.C @@ -140,7 +140,9 @@ const Foam::scalarField& Foam::fvPatch::magSf() const Foam::tmp<Foam::vectorField> Foam::fvPatch::delta() const { - return Cf() - Cn(); + // Use patch-normal delta for all non-coupled BCs + const vectorField nHat(nf()); + return nHat*(nHat & (Cf() - Cn())); }