From 11ed7a0efeea314cf045bcb6c28c7b08318d5135 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Mon, 22 Jun 2020 14:20:16 +0100 Subject: [PATCH] ENH: cyclicAMIFvPatch - added hooks to correct delta coeffs and vecs --- .../constraint/cyclicAMI/cyclicAMIFvPatch.C | 20 +++++++++++++++++++ .../constraint/cyclicAMI/cyclicAMIFvPatch.H | 9 +++++++++ 2 files changed, 29 insertions(+) diff --git a/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.C b/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.C index baba50933c8..73398e753e0 100644 --- a/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.C +++ b/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.C @@ -99,6 +99,26 @@ void Foam::cyclicAMIFvPatch::makeWeights(scalarField& w) const } +void Foam::cyclicAMIFvPatch::makeDeltaCoeffs(scalarField& coeffs) const +{ + // Apply correction to default coeffs +} + + +void Foam::cyclicAMIFvPatch::makeNonOrthoDeltaCoeffs(scalarField& coeffs) const +{ + // Apply correction to default coeffs + //coeffs = Zero; +} + + +void Foam::cyclicAMIFvPatch::makeNonOrthoCorrVectors(vectorField& vecs) const +{ + // Apply correction to default vectors + //vecs = Zero; +} + + Foam::tmp<Foam::vectorField> Foam::cyclicAMIFvPatch::delta() const { const cyclicAMIFvPatch& nbrPatch = neighbFvPatch(); diff --git a/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.H b/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.H index 4d9daf3852c..1c3b46ab574 100644 --- a/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.H +++ b/src/finiteVolume/fvMesh/fvPatches/constraint/cyclicAMI/cyclicAMIFvPatch.H @@ -68,6 +68,15 @@ protected: //- Make patch weighting factors void makeWeights(scalarField&) const; + //- Correct patch deltaCoeffs + virtual void makeDeltaCoeffs(scalarField&) const; + + //- Correct patch non-ortho deltaCoeffs + virtual void makeNonOrthoDeltaCoeffs(scalarField&) const; + + //- Correct patch non-ortho correction vectors + virtual void makeNonOrthoCorrVectors(vectorField&) const; + //- Correct patches after moving points virtual void movePoints(); -- GitLab