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

SymmTensor Class Template Reference

Inheritance diagram for SymmTensor:

Inheritance graph
[legend]
Collaboration diagram for SymmTensor:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Cmpt>
class Foam::SymmTensor< Cmpt >

Definition at line 62 of file SymmTensor.H.


Public Types

enum  { rank = 2 }
enum  components {
  XX, XY, XZ, YY,
  YZ, ZZ
}
 Component labeling enumeration. More...
typedef SymmTensor< label > labelType
 Equivalent type of labels used for valid component indexing.

Public Member Functions

 SymmTensor ()
 Construct null.
 SymmTensor (const VectorSpace< SymmTensor< Cmpt >, Cmpt, 6 > &)
 Construct given VectorSpace.
 SymmTensor (const SphericalTensor< Cmpt > &)
 Construct given SphericalTensor.
 SymmTensor (const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyy, const Cmpt tyz, const Cmpt tzz)
 Construct from components.
 SymmTensor (Istream &)
 Construct from Istream.
const Cmpt & xx () const
const Cmpt & xy () const
const Cmpt & xz () const
const Cmpt & yy () const
const Cmpt & yz () const
const Cmpt & zz () const
Cmpt & xx ()
Cmpt & xy ()
Cmpt & xz ()
Cmpt & yy ()
Cmpt & yz ()
Cmpt & zz ()
const SymmTensor< Cmpt > & T () const
 Return symmetric tensor transpose.
void operator= (const SphericalTensor< Cmpt > &)
 Construct given SphericalTensor.

Static Public Attributes

static const char *const typeName
static const char * componentNames []
static const SymmTensor zero
static const SymmTensor one

Member Typedef Documentation

Equivalent type of labels used for valid component indexing.

Definition at line 70 of file SymmTensor.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 75 of file SymmTensor.H.

enum components

Component labeling enumeration.

Enumerator:
XX 
XY 
XZ 
YY 
YZ 
ZZ 

Definition at line 91 of file SymmTensor.H.


Constructor & Destructor Documentation

SymmTensor (  )  [inline]

Construct null.

Definition at line 43 of file SymmTensorI.H.

SymmTensor ( const VectorSpace< SymmTensor< Cmpt >, Cmpt, 6 > &   )  [inline]

Construct given VectorSpace.

Definition at line 50 of file SymmTensorI.H.

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

Construct given SphericalTensor.

Definition at line 60 of file SymmTensorI.H.

SymmTensor ( const Cmpt  txx,
const Cmpt  txy,
const Cmpt  txz,
const Cmpt  tyy,
const Cmpt  tyz,
const Cmpt  tzz 
) [inline]

Construct from components.

Definition at line 71 of file SymmTensorI.H.

References VectorSpace::v_, SymmTensor::XX, SymmTensor::XY, SymmTensor::XZ, SymmTensor::YY, SymmTensor::YZ, and SymmTensor::ZZ.

SymmTensor ( Istream &   )  [inline]

Construct from Istream.

Definition at line 85 of file SymmTensorI.H.

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


Member Function Documentation

const Cmpt & xx (  )  const [inline]

Definition at line 94 of file SymmTensorI.H.

References VectorSpace::v_, and SymmTensor::XY.

Referenced by Foam::dev2(), Foam::invariantIII(), Foam::operator &&(), and Foam::operator *().

Here is the caller graph for this function:

const Cmpt & xy (  )  const [inline]

Definition at line 100 of file SymmTensorI.H.

References VectorSpace::v_, and SymmTensor::XZ.

Referenced by Foam::dev2(), Foam::invariantIII(), and Foam::operator *().

Here is the caller graph for this function:

const Cmpt & xz (  )  const [inline]

Definition at line 106 of file SymmTensorI.H.

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

Referenced by Foam::dev2(), Foam::invariantIII(), and Foam::operator *().

Here is the caller graph for this function:

const Cmpt & yy (  )  const [inline]

Definition at line 112 of file SymmTensorI.H.

References VectorSpace::v_, and SymmTensor::YZ.

Referenced by Foam::dev2(), and Foam::operator &&().

Here is the caller graph for this function:

const Cmpt & yz (  )  const [inline]

Definition at line 118 of file SymmTensorI.H.

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

Referenced by Foam::dev2().

Here is the caller graph for this function:

const Cmpt & zz (  )  const [inline]

Definition at line 124 of file SymmTensorI.H.

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

Referenced by Foam::dev2(), and Foam::operator &&().

Here is the caller graph for this function:

Cmpt & xx (  )  [inline]

Definition at line 131 of file SymmTensorI.H.

References VectorSpace::v_, and SymmTensor::XY.

Cmpt & xy (  )  [inline]

Definition at line 137 of file SymmTensorI.H.

References VectorSpace::v_, and SymmTensor::XZ.

Cmpt & xz (  )  [inline]

Definition at line 143 of file SymmTensorI.H.

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

Cmpt & yy (  )  [inline]

Definition at line 149 of file SymmTensorI.H.

References VectorSpace::v_, and SymmTensor::YZ.

Cmpt & yz (  )  [inline]

Definition at line 155 of file SymmTensorI.H.

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

Cmpt & zz (  )  [inline]

Definition at line 161 of file SymmTensorI.H.

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

Return symmetric tensor transpose.

Definition at line 169 of file SymmTensorI.H.

References SphericalTensor::ii(), VectorSpace::v_, SymmTensor::XX, SymmTensor::XY, SymmTensor::XZ, SymmTensor::YY, SymmTensor::YZ, and SymmTensor::ZZ.

Here is the call graph for this function:

void operator= ( const SphericalTensor< Cmpt > &   )  [inline]

Construct given SphericalTensor.

Definition at line 178 of file SymmTensorI.H.


Member Data Documentation

const char* const typeName [static]

Definition at line 83 of file SymmTensor.H.

const char* componentNames[] [static]

Definition at line 84 of file SymmTensor.H.

const SymmTensor zero [static]

Definition at line 86 of file SymmTensor.H.

const SymmTensor one [static]

Definition at line 87 of file SymmTensor.H.


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