44 void Foam::functionObjects::fileFieldSelection::addFromFile
46 const IOobjectList& objects,
47 DynamicList<fieldInfo>&
set 50 for (
const fieldInfo& fi : *
this)
58 set.append(fieldInfo(wordRe(
name)));
67 template<
template<
class>
class PatchType,
class MeshType>
68 void Foam::functionObjects::fileFieldSelection::addGeoFieldTypes
70 const IOobjectList& objects,
71 DynamicList<fieldInfo>&
set 75 #define doLocalCode(DataType) \ 76 addFromFile<GeometricField<DataType, PatchType, MeshType>>(objects, set); 87 void Foam::functionObjects::fileFieldSelection::addInternalFieldTypes
89 const IOobjectList& objects,
90 DynamicList<fieldInfo>&
set 94 #define doLocalCode(DataType) \ 95 addFromFile<DimensionedField<DataType, volMesh>>(objects, set); 106 void Foam::functionObjects::fileFieldSelection::addUniformFieldTypes
108 const IOobjectList& objects,
109 DynamicList<fieldInfo>&
set 113 #define doLocalCode(DataType) \ 114 addFromFile<UniformDimensionedField<DataType>>(objects, set); 127 Foam::functionObjects::fileFieldSelection::fileFieldSelection
130 const bool includeComponents
149 addGeoFieldTypes<fvPatchField, volMesh>(objects, newSelection);
150 addGeoFieldTypes<fvsPatchField, surfaceMesh>(objects, newSelection);
151 addGeoFieldTypes<pointPatchField, pointMesh>(objects, newSelection);
154 addInternalFieldTypes(objects, newSelection);
157 addUniformFieldTypes(objects, newSelection);
159 selection_.transfer(newSelection);
163 return selection_ != oldSet;
virtual bool checkSelection()
Check that all requested fielda have been found.
void size(const label n)
Older name for setAddressableSize.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for 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>.
#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.