ENH: cyclicAMIFvPatch - added hooks to correct delta coeffs and vecs

This commit is contained in:
Andrew Heather
2020-06-22 14:20:16 +01:00
committed by Andrew Heather
parent 438f38bb61
commit 11ed7a0efe
2 changed files with 29 additions and 0 deletions

View File

@ -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();

View File

@ -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();