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...
Public Member Functions | |
zeroField () noexcept=default | |
zeroField | field () const noexcept |
scalar | operator[] (const label) const noexcept |
zeroField | operator() () const noexcept |
zeroField | operator- () const noexcept |
![]() | |
constexpr | zero () noexcept |
constexpr | zero (Istream &) noexcept |
constexpr | operator bool () const noexcept |
constexpr | operator label () const noexcept |
constexpr | operator float () const noexcept |
constexpr | operator double () const noexcept |
Additional Inherited Members | |
![]() | |
typedef zero | value_type |
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 47 of file zeroField.H.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 61 of file zeroField.H.
Referenced by isoAdvection::advect().
|
inlinenoexcept |
Definition at line 69 of file zeroField.H.
|
inlinenoexcept |
Definition at line 74 of file zeroField.H.
|
inlinenoexcept |
Definition at line 79 of file zeroField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.