35 Foam::functionObjects::solverFieldSelection::solverFieldSelection
38 const bool includeComponents
43 if (!isA<fvMesh>(obr))
46 <<
"Registry must be of type " << fvMesh::typeName
66 for (
const fieldInfo& fi : *
this)
68 for (
const word& solvedField : solvedFieldNames)
70 if (fi.name().match(solvedField))
74 fieldInfo(
wordRe(solvedField), fi.component())
81 selection_.transfer(newSelection);
86 <<
"Valid solver fields are: " << solvedFieldNames;
89 return selection_ != oldSet;
virtual bool checkSelection()
Check that all requested fielda have been found.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void append(const T &val)
Append an element at the end of the list.
virtual bool updateSelection()
Update the selection using current contents of obr_.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from Foam::string.
errorManip< error > abort(error &err)
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh data needed to do the Finite Volume discretisation.
Helper class to manage field selections.
Registry of regIOobjects.
wordList sortedToc() const
Return the sorted table of contents.