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

SymmTensor< Cmpt > Class Template Reference

Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 components, element access using xx(), xy() etc. member functions and the inner-product (dot-product) and outer-product of two Vectors (tensor-product) operators. More...

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

List of all members.


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 given the six 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
 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
static const SymmTensor max
static const SymmTensor min

Detailed Description

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

Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 components, element access using xx(), xy() etc. member functions and the inner-product (dot-product) and outer-product of two Vectors (tensor-product) operators.

Source files

Definition at line 49 of file SymmTensor.H.


Member Typedef Documentation

Equivalent type of labels used for valid component indexing.

Definition at line 57 of file SymmTensor.H.


Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 62 of file SymmTensor.H.

enum components

Component labeling enumeration.

Enumerator:
XX 
XY 
XZ 
YY 
YZ 
ZZ 

Definition at line 80 of file SymmTensor.H.


Constructor & Destructor Documentation

SymmTensor (  )  [inline]

Construct null.

Definition at line 28 of file SymmTensorI.H.

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

Construct given VectorSpace.

Definition at line 34 of file SymmTensorI.H.

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

Construct given SphericalTensor.

Definition at line 43 of file SymmTensorI.H.

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


Member Function Documentation

const Cmpt & xx (  )  const [inline]

Definition at line 75 of file SymmTensorI.H.

Referenced by Foam::operator&&(), Foam::sph(), and Foam::sqr().

Here is the caller graph for this function:

const Cmpt & xy (  )  const [inline]

Definition at line 81 of file SymmTensorI.H.

References VectorSpace< SymmTensor< Cmpt >, Cmpt, 6 >::v_, and SymmTensor< Cmpt >::XX.

Referenced by Foam::operator&().

Here is the caller graph for this function:

const Cmpt & xz (  )  const [inline]

Definition at line 87 of file SymmTensorI.H.

Referenced by Foam::operator&().

Here is the caller graph for this function:

const Cmpt & yy (  )  const [inline]

Definition at line 93 of file SymmTensorI.H.

Referenced by Foam::operator&&(), Foam::sph(), and Foam::sqr().

Here is the caller graph for this function:

const Cmpt & yz (  )  const [inline]

Definition at line 99 of file SymmTensorI.H.

Referenced by Foam::operator&().

Here is the caller graph for this function:

const Cmpt & zz (  )  const [inline]

Definition at line 105 of file SymmTensorI.H.

Referenced by Foam::operator&&(), Foam::sph(), and Foam::sqr().

Here is the caller graph for this function:

Cmpt & xx (  )  [inline]

Cmpt & xy (  )  [inline]

Cmpt & xz (  )  [inline]

Definition at line 124 of file SymmTensorI.H.

Cmpt & yy (  )  [inline]

Definition at line 130 of file SymmTensorI.H.

Cmpt & yz (  )  [inline]

Definition at line 136 of file SymmTensorI.H.

Cmpt & zz (  )  [inline]

Definition at line 142 of file SymmTensorI.H.

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

Transpose.

Definition at line 149 of file SymmTensorI.H.

References VectorSpace< SymmTensor< Cmpt >, Cmpt, 6 >::v_, and SymmTensor< Cmpt >::ZZ.

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

Construct given SphericalTensor.

Definition at line 158 of file SymmTensorI.H.


Member Data Documentation

const char* const typeName [static]

Definition at line 70 of file SymmTensor.H.

const char* componentNames[] [static]

Definition at line 71 of file SymmTensor.H.

const SymmTensor zero [static]

Definition at line 73 of file SymmTensor.H.

const SymmTensor one [static]

Definition at line 74 of file SymmTensor.H.

const SymmTensor max [static]

Definition at line 75 of file SymmTensor.H.

const SymmTensor min [static]

Definition at line 76 of file SymmTensor.H.


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