Go to the documentation of this file.
51 newPatches[patchI].name() = origSurf.
patches()[patchI].name();
53 forAll(subsetNames, subsetI)
54 newPatches[origSurf.
patches().
size()+subsetI].name() =
61 forAll(subsetNames, subsetI)
72 newTriangles[subsetFaces[fI]].region() = regionI;
79 ++nTrianglesInPatch[newTriangles[triI].region()];
83 forAll(nTrianglesInPatch, patchI)
85 if( nTrianglesInPatch[patchI] )
86 newPatchLabel.insert(patchI, counter++);
93 if( newPatchLabel.found(patchI) )
95 copyPatches[newPatchLabel[patchI]].name() =
96 newPatches[patchI].name();
100 newPatches = copyPatches;
103 forAll(newTriangles, triI)
104 newTriangles[triI].region() =
105 newPatchLabel[newTriangles[triI].region()];
108 forAll(subsetNames, subsetI)
119 int main(
int argc,
char *argv[])
137 Warning <<
"Subset " << subsetName
138 <<
" checking subsets containing this string!" <<
endl;
143 forAll(existingSubsets, subsetI)
148 if( sName.substr(0, subsetName.size()) == subsetName )
150 subsetNames.
append(sName);
154 Info <<
"Converting " << subsetNames.
size() <<
" subsets" <<
endl;
158 subsetNames.
append(subsetName);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling words, derived from string.
const stringList & args() const
Return arguments.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
Template functions to aid in the implementation of demand driven data.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
This is a typedef for LongList<label>
void deleteDemandDrivenData(DataPtr &dataPtr)
void removeFacetSubset(const label)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const geometricSurfacePatchList & patches() const
access to patches
void facetSubsetIndices(DynList< label > &) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void writeSurface(const fileName &) const
void updateFacetsSubsets(const ListType &)
const LongList< labelledTri > & facets() const
access to facets
word facetSubsetName(const label) const
label facetSubsetIndex(const word &) const
void facetsInSubset(const label, ListType &) const
void size(const label)
Override size to be inconsistent with allocated storage.
static void noParallel()
Remove the parallel options.
int main(int argc, char *argv[])
Foam::argList args(argc, argv)
void makePatchFromSubset(triSurf &origSurf, const DynList< word > &subsetNames)
void append(const T &e)
Append an element at the end of the list.