29 #ifndef vtkPVFoamUpdateInfoFields_H 30 #define vtkPVFoamUpdateInfoFields_H 34 template<
template<
class>
class patchType,
class meshType>
35 void Foam::vtkPVFoam::updateInfoFields
37 vtkDataArraySelection* select
42 Info<<
"<beg> Foam::vtkPVFoam::updateInfoFields <" 43 << meshType::Mesh::typeName
44 <<
"> [meshPtr=" << (meshPtr_ ?
"set" :
"nullptr") <<
"]" 53 regionPrefix = meshRegion_;
60 if (select->GetNumberOfArrays() == 0 && !meshPtr_)
75 IOobjectList
objects(dbPtr_(), times[timei].
name(), regionPrefix);
79 objectNameSet.insert(iter.key());
83 const wordList objectNames(objectNameSet.toc());
89 enabledEntries.setSize(defaultFields.size());
92 enabledEntries[i] = objectNames[defaultFields[i]];
98 enabledEntries = getSelectedArrayEntries(select);
101 select->RemoveAllArrays();
106 IOobjectList
objects(dbPtr_(), times[timei].
name(), regionPrefix);
109 addToSelection<GeometricField<scalar, patchType, meshType>>
114 addToSelection<GeometricField<vector, patchType, meshType>>
119 addToSelection<GeometricField<sphericalTensor, patchType, meshType>>
124 addToSelection<GeometricField<symmTensor, patchType, meshType>>
129 addToSelection<GeometricField<tensor, patchType, meshType>>
137 setSelectedArrayEntries(select, enabledEntries);
141 Info<<
"<end> Foam::vtkPVFoam::updateInfoFields" <<
endl;
List< instant > instantList
List of instants.
#define forAll(list, i)
Loop across all elements in list.
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
List< label > labelList
A List of labels.
HashSet wordHashSet
A HashSet with word keys.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
word name(const complex &)
Return a string representation of a complex.
List< word > wordList
A List of words.
List< string > stringList
A List of strings.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
List< wordRe > wordReList
A List of wordRe (word or regular expression)