45 setsToFaceZone::typeName,
46 "\n Usage: setsToFaceZone <faceSet> <slaveCellSet>\n\n"
47 " Select all faces in the faceSet."
48 " Orientated so slave side is in cellSet.\n\n"
58 const word& faceSetName,
59 const word& cellSetName
63 faceSetName_(faceSetName),
64 cellSetName_(cellSetName)
76 faceSetName_(dict.
lookup(
"faceSet")),
77 cellSetName_(dict.
lookup(
"cellSet"))
89 faceSetName_(checkIs(is)),
90 cellSetName_(checkIs(is))
108 if (!isA<faceZoneSet>(
set))
112 "setsToFaceZone::applyToSet(const topoSetSource::setAction"
114 ) <<
"Operation only allowed on a faceZoneSet." <<
endl;
122 Info<<
" Adding all faces from faceSet " << faceSetName_
126 faceSet fSet(mesh_, faceSetName_);
127 cellSet cSet(mesh_, cellSetName_);
135 label faceI = iter.key();
137 if (!fzSet.
found(faceI))
141 label own = mesh_.faceOwner()[faceI];
142 bool ownFound = cSet.
found(own);
144 if (mesh_.isInternalFace(faceI))
146 label nei = mesh_.faceNeighbour()[faceI];
147 bool neiFound = cSet.
found(nei);
149 if (ownFound && !neiFound)
153 else if (!ownFound && neiFound)
161 "setsToFaceZone::applyToSet"
162 "(const topoSetSource::setAction, topoSet)"
163 ) <<
"One of owner or neighbour of internal face "
164 << faceI <<
" should be in cellSet "
166 <<
" to be able to determine orientation."
168 <<
"Face:" << faceI <<
" own:" << own
169 <<
" OwnInCellSet:" << ownFound
171 <<
" NeiInCellSet:" << neiFound
180 newAddressing.append(faceI);
181 newFlipMap.append(flip);
191 Info<<
" Removing all faces from faceSet " << faceSetName_
206 newFlipMap.append(fzSet.
flipMap()[i]);