FreeFOAM The Cross-Platform CFD Toolkit
zeroField Class Reference

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>


Detailed Description

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.

+ Inheritance diagram for zeroField:
+ Collaboration diagram for zeroField:

List of all members.

Public Member Functions

 zeroField ()
 Construct null.
scalar operator[] (const label) const
zeroField field () const
zeroField oldTime () const
- Public Member Functions inherited from zero
 zero ()

Constructor & Destructor Documentation

zeroField ( )
inline

Construct null.

Definition at line 60 of file zeroField.H.


Member Function Documentation

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.


The documentation for this class was generated from the following files: