OpenFOAM logo
Open Source CFD Toolkit

Tensor Class Template Reference

Inheritance diagram for Tensor:

Inheritance graph
[legend]
Collaboration diagram for Tensor:

Collaboration graph
[legend]
List of all members.

template<class Cmpt>
class Foam::Tensor< Cmpt >


Public Types

enum  { rank = 2 }
enum  components {
  XX, XY, XZ, YX,
  YY, YZ, ZX, ZY,
  ZZ
}
 Component labeling enumeration. More...

Public Member Functions

 Tensor ()
 Construct null.
 Tensor (const VectorSpace< Tensor< Cmpt >, Cmpt, 9 > &)
 Construct given VectorSpace.
 Tensor (const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyx, const Cmpt tyy, const Cmpt tyz, const Cmpt tzx, const Cmpt tzy, const Cmpt tzz)
 Construct from components.
 Tensor (Istream &)
 Construct from Istream.
const Vector< Cmpt > & x () const
const Vector< Cmpt > & y () const
const Vector< Cmpt > & z () const
Vector< Cmpt > & x ()
Vector< Cmpt > & y ()
Vector< Cmpt > & z ()
const Cmpt & xx () const
const Cmpt & xy () const
const Cmpt & xz () const
const Cmpt & yx () const
const Cmpt & yy () const
const Cmpt & yz () const
const Cmpt & zx () const
const Cmpt & zy () const
const Cmpt & zz () const
Cmpt & xx ()
Cmpt & xy ()
Cmpt & xz ()
Cmpt & yx ()
Cmpt & yy ()
Cmpt & yz ()
Cmpt & zx ()
Cmpt & zy ()
Cmpt & zz ()
Tensor< Cmpt > T () const
 Return tensor transpose.

Static Public Attributes

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

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
rank 

Definition at line 70 of file Tensor.H.

enum components
 

Component labeling enumeration.

Enumeration values:
XX 
XY 
XZ 
YX 
YY 
YZ 
ZX 
ZY 
ZZ 

Definition at line 86 of file Tensor.H.


Constructor & Destructor Documentation

Tensor  )  [inline]
 

Construct null.

Definition at line 41 of file TensorI.H.

Tensor const VectorSpace< Tensor< Cmpt >, Cmpt, 9 > &   )  [inline]
 

Construct given VectorSpace.

Definition at line 47 of file TensorI.H.

Tensor const Cmpt  txx,
const Cmpt  txy,
const Cmpt  txz,
const Cmpt  tyx,
const Cmpt  tyy,
const Cmpt  tyz,
const Cmpt  tzx,
const Cmpt  tzy,
const Cmpt  tzz
[inline]
 

Construct from components.

Definition at line 56 of file TensorI.H.

Tensor Istream  )  [inline]
 

Construct from Istream.

Definition at line 70 of file TensorI.H.


Member Function Documentation

Tensor< Cmpt > T  )  const [inline]
 

Return tensor transpose.

Definition at line 232 of file TensorI.H.

Referenced by Foam::transform().

Vector< Cmpt > & x  )  [inline]
 

Definition at line 98 of file TensorI.H.

const Vector< Cmpt > & x  )  const [inline]
 

Definition at line 79 of file TensorI.H.

Cmpt & xx  )  [inline]
 

Definition at line 174 of file TensorI.H.

const Cmpt & xx  )  const [inline]
 

Definition at line 117 of file TensorI.H.

Referenced by SphericalTensor::ii(), Foam::inv(), Foam::operator &(), Foam::tr(), Tensor::zz(), and DiagTensor::zz().

Cmpt & xy  )  [inline]
 

Definition at line 180 of file TensorI.H.

const Cmpt & xy  )  const [inline]
 

Definition at line 123 of file TensorI.H.

Referenced by SphericalTensor::ii(), Foam::tr(), and DiagTensor::zz().

Cmpt & xz  )  [inline]
 

Definition at line 186 of file TensorI.H.

const Cmpt & xz  )  const [inline]
 

Definition at line 129 of file TensorI.H.

Referenced by SphericalTensor::ii(), Foam::tr(), and DiagTensor::zz().

Vector< Cmpt > & y  )  [inline]
 

Definition at line 104 of file TensorI.H.

const Vector< Cmpt > & y  )  const [inline]
 

Definition at line 85 of file TensorI.H.

Cmpt & yx  )  [inline]
 

Definition at line 193 of file TensorI.H.

const Cmpt & yx  )  const [inline]
 

Definition at line 136 of file TensorI.H.

Referenced by Foam::tr(), and Tensor::zz().

Cmpt & yy  )  [inline]
 

Definition at line 199 of file TensorI.H.

const Cmpt & yy  )  const [inline]
 

Definition at line 142 of file TensorI.H.

Referenced by Foam::inv().

Cmpt & yz  )  [inline]
 

Definition at line 205 of file TensorI.H.

const Cmpt & yz  )  const [inline]
 

Definition at line 148 of file TensorI.H.

Vector< Cmpt > & z  )  [inline]
 

Definition at line 110 of file TensorI.H.

const Vector< Cmpt > & z  )  const [inline]
 

Definition at line 91 of file TensorI.H.

Cmpt & zx  )  [inline]
 

Definition at line 212 of file TensorI.H.

const Cmpt & zx  )  const [inline]
 

Definition at line 155 of file TensorI.H.

Referenced by Foam::tr(), and Tensor::zz().

Cmpt & zy  )  [inline]
 

Definition at line 218 of file TensorI.H.

const Cmpt & zy  )  const [inline]
 

Definition at line 161 of file TensorI.H.

Cmpt & zz  )  [inline]
 

Definition at line 224 of file TensorI.H.

References Tensor::xx(), Tensor::yx(), and Tensor::zx().

Here is the call graph for this function:

const Cmpt & zz  )  const [inline]
 

Definition at line 167 of file TensorI.H.

Referenced by Foam::inv().


Member Data Documentation

const char* componentNames[] [static]
 

Definition at line 79 of file Tensor.H.

const Tensor I [static]
 

Definition at line 83 of file Tensor.H.

const Tensor one [static]
 

Definition at line 82 of file Tensor.H.

const char* const typeName [static]
 

Definition at line 78 of file Tensor.H.

const Tensor zero [static]
 

Definition at line 81 of file Tensor.H.


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