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 =
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);
void size(const label n)
Older name for setAddressableSize.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
wordList names() const
The unsorted names of all objects.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
IOoject and searching on triSurface.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const geometricSurfacePatchList & patches() const noexcept
wordList patchNames(nPatches)
const objectRegistry & db() const noexcept
Return the local objectRegistry.
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< T > subset(const BoolListType &select, const UList< T > &input, const bool invert=false)
Extract elements of the input list when select is true.
List< word > wordList
List of word.
subTriSurfaceMesh(const IOobject &io, const dictionary &dict)
Construct from IO and dictionary.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
List< label > labelList
A List of labels.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Triangulated surface description with patch information.
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))
Defines the attributes of an object for which implicit objectRegistry management is supported...
List< bool > boolList
A List of bools.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...