OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

DiagTensor Class Template Reference

Inheritance diagram for DiagTensor:

Inheritance graph
[legend]
Collaboration diagram for DiagTensor:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 60 of file DiagTensor.H.


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

Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 69 of file DiagTensor.H.

enum components

Component labeling enumeration.

Enumerator:
XX 
YY 
ZZ 

Definition at line 84 of file DiagTensor.H.


Constructor & Destructor Documentation

DiagTensor (  )  [inline]

Construct null.

Definition at line 43 of file DiagTensorI.H.

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

Construct given VectorSpace.

Definition at line 50 of file DiagTensorI.H.

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

Construct given three components.

Definition at line 61 of file DiagTensorI.H.

References VectorSpace::v_, DiagTensor::XX, DiagTensor::YY, and DiagTensor::ZZ.

DiagTensor ( Istream &   )  [inline]

Construct from Istream.

Definition at line 75 of file DiagTensorI.H.

References VectorSpace::v_, and DiagTensor::XX.


Member Function Documentation

const Cmpt & xx (  )  const [inline]

Definition at line 84 of file DiagTensorI.H.

References VectorSpace::v_, and DiagTensor::YY.

Referenced by Foam::det(), Foam::operator/(), Foam::sph(), and DiagTensor::zz().

Here is the caller graph for this function:

const Cmpt & yy (  )  const [inline]

Definition at line 90 of file DiagTensorI.H.

References VectorSpace::v_, and DiagTensor::ZZ.

Referenced by Foam::det(), Foam::operator/(), and Foam::sph().

Here is the caller graph for this function:

const Cmpt & zz (  )  const [inline]

Definition at line 96 of file DiagTensorI.H.

References VectorSpace::v_, and DiagTensor::XX.

Referenced by Foam::det(), Foam::operator/(), and Foam::sph().

Here is the caller graph for this function:

Cmpt & xx (  )  [inline]

Definition at line 103 of file DiagTensorI.H.

References VectorSpace::v_, and DiagTensor::YY.

Cmpt & yy (  )  [inline]

Definition at line 109 of file DiagTensorI.H.

References VectorSpace::v_, and DiagTensor::ZZ.

Cmpt & zz (  )  [inline]

Definition at line 115 of file DiagTensorI.H.

References Tensor::xx(), DiagTensor::xx(), Tensor::xy(), and Tensor::xz().

Here is the call graph for this function:


Member Data Documentation

const char* const typeName [static]

Definition at line 77 of file DiagTensor.H.

const char* componentNames[] [static]

Definition at line 78 of file DiagTensor.H.

const DiagTensor zero [static]

Definition at line 79 of file DiagTensor.H.

const DiagTensor one [static]

Definition at line 80 of file DiagTensor.H.


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