44 void Foam::functionObjects::fileFieldSelection::addFromFile
46 const IOobjectList& objects,
47 DynamicList<fieldInfo>&
set 50 for (
const fieldInfo& fi : *
this)
60 set.emplace_back(wordRe(
name));
66 template<
template<
class>
class PatchType,
class MeshType>
67 void Foam::functionObjects::fileFieldSelection::addGeoFieldTypes
69 const IOobjectList& objects,
70 DynamicList<fieldInfo>&
set 74 #define doLocalCode(DataType) \ 75 addFromFile<GeometricField<DataType, PatchType, MeshType>>(objects, set); 86 void Foam::functionObjects::fileFieldSelection::addInternalFieldTypes
88 const IOobjectList& objects,
89 DynamicList<fieldInfo>&
set 93 #define doLocalCode(DataType) \ 94 addFromFile<DimensionedField<DataType, volMesh>>(objects, set); 105 void Foam::functionObjects::fileFieldSelection::addUniformFieldTypes
107 const IOobjectList& objects,
108 DynamicList<fieldInfo>&
set 112 #define doLocalCode(DataType) \ 113 addFromFile<UniformDimensionedField<DataType>>(objects, set); 129 const bool includeComponents
148 addGeoFieldTypes<fvPatchField, volMesh>(objects, newSelection);
149 addGeoFieldTypes<fvsPatchField, surfaceMesh>(objects, newSelection);
150 addGeoFieldTypes<pointPatchField, pointMesh>(objects, newSelection);
153 addInternalFieldTypes(objects, newSelection);
156 addUniformFieldTypes(objects, newSelection);
158 selection_.transfer(newSelection);
162 return selection_ != oldSet;
virtual bool checkSelection()
Check that all requested fielda have been found.
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.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
bool empty() const noexcept
True if List is empty (ie, size() is zero)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
fileFieldSelection(const fileFieldSelection &)=delete
No copy construct.
#define doLocalCode(DataType)
List< word > wordList
List of word.
Mesh data needed to do the Finite Volume discretisation.
Helper class to manage field selections.
virtual bool updateSelection()
Update the selection.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
Registry of regIOobjects.