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

SphericalTensor< Cmpt > Class Template Reference

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

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

List of all members.


Public Types

enum  { rank = 2 }
enum  components { II }
 Component labeling enumeration. More...
typedef SphericalTensor< label > labelType
 Equivalent type of labels used for valid component indexing.

Public Member Functions

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

Static Public Attributes

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

Detailed Description

template<class Cmpt>
class Foam::SphericalTensor< Cmpt >

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

Source files

Definition at line 47 of file SphericalTensor.H.


Member Typedef Documentation

Equivalent type of labels used for valid component indexing.

Definition at line 55 of file SphericalTensor.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 60 of file SphericalTensor.H.

enum components

Component labeling enumeration.

Enumerator:
II 

Definition at line 80 of file SphericalTensor.H.


Constructor & Destructor Documentation

SphericalTensor (  )  [inline]

Construct null.

Definition at line 29 of file SphericalTensorI.H.

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

Construct given VectorSpace.

Definition at line 36 of file SphericalTensorI.H.

SphericalTensor ( const Cmpt &  tii  )  [inline]

Construct given the component.

Definition at line 46 of file SphericalTensorI.H.

SphericalTensor ( Istream &  is  )  [inline]


Member Function Documentation

const Cmpt & ii (  )  const [inline]

Cmpt & ii (  )  [inline]

const SphericalTensor< Cmpt > & T (  )  const [inline]


Member Data Documentation

const char* const typeName [static]

Definition at line 68 of file SphericalTensor.H.

const char* componentNames[] [static]

Definition at line 69 of file SphericalTensor.H.

const SphericalTensor zero [static]

Definition at line 70 of file SphericalTensor.H.

const SphericalTensor one [static]

Definition at line 71 of file SphericalTensor.H.

const SphericalTensor max [static]

Definition at line 72 of file SphericalTensor.H.

const SphericalTensor min [static]

Definition at line 73 of file SphericalTensor.H.

const SphericalTensor I [static]

Definition at line 74 of file SphericalTensor.H.

const SphericalTensor oneThirdI [static]

Definition at line 75 of file SphericalTensor.H.

const SphericalTensor twoThirdsI [static]

Definition at line 76 of file SphericalTensor.H.


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