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

DiagTensor< Cmpt > Class Template Reference

Templated 3D DiagTensor derived from VectorSpace. More...

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

List of all members.


Public Types

enum  { rank = 2 }
enum  components { XX, YY, ZZ }
 Component labeling enumeration. More...

Public Member Functions

 DiagTensor ()
 Construct null.
 DiagTensor (const VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > &)
 Construct given VectorSpace.
 DiagTensor (const Cmpt &txx, const Cmpt &tyy, const Cmpt &tzz)
 Construct given three components.
 DiagTensor (Istream &)
 Construct from Istream.
const Cmpt & xx () const
const Cmpt & yy () const
const Cmpt & zz () const
Cmpt & xx ()
Cmpt & yy ()
Cmpt & zz ()

Static Public Attributes

static const char *const typeName
static const char * componentNames []
static const DiagTensor zero
static const DiagTensor one
static const DiagTensor max
static const DiagTensor min

Detailed Description

template<class Cmpt>
class Foam::DiagTensor< Cmpt >

Templated 3D DiagTensor derived from VectorSpace.

Adding construction from 3 components, element access using xx(), yy() and zz() member functions and the inner-product (dot-product) and outer-product operators.

Source files

Definition at line 49 of file DiagTensor.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 58 of file DiagTensor.H.

enum components

Component labeling enumeration.

Enumerator:
XX 
YY 
ZZ 

Definition at line 75 of file DiagTensor.H.


Constructor & Destructor Documentation

DiagTensor (  )  [inline]

Construct null.

Definition at line 29 of file DiagTensorI.H.

DiagTensor ( const VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > &  vs  )  [inline]

Construct given VectorSpace.

Definition at line 36 of file DiagTensorI.H.

DiagTensor ( const Cmpt &  txx,
const Cmpt &  tyy,
const Cmpt &  tzz 
) [inline]

Construct given three components.

Definition at line 47 of file DiagTensorI.H.


Member Function Documentation

const Cmpt & xx (  )  const [inline]

Definition at line 70 of file DiagTensorI.H.

Referenced by Foam::diag(), Foam::inv(), Foam::operator/(), Foam::sph(), and Foam::tr().

Here is the caller graph for this function:

const Cmpt & yy (  )  const [inline]

Definition at line 76 of file DiagTensorI.H.

References VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 >::v_, and DiagTensor< Cmpt >::XX.

Referenced by Foam::diag(), Foam::inv(), Foam::operator/(), Foam::sph(), and Foam::tr().

Here is the caller graph for this function:

const Cmpt & zz (  )  const [inline]

Definition at line 82 of file DiagTensorI.H.

Referenced by Foam::diag(), Foam::inv(), Foam::operator/(), Foam::sph(), and Foam::tr().

Here is the caller graph for this function:

Cmpt & xx (  )  [inline]

Cmpt & yy (  )  [inline]

Cmpt & zz (  )  [inline]

Definition at line 101 of file DiagTensorI.H.


Member Data Documentation

const char* const typeName [static]

Definition at line 66 of file DiagTensor.H.

const char* componentNames[] [static]

Definition at line 67 of file DiagTensor.H.

const DiagTensor zero [static]

Definition at line 68 of file DiagTensor.H.

const DiagTensor one [static]

Definition at line 69 of file DiagTensor.H.

const DiagTensor max [static]

Definition at line 70 of file DiagTensor.H.

const DiagTensor min [static]

Definition at line 71 of file DiagTensor.H.


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