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

SphericalTensor2D< Cmpt > Class Template Reference

Templated 2D sphericalTensor derived from VectorSpace adding construction from 1 component, element access using ii() member function and the inner-product (dot-product) and outer-product operators. More...

Inheritance diagram for SphericalTensor2D< Cmpt >:
Collaboration diagram for SphericalTensor2D< Cmpt >:

List of all members.


Public Types

enum  { rank = 2 }
enum  components { II }
 Component labeling enumeration. More...

Public Member Functions

 SphericalTensor2D ()
 Construct null.
 SphericalTensor2D (const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > &)
 Construct given VectorSpace.
 SphericalTensor2D (const Cmpt &tii)
 Construct given the component.
 SphericalTensor2D (Istream &)
 Construct from Istream.
const Cmpt & ii () const
Cmpt & ii ()

Static Public Attributes

static const char *const typeName
static const char * componentNames []
static const SphericalTensor2D zero
static const SphericalTensor2D one
static const SphericalTensor2D max
static const SphericalTensor2D min
static const SphericalTensor2D I
static const SphericalTensor2D oneThirdI
static const SphericalTensor2D twoThirdsI

Detailed Description

template<class Cmpt>
class Foam::SphericalTensor2D< Cmpt >

Templated 2D sphericalTensor derived from VectorSpace adding construction from 1 component, element access using ii() member function and the inner-product (dot-product) and outer-product operators.

Source files

Definition at line 47 of file SphericalTensor2D.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 56 of file SphericalTensor2D.H.

enum components

Component labeling enumeration.

Enumerator:
II 

Definition at line 76 of file SphericalTensor2D.H.


Constructor & Destructor Documentation

SphericalTensor2D (  )  [inline]

Construct null.

Definition at line 29 of file SphericalTensor2DI.H.

SphericalTensor2D ( const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > &  vs  )  [inline]

Construct given VectorSpace.

Definition at line 36 of file SphericalTensor2DI.H.

SphericalTensor2D ( const Cmpt &  tii  )  [inline]

Construct given the component.

Definition at line 46 of file SphericalTensor2DI.H.

SphericalTensor2D ( Istream &  is  )  [inline]


Member Function Documentation

const Cmpt & ii (  )  const [inline]

Definition at line 63 of file SphericalTensor2DI.H.

Referenced by Foam::inv(), Foam::operator&&(), Foam::sph(), Tensor2D< Cmpt >::Tensor2D(), and Foam::tr().

Here is the caller graph for this function:

Cmpt & ii (  )  [inline]


Member Data Documentation

const char* const typeName [static]

Definition at line 64 of file SphericalTensor2D.H.

const char* componentNames[] [static]

Definition at line 65 of file SphericalTensor2D.H.

const SphericalTensor2D zero [static]

Definition at line 66 of file SphericalTensor2D.H.

const SphericalTensor2D one [static]

Definition at line 67 of file SphericalTensor2D.H.

const SphericalTensor2D max [static]

Definition at line 68 of file SphericalTensor2D.H.

const SphericalTensor2D min [static]

Definition at line 69 of file SphericalTensor2D.H.

const SphericalTensor2D I [static]

Definition at line 70 of file SphericalTensor2D.H.

const SphericalTensor2D oneThirdI [static]

Definition at line 71 of file SphericalTensor2D.H.

const SphericalTensor2D twoThirdsI [static]

Definition at line 72 of file SphericalTensor2D.H.


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