Go to the documentation of this file.
63 const wordRes& regionNameMatcher
74 if (regionNameMatcher.match(
names[regioni]))
76 regionIds[
count++] = regioni;
79 regionIds.setSize(
count);
88 const dictionary&
dict
91 const word subGeomName(
dict.
get<word>(
"surface"));
93 const triSurfaceMesh&
s =
94 io.db().lookupObject<triSurfaceMesh>(subGeomName);
100 if (regionMap.empty())
103 <<
"Found no regions in triSurface matching " <<
regionNames
108 labelList reverseRegionMap(
s.patches().size(), -1);
111 reverseRegionMap[regionMap[i]] = i;
117 if (reverseRegionMap[
s.triSurface::operator[](triI).region()] != -1)
119 isSelected[triI] =
true;
123 return s.subsetMesh(isSelected);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
List< T > subset(const BoolListType &select, const UList< T > &input, const bool invert=false)
List< bool > boolList
A List of bools.
IOoject and searching on triSurface.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const geometricSurfacePatchList & patches() const noexcept
List< word > wordList
A List of words.
Triangulated surface description with patch information.
subTriSurfaceMesh(const IOobject &io, const dictionary &dict)
wordList patchNames(nPatches)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
unsigned int count(const UList< bool > &bools, const bool val=true)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
#define FatalIOErrorInFunction(ios)
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
defineTypeNameAndDebug(combustionModel, 0)