44void Foam::functionObjects::fileFieldSelection::addFromFile
46 const IOobjectList& objects,
47 DynamicList<fieldInfo>& set
50 for (
const fieldInfo& fi : *
this)
56 for (
const word&
name : names)
58 set.append(fieldInfo(wordRe(
name)));
67template<
template<
class>
class PatchType,
class MeshType>
68void Foam::functionObjects::fileFieldSelection::addGeoFieldTypes
70 const IOobjectList& objects,
71 DynamicList<fieldInfo>& set
75 #define doLocalCode(DataType) \
76 addFromFile<GeometricField<DataType, PatchType, MeshType>>(objects, set);
87void Foam::functionObjects::fileFieldSelection::addInternalFieldTypes
89 const IOobjectList& objects,
90 DynamicList<fieldInfo>& set
94 #define doLocalCode(DataType) \
95 addFromFile<DimensionedField<DataType, volMesh>>(objects, set);
106void Foam::functionObjects::fileFieldSelection::addUniformFieldTypes
108 const IOobjectList& objects,
109 DynamicList<fieldInfo>& set
113 #define doLocalCode(DataType) \
114 addFromFile<UniformDimensionedField<DataType>>(objects, set);
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;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
List of IOobjects with searching and retrieving facilities.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
void size(const label n)
Older name for setAddressableSize.
Helper class to manage field selections.
virtual bool checkSelection()
Check that all requested fielda have been found.
Helper class to manage file-based field selections.
virtual bool updateSelection()
Update the selection.
Mesh data needed to do the Finite Volume discretisation.
Registry of regIOobjects.
Tensor of scalars, i.e. Tensor<scalar>.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List< word > wordList
A List of words.
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define doLocalCode(GeoField)