33 void Foam::sampledSets::clearFieldGroups()
35 scalarFields_.clear();
36 vectorFields_.clear();
37 sphericalTensorFields_.clear();
38 symmTensorFields_.clear();
39 tensorFields_.clear();
45 const word& fieldName,
51 scalarFields_.append(fieldName);
56 vectorFields_.append(fieldName);
61 sphericalTensorFields_.append(fieldName);
66 symmTensorFields_.append(fieldName);
71 tensorFields_.append(fieldName);
98 const word& fieldName = allFields[indices[fieldi]];
100 nFields += appendFieldGroup
103 objects.find(fieldName)()->headerClassName()
110 <<
"Cannot find field file matching " 111 << fieldSelection_[i] <<
endl;
121 forAll(fieldSelection_, i)
129 const word& fieldName = allFields[indices[fieldi]];
131 nFields += appendFieldGroup
141 <<
"Cannot find registered field matching " 142 << fieldSelection_[i] <<
endl;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const char *const typeName
Ostream & endl(Ostream &os)
Add newline and flush stream.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Operations on lists of strings.
const Time & time() const
Return the top-level database.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
virtual const word & type() const =0
Runtime type information.
List< label > labelList
A List of labels.
List< word > wordList
A List of words.
#define WarningInFunction
Report a warning using Foam::Warning.