38 const bool includeComponents
43 if (!isA<fvMesh>(obr))
46 <<
"Registry must be of type " << fvMesh::typeName
62 const dictionary& solverDict =
mesh.data().solverPerformanceDict();
66 for (
const fieldInfo& fi : *
this)
68 for (
const word& solvedField : solvedFieldNames)
70 if (fi.name().match(solvedField))
73 newSelection.emplace_back(
wordRe(solvedField), fi.component());
78 selection_.transfer(newSelection);
83 <<
"Valid solver fields are: " << solvedFieldNames;
86 return selection_ != oldSet;
virtual bool checkSelection()
Check that all requested fielda have been found.
solverFieldSelection(const solverFieldSelection &)=delete
No copy construct.
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.
bool found(const T &val, label pos=0) const
Same as contains()
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.