Go to the documentation of this file.
72 if (regionNames[i].match(
name))
74 regions[compactI++] = regionI;
97 labelList regionMap(selectedRegions(
s, regionNames));
99 if (regionMap.
size() == 0)
102 <<
"Found no regions in triSurface matching " << regionNames
107 labelList reverseRegionMap(
s.patches().size(), -1);
110 reverseRegionMap[regionMap[i]] = i;
116 if (reverseRegionMap[
s.triSurface::operator[](triI).region()] != -1)
118 isSelected[triI] =
true;
124 return s.subsetMesh(isSelected, pointMap,
faceMap);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static wordList patchNames(const triSurface &s)
Extract patch names of triSurface.
IOoject and searching on triSurface.
const geometricSurfacePatchList & patches() const
const objectRegistry & db() const
Return the local objectRegistry.
static labelList selectedRegions(const triSurface &s, const wordReList ®ionNames)
Select regions by name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Triangulated surface description with patch information.
subTriSurfaceMesh(const IOobject &io, const dictionary &dict)
Construct from IO and dictionary.
wordList patchNames(nPatches)
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
virtual ~subTriSurfaceMesh()
Destructor.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
errorManipArg< error, int > exit(error &err, const int errNo=1)
ListType subset(const UList< T > &select, const T &value, const ListType &)
Extract elements of List when select is a certain value.
void setSize(const label)
Reset size of List.
static triSurface subset(const IOobject &, const dictionary &)
Subset triSurface based on regions.
wordList names() const
Return the list of names of the IOobjects.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
void size(const label)
Override size to be inconsistent with allocated storage.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.