62 "\n Usage: zoneToFace zone\n\n"
63 " Select all faces in the faceZone."
64 " Note:accepts wildcards for zone.\n\n"
72 bool hasMatched =
false;
74 for (
const faceZone& zone : mesh_.faceZones())
76 if (selectedZones_.match(zone.name()))
84 Info<<
" Found matching zone " << zone.name()
85 <<
" with " << faceLabels.size() <<
" faces." <<
endl;
88 for (
const label facei : faceLabels)
91 if (facei >= 0 && facei < mesh_.nFaces())
93 addOrDelete(set, facei,
add);
102 <<
"Cannot find any faceZone matching "
104 <<
"Valid names are " <<
flatOutput(mesh_.faceZones().names())
112 Foam::zoneToFace::zoneToFace
114 const polyMesh&
mesh,
115 const wordRe& zoneName
118 topoSetFaceSource(
mesh),
119 selectedZones_(one(), zoneName)
123 Foam::zoneToFace::zoneToFace
125 const polyMesh&
mesh,
126 const dictionary&
dict
129 topoSetFaceSource(
mesh),
133 if (!
dict.readIfPresent(
"zones", selectedZones_))
135 selectedZones_.resize(1);
136 selectedZones_.first() =
137 dict.getCompat<wordRe>(
"zone", {{
"name", 1806}});
142 Foam::zoneToFace::zoneToFace
144 const polyMesh&
mesh,
148 topoSetFaceSource(
mesh),
149 selectedZones_(one(), wordRe(checkIs(is)))
155 void Foam::zoneToFace::applyToSet
165 Info<<
" Adding all faces of face zones "
175 Info<<
" Removing all faces of face zones "