Helper class to describe what form of averaging to apply. A set will be applied to each base field in Foam::fieldAverage, of the form: More...

Public Types | |
| enum | baseType { ITER, TIME } |
| Enumeration defining the averaging base type. More... | |
Public Member Functions | |
| fieldAverageItem () | |
| Construct null. More... | |
| fieldAverageItem (Istream &) | |
| Construct from Istream. More... | |
| fieldAverageItem (const fieldAverageItem &) | |
| Construct as copy. More... | |
| ~fieldAverageItem () | |
| Destructor. More... | |
| const word & | fieldName () const |
| Return const access to the field name. More... | |
| const Switch & | mean () const |
| Return const access to the mean flag. More... | |
| Switch & | mean () |
| Return non-const access to the mean flag. More... | |
| const word & | meanFieldName () const |
| Return const access to the mean field name. More... | |
| const Switch & | prime2Mean () const |
| Return const access to the prime-squared mean flag. More... | |
| Switch & | prime2Mean () |
| Return non-const access to the prime-squared mean flag. More... | |
| const word & | prime2MeanFieldName () const |
| Return const access to the prime-squared mean field name. More... | |
| const word | base () const |
| Return averaging base type name. More... | |
| Switch | iterBase () const |
| Return true if base is ITER. More... | |
| Switch | timeBase () const |
| Return true if base is time. More... | |
| scalar | window () const |
| const word & | windowName () const |
| void | operator= (const fieldAverageItem &) |
Static Public Attributes | |
| static const word | EXT_MEAN |
| Mean average. More... | |
| static const word | EXT_PRIME2MEAN |
| Prime-squared average. More... | |
Friends | |
| bool | operator== (const fieldAverageItem &a, const fieldAverageItem &b) |
| bool | operator!= (const fieldAverageItem &a, const fieldAverageItem &b) |
| Istream & | operator>> (Istream &, fieldAverageItem &) |
| Ostream & | operator<< (Ostream &, const fieldAverageItem &) |
Helper class to describe what form of averaging to apply. A set will be applied to each base field in Foam::fieldAverage, of the form:
{
mean on;
prime2Mean on;
base time; // iteration
window 200; // optional averaging window
windowName w1; // optional window name (default = "")
}
The averaging window corresponds to the averaging interval (iters or time) If not specified, the averaging is over 'all iters/time'
Definition at line 76 of file fieldAverageItem.H.
| enum baseType |
Enumeration defining the averaging base type.
| Enumerator | |
|---|---|
| ITER | |
| TIME | |
Definition at line 91 of file fieldAverageItem.H.
| fieldAverageItem | ( | ) |
Construct null.
Definition at line 56 of file fieldAverageItem.C.
| fieldAverageItem | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 32 of file fieldAverageItemIO.C.
References IOstream::check(), fieldAverageItem::EXT_MEAN, fieldAverageItem::EXT_PRIME2MEAN, entry::keyword(), dictionary::lookup(), dictionary::lookupOrDefault(), and dictionary::null.

| fieldAverageItem | ( | const fieldAverageItem & | faItem | ) |
Construct as copy.
Definition at line 70 of file fieldAverageItem.C.
| ~fieldAverageItem | ( | ) |
Destructor.
Definition at line 87 of file fieldAverageItem.C.
|
inline |
Return const access to the field name.
Definition at line 153 of file fieldAverageItem.H.
|
inline |
Return const access to the mean flag.
Definition at line 159 of file fieldAverageItem.H.
|
inline |
Return non-const access to the mean flag.
Definition at line 165 of file fieldAverageItem.H.
|
inline |
Return const access to the mean field name.
Definition at line 171 of file fieldAverageItem.H.
|
inline |
Return const access to the prime-squared mean flag.
Definition at line 177 of file fieldAverageItem.H.
|
inline |
Return non-const access to the prime-squared mean flag.
Definition at line 183 of file fieldAverageItem.H.
|
inline |
Return const access to the prime-squared mean field name.
Definition at line 189 of file fieldAverageItem.H.
|
inline |
Return averaging base type name.
Definition at line 195 of file fieldAverageItem.H.
|
inline |
Return true if base is ITER.
Definition at line 201 of file fieldAverageItem.H.
References fieldAverageItem::ITER.
|
inline |
Return true if base is time.
Definition at line 207 of file fieldAverageItem.H.
References fieldAverageItem::TIME.
|
inline |
Definition at line 212 of file fieldAverageItem.H.
|
inline |
Definition at line 217 of file fieldAverageItem.H.
References fieldAverageItem::operator=().

| void operator= | ( | const fieldAverageItem & | rhs | ) |
Definition at line 94 of file fieldAverageItem.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Referenced by fieldAverageItem::windowName().


|
friend |
Definition at line 231 of file fieldAverageItem.H.
|
friend |
Definition at line 248 of file fieldAverageItem.H.
|
friend |
|
friend |
|
static |
Mean average.
Definition at line 85 of file fieldAverageItem.H.
Referenced by fieldAverageItem::fieldAverageItem(), and Foam::functionObjects::operator>>().
|
static |
Prime-squared average.
Definition at line 88 of file fieldAverageItem.H.
Referenced by fieldAverageItem::fieldAverageItem(), and Foam::functionObjects::operator>>().
1.8.13