Commit 28868e97 authored by laurence's avatar laurence
Browse files

ENH: Add a surfaceSimplify option to snappyHexMesh

parent 4ac91793
......@@ -402,6 +402,49 @@ Foam::refinementSurfaces::refinementSurfaces
}
Foam::refinementSurfaces::refinementSurfaces
(
const searchableSurfaces& allGeometry,
const labelList& surfaces,
const wordList& names,
const wordList& faceZoneNames,
const wordList& cellZoneNames,
const List<areaSelectionAlgo>& zoneInside,
const pointField& zoneInsidePoints,
const List<faceZoneType>& faceType,
const labelList& regionOffset,
const labelList& minLevel,
const labelList& maxLevel,
const labelList& gapLevel,
const scalarField& perpendicularAngle,
const PtrList<dictionary>& patchInfo
)
:
allGeometry_(allGeometry),
surfaces_(surfaces),
names_(names),
faceZoneNames_(faceZoneNames),
cellZoneNames_(cellZoneNames),
zoneInside_(zoneInside),
zoneInsidePoints_(zoneInsidePoints),
faceType_(faceType),
regionOffset_(regionOffset),
minLevel_(minLevel),
maxLevel_(maxLevel),
gapLevel_(gapLevel),
perpendicularAngle_(perpendicularAngle),
patchInfo_(patchInfo.size())
{
forAll(patchInfo_, pI)
{
if (patchInfo.set(pI))
{
patchInfo_[pI] = patchInfo[pI];
}
}
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Get indices of unnamed surfaces (surfaces without faceZoneName)
......
......@@ -110,7 +110,7 @@ private:
pointField zoneInsidePoints_;
//- Per 'interface' surface :
// Waht to do with outside
// What to do with outside
List<faceZoneType> faceType_;
//- From local region number to global region number
......@@ -152,6 +152,25 @@ public:
const dictionary&
);
//- Construct from components
refinementSurfaces
(
const searchableSurfaces& allGeometry,
const labelList& surfaces,
const wordList& names,
const wordList& faceZoneNames,
const wordList& cellZoneNames,
const List<areaSelectionAlgo>& zoneInside,
const pointField& zoneInsidePoints,
const List<faceZoneType>& faceType,
const labelList& regionOffset,
const labelList& minLevel,
const labelList& maxLevel,
const labelList& gapLevel,
const scalarField& perpendicularAngle,
const PtrList<dictionary>& patchInfo
);
// Member Functions
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment