38 const bool includeComponents
41 fieldSelection(obr, includeComponents)
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;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
T & emplace_back(Args &&... args)
Construct an element at the end of the list, return reference to the new list element.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
wordList sortedToc() const
Return the sorted table of contents.
Helper class to store a wordRe and label used by Foam::functionObjects::fieldSelection.
bool found() const noexcept
Return the found state.
label component() const noexcept
Return the component.
const wordRe & name() const noexcept
Return the selector pattern for the field name(s).
virtual bool checkSelection()
Check that all requested fielda have been found.
const objectRegistry & obr_
Reference to the database.
List< fieldInfo > selection_
Current field selection.
virtual bool updateSelection()
Update the selection using current contents of obr_.
solverFieldSelection(const solverFieldSelection &)=delete
No copy construct.
Mesh data needed to do the Finite Volume discretisation.
Registry of regIOobjects.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
bool match(const std::string &text, bool literal=false) const
Smart match as regular expression or as a string.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
List< word > wordList
List of word.
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...