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

oneField Class Reference

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

Inheritance diagram for oneField:
Collaboration diagram for oneField:

List of all members.


Public Member Functions

 oneField ()
 Construct null.
scalar operator[] (const label) const
oneField field () const
oneField oldTime () const

Detailed Description

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


Constructor & Destructor Documentation

oneField (  )  [inline]

Construct null.

Definition at line 52 of file oneField.H.

References oneField::field(), oneField::oldTime(), and oneField::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 oneFieldI.H.

Referenced by oneField::oneField().

Here is the caller graph for this function:

Foam::oneField field (  )  const [inline]

Definition at line 27 of file oneFieldI.H.

Referenced by oneField::oneField().

Here is the caller graph for this function:

Foam::oneField oldTime (  )  const [inline]

Definition at line 32 of file oneFieldI.H.

Referenced by oneField::oneField().

Here is the caller graph for this function:


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