From 805c942ac47750ee54d53d898febc0683c67a997 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Thu, 11 Apr 2019 13:20:08 +0200 Subject: [PATCH] Version of donorBasedOverlapFringe that compiles Note: still not tested --- src/overset/oversetMesh/Make/files | 1 + src/overset/oversetMesh/Make/options | 6 ++- ...lap.C => donorBasedLayeredOverlapFringe.C} | 44 +++++++++++-------- ...lap.H => donorBasedLayeredOverlapFringe.H} | 5 +-- 4 files changed, 32 insertions(+), 24 deletions(-) rename src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/{donorBasedLayeredOverlap.C => donorBasedLayeredOverlapFringe.C} (96%) rename src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/{donorBasedLayeredOverlap.H => donorBasedLayeredOverlapFringe.H} (98%) diff --git a/src/overset/oversetMesh/Make/files b/src/overset/oversetMesh/Make/files index 1f27b60ff..2a7175cc0 100644 --- a/src/overset/oversetMesh/Make/files +++ b/src/overset/oversetMesh/Make/files @@ -4,6 +4,7 @@ oversetFringe/oversetFringe/oversetFringe.C oversetFringe/oversetFringe/newOversetFringe.C oversetFringe/manualFringe/manualFringe.C oversetFringe/faceCellsFringe/faceCellsFringe.C +oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C oversetFringe/overlapFringe/overlapFringe/overlapFringe.C oversetFringe/overlapFringe/layeredOverlapFringe/layeredOverlapFringe.C oversetFringe/overlapFringe/adaptiveOverlapFringe/adaptiveOverlapFringe.C diff --git a/src/overset/oversetMesh/Make/options b/src/overset/oversetMesh/Make/options index d07b7e112..2afb673c2 100644 --- a/src/overset/oversetMesh/Make/options +++ b/src/overset/oversetMesh/Make/options @@ -3,11 +3,13 @@ EXE_INC = \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/surfMesh/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ - -I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude + -I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \ + -I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lmeshTools \ -lsurfMesh \ -lsampling \ - -ldynamicMesh + -ldynamicMesh \ + -ldynamicFvMesh diff --git a/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlap.C b/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C similarity index 96% rename from src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlap.C rename to src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C index cf55bf4a2..ad53a485c 100644 --- a/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlap.C +++ b/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C @@ -24,10 +24,13 @@ License \*---------------------------------------------------------------------------*/ #include "donorBasedLayeredOverlapFringe.H" +#include "oversetMesh.H" +#include "oversetRegion.H" #include "faceCellsFringe.H" #include "oversetRegion.H" #include "addToRunTimeSelectionTable.H" #include "syncTools.H" +#include "dynamicFvMesh.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -46,7 +49,7 @@ namespace Foam const Foam::debug::tolerancesSwitch Foam::donorBasedLayeredOverlapFringe::distTol_ ( - "donorBasedLayeredOverlapDistanceTolerance" + "donorBasedLayeredOverlapDistanceTolerance", 0.0 ); @@ -97,7 +100,7 @@ void Foam::donorBasedLayeredOverlapFringe::calcAddressing() const << " with faceCells fringe as a connected region fringe." << nl << "Connected overset region " << region.name() - << " has " << fringe.type() " fringe type. " + << " has " << fringe.type() << " fringe type. " << nl << "Proceed with care!" << endl; @@ -109,6 +112,7 @@ void Foam::donorBasedLayeredOverlapFringe::calcAddressing() const } // Sets containing all acceptors and all holes for all connected regions + const polyMesh& mesh = this->mesh(); labelHashSet allAcceptors(0.02*mesh.nCells()); labelHashSet allFringeHoles(0.02*mesh.nCells()); @@ -175,9 +179,9 @@ void Foam::donorBasedLayeredOverlapFringe::calcAddressing() const } // Loop through extended donor cells - donorAcceptor::DynamicLabelList& extDonors = + const donorAcceptor::DynamicLabelList& extDonors = daPair.extendedDonorCells(); - donorAcceptor::DynamicPointList& extDonorPoints = + const donorAcceptor::DynamicPointList& extDonorPoints = daPair.extendedDonorPoints(); forAll (extDonors, i) @@ -210,7 +214,8 @@ void Foam::donorBasedLayeredOverlapFringe::calcAddressing() const // User did not specify centre points and the centre point holds // the sum of all the points. Reduce the data reduce(centrePoint, sumOp()); - nUniqueDonors = returnReduce(donors.size(), sumOp