OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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...

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

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 43 of file zeroField.H.


Constructor & Destructor Documentation

zeroField (  )  [inline]

Construct null.

Definition at line 52 of file zeroField.H.

References zeroField::field(), zeroField::oldTime(), and zeroField::operator[]().

Here is the call graph for this function:


Member Function Documentation

Foam::scalar operator[] ( const   label  )  const [inline]

Definition at line 22 of file zeroFieldI.H.

Referenced by zeroField::zeroField().

Here is the caller graph for this function:

Foam::zeroField field (  )  const [inline]

Definition at line 27 of file zeroFieldI.H.

Referenced by zeroField::zeroField().

Here is the caller graph for this function:

Foam::zeroField oldTime (  )  const [inline]

Definition at line 32 of file zeroFieldI.H.

Referenced by zeroField::zeroField().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd