Go to the documentation of this file.
34 Foam::functionObjects::fieldSelection::fieldSelection
37 const bool includeComponents
42 includeComponents_(includeComponents),
52 static word cmptStr(
".component(");
60 if (
n != string::npos)
64 if (!includeComponents_)
67 <<
"Component specification not allowed for " <<
name
74 <<
"Cannot use \".component option\" in combination with "
75 <<
"wildcards for " <<
name
84 if (closei == string::npos)
87 <<
"Invalid field component specification for "
89 <<
". Field should be expressed as <field>.component(i)"
108 this->transfer(nameAndComponent);
167 <<
"Field " << fi.
name() <<
" not found"
bool isPattern() const noexcept
The wordRe is treated as a pattern, not as literal string.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A class for handling words, derived from Foam::string.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
const wordRe & name() const
Helper class to store a wordRe and label used by Foam::functionObjects::fieldSelection.
virtual bool checkSelection()
Check that all requested fielda have been found.
virtual bool updateSelection()
Update the selection.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents that is similar to std::unordered_set.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
virtual bool containsPattern() const
Return whether the field names contain a pattern.
virtual void clearSelection()
Clear the current selection.
Registry of regIOobjects.
graph_traits< Graph >::vertices_size_type size_type
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Input from string buffer, using a ISstream. Always UNCOMPRESSED.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
virtual bool resetFieldFilters(const HashSet< wordRe > &names)
Reset the field filters to the given field names.
virtual bool read(const dictionary &dict)
Read the fieldSelection data from dictionary.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
#define WarningInFunction
Report a warning using Foam::Warning.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields