mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: added ZoneMesh indices(), selection() with wordRes matcher
- rationalized code dealing with extraction of name or indices from coordinateSystems, polyBoundaryMesh, faBoundaryMesh, fvBoundaryMesh, ZoneMesh to use internal implementations that allow direct searching/matching without building an intermediate list of names. - simpler and more efficient handling of patch group matching.
This commit is contained in:
@ -177,7 +177,10 @@ bool Foam::sampledPlane::update()
|
||||
}
|
||||
|
||||
|
||||
labelList selectedCells(mesh().cellZones().findMatching(zoneKey_).toc());
|
||||
labelList selectedCells
|
||||
(
|
||||
mesh().cellZones().selection(zoneKey_).sortedToc()
|
||||
);
|
||||
|
||||
bool fullMesh = returnReduce(selectedCells.empty(), andOp<bool>());
|
||||
|
||||
|
||||
@ -175,7 +175,7 @@ bool Foam::surfMeshSamplePlane::update()
|
||||
|
||||
labelList selectedCells
|
||||
(
|
||||
mesh().cellZones().findMatching(zoneKey_).sortedToc()
|
||||
mesh().cellZones().selection(zoneKey_).sortedToc()
|
||||
);
|
||||
|
||||
bool fullMesh = returnReduce(selectedCells.empty(), andOp<bool>());
|
||||
|
||||
Reference in New Issue
Block a user