OpenFOAM logo
Open Source CFD Toolkit

DiagTensor Class Template Reference

Inheritance diagram for DiagTensor:

Inheritance graph
[legend]
Collaboration diagram for DiagTensor:

Collaboration graph
[legend]
List of all members.

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


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

const char *const typeName
const char * componentNames []
const DiagTensor zero
const DiagTensor one
const DiagTensor I

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
rank 

Definition at line 69 of file DiagTensor.H.

enum components
 

Component labeling enumeration.

Enumeration values:
XX 
YY 
ZZ 

Definition at line 85 of file DiagTensor.H.


Constructor & Destructor Documentation

DiagTensor  )  [inline]
 

Construct null.

Definition at line 41 of file DiagTensorI.H.

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

Construct given VectorSpace.

Definition at line 48 of file DiagTensorI.H.

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

Construct given three components.

Definition at line 59 of file DiagTensorI.H.

DiagTensor Istream  )  [inline]
 

Construct from Istream.

Definition at line 73 of file DiagTensorI.H.


Member Function Documentation

Cmpt & xx  )  [inline]
 

Definition at line 101 of file DiagTensorI.H.

const Cmpt & xx  )  const [inline]
 

Definition at line 82 of file DiagTensorI.H.

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

Cmpt & yy  )  [inline]
 

Definition at line 107 of file DiagTensorI.H.

const Cmpt & yy  )  const [inline]
 

Definition at line 88 of file DiagTensorI.H.

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

Cmpt & zz  )  [inline]
 

Definition at line 113 of file DiagTensorI.H.

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

Here is the call graph for this function:

const Cmpt & zz  )  const [inline]
 

Definition at line 94 of file DiagTensorI.H.

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


Member Data Documentation

const char* componentNames[] [static]
 

Definition at line 78 of file DiagTensor.H.

const DiagTensor I [static]
 

Definition at line 81 of file DiagTensor.H.

const DiagTensor one [static]
 

Definition at line 80 of file DiagTensor.H.

const char* const typeName [static]
 

Definition at line 77 of file DiagTensor.H.

const DiagTensor zero [static]
 

Definition at line 79 of file DiagTensor.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org