A class representing the concept of a field of 0 used to avoid unnecessary manipulations for objects which are known to be zero at compile-time. More...
#include <OpenFOAM/zeroField.H>
A class representing the concept of a field of 0 used to avoid unnecessary manipulations for objects which are known to be zero at compile-time.
Used for example as the argument to a function in which certain terms are optional, see source terms in the MULES solvers.
Definition at line 51 of file zeroField.H.
Public Member Functions | |
zeroField () | |
Construct null.
| |
scalar | operator[] (const label) const |
zeroField | field () const |
zeroField | oldTime () const |
zeroField | ( | ) | [inline]
|
Construct null.
Definition at line 60 of file zeroField.H.
Foam::scalar operator[] | ( | const | label ) | const [inline]
|
Definition at line 30 of file zeroFieldI.H.
Foam::zeroField field | ( | ) | const [inline]
|
Definition at line 35 of file zeroFieldI.H.
Foam::zeroField oldTime | ( | ) | const [inline]
|
Definition at line 40 of file zeroFieldI.H.