A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects which are known to be one at compile-time. More...
Public Member Functions | |
oneField () | |
Construct null. More... | |
scalar | operator[] (const label) const |
oneField | field () const |
![]() | |
one () | |
Construct null. More... | |
A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects which are known to be one at compile-time.
Used for example as the density argument to a function written for compressible to be used for incompressible flow.
Definition at line 50 of file oneField.H.
|
inline |
Construct null.
Definition at line 60 of file oneField.H.
References oneField::field(), and oneField::operator[]().
Referenced by oneField::field().
|
inline |
Definition at line 30 of file oneFieldI.H.
Referenced by oneField::oneField().
|
inline |
Definition at line 36 of file oneFieldI.H.
References oneField::oneField().
Referenced by oneField::oneField().