mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: accept bitSet for MeshedSurface::subsetMesh
- add triSurface::subsetMesh single-parameter variant
This commit is contained in:
committed by
Andrew Heather
parent
4380349f45
commit
f1a48a3c2f
@ -177,18 +177,7 @@ void writeParts
|
||||
}
|
||||
}
|
||||
|
||||
labelList pointMap;
|
||||
labelList faceMap;
|
||||
|
||||
triSurface subSurf
|
||||
(
|
||||
surf.subsetMesh
|
||||
(
|
||||
includeMap,
|
||||
pointMap,
|
||||
faceMap
|
||||
)
|
||||
);
|
||||
triSurface subSurf(surf.subsetMesh(includeMap));
|
||||
|
||||
fileName subName
|
||||
(
|
||||
@ -483,17 +472,7 @@ int main(int argc, char *argv[])
|
||||
boolList isIllegalFace(surf.size(), false);
|
||||
UIndirectList<bool>(isIllegalFace, illegalFaces) = true;
|
||||
|
||||
labelList pointMap;
|
||||
labelList faceMap;
|
||||
triSurface subSurf
|
||||
(
|
||||
surf.subsetMesh
|
||||
(
|
||||
isIllegalFace,
|
||||
pointMap,
|
||||
faceMap
|
||||
)
|
||||
);
|
||||
triSurface subSurf(surf.subsetMesh(isIllegalFace));
|
||||
|
||||
|
||||
// Transcribe faces
|
||||
|
||||
@ -64,9 +64,7 @@ using namespace Foam;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// labelList pointMap, faceMap;
|
||||
//
|
||||
// triSurface regionSurf(surf.subsetMesh(include, pointMap, faceMap));
|
||||
// triSurface regionSurf(surf.subsetMesh(include));
|
||||
//
|
||||
// Pout<< "Region " << regionI << " surface:" << nl;
|
||||
// regionSurf.writeStats(Pout);
|
||||
|
||||
@ -99,18 +99,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Subset triSurface
|
||||
labelList pointMap;
|
||||
labelList faceMap;
|
||||
|
||||
triSurface subSurf
|
||||
(
|
||||
surf.subsetMesh
|
||||
(
|
||||
includeMap,
|
||||
pointMap,
|
||||
faceMap
|
||||
)
|
||||
);
|
||||
triSurface subSurf(surf.subsetMesh(includeMap));
|
||||
|
||||
subSurf.write(outFile);
|
||||
}
|
||||
|
||||
@ -198,10 +198,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
for (label z = 0; z < nZones; z++)
|
||||
{
|
||||
|
||||
boolList include(faceZone.size(), false);
|
||||
labelList pointMap;
|
||||
labelList faceMap;
|
||||
|
||||
forAll(faceZone, f)
|
||||
{
|
||||
@ -211,8 +208,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
triSurface zoneSurf = surf.subsetMesh(include, pointMap, faceMap);
|
||||
|
||||
triSurface zoneSurf = surf.subsetMesh(include);
|
||||
|
||||
fileName remainingPartFileName =
|
||||
outFileBaseName
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
@ -379,12 +379,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
|
||||
// Create subsetted surface
|
||||
labelList pointMap;
|
||||
labelList faceMap;
|
||||
triSurface surf2
|
||||
(
|
||||
surf1.subsetMesh(facesToSubset, pointMap, faceMap)
|
||||
);
|
||||
triSurface surf2(surf1.subsetMesh(facesToSubset));
|
||||
|
||||
Info<< "Subset:" << endl;
|
||||
surf2.writeStats(Info);
|
||||
|
||||
Reference in New Issue
Block a user