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

Tensor2D Class Template Reference

Inheritance diagram for Tensor2D:

Inheritance graph
[legend]
Collaboration diagram for Tensor2D:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Cmpt>
class Foam::Tensor2D< Cmpt >

Definition at line 62 of file Tensor2D.H.


Public Types

enum  { rank = 2 }
enum  components { XX, XY, YX, YY }
 Component labeling enumeration. More...

Public Member Functions

 Tensor2D ()
 Construct null.
 Tensor2D (const VectorSpace< Tensor2D< Cmpt >, Cmpt, 4 > &)
 Construct given VectorSpace.
 Tensor2D (const SphericalTensor2D< Cmpt > &)
 Construct given SphericalTensor2D.
 Tensor2D (const Cmpt txx, const Cmpt txy, const Cmpt tyx, const Cmpt tyy)
 Construct from components.
 Tensor2D (Istream &)
 Construct from Istream.
const Vector2D< Cmpt > & x () const
const Vector2D< Cmpt > & y () const
Vector2D< Cmpt > & x ()
Vector2D< Cmpt > & y ()
const Cmpt & xx () const
const Cmpt & xy () const
const Cmpt & yx () const
const Cmpt & yy () const
Cmpt & xx ()
Cmpt & xy ()
Cmpt & yx ()
Cmpt & yy ()
Tensor2D< Cmpt > T () const
 Return tensor transpose.
void operator= (const SphericalTensor2D< Cmpt > &)
 Construct given SphericalTensor2D.

Static Public Attributes

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

Member Enumeration Documentation

anonymous enum

Enumerator:
rank 

Definition at line 71 of file Tensor2D.H.

enum components

Component labeling enumeration.

Enumerator:
XX 
XY 
YX 
YY 

Definition at line 86 of file Tensor2D.H.


Constructor & Destructor Documentation

Tensor2D (  )  [inline]

Construct null.

Definition at line 41 of file Tensor2DI.H.

Tensor2D ( const VectorSpace< Tensor2D< Cmpt >, Cmpt, 4 > &   )  [inline]

Construct given VectorSpace.

Definition at line 47 of file Tensor2DI.H.

References SphericalTensor2D::ii(), VectorSpace::v_, Tensor2D::XX, Tensor2D::XY, Tensor2D::YX, and Tensor2D::YY.

Here is the call graph for this function:

Tensor2D ( const SphericalTensor2D< Cmpt > &   )  [inline]

Construct given SphericalTensor2D.

Definition at line 55 of file Tensor2DI.H.

Tensor2D ( const Cmpt  txx,
const Cmpt  txy,
const Cmpt  tyx,
const Cmpt  tyy 
) [inline]

Construct from components.

Definition at line 65 of file Tensor2DI.H.

Tensor2D ( Istream &   )  [inline]

Construct from Istream.

Definition at line 77 of file Tensor2DI.H.

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


Member Function Documentation

const Vector2D< Cmpt > & x (  )  const [inline]

Definition at line 86 of file Tensor2DI.H.

References VectorSpace::v_, and Tensor2D::YX.

const Vector2D< Cmpt > & y (  )  const [inline]

Definition at line 92 of file Tensor2DI.H.

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

Vector2D< Cmpt > & x (  )  [inline]

Definition at line 99 of file Tensor2DI.H.

References VectorSpace::v_, and Tensor2D::YX.

Vector2D< Cmpt > & y (  )  [inline]

Definition at line 105 of file Tensor2DI.H.

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

const Cmpt & xx (  )  const [inline]

Definition at line 112 of file Tensor2DI.H.

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

Referenced by Foam::dev2(), Foam::invariantIII(), Foam::operator &&(), Tensor2D::operator=(), Foam::sph(), and Tensor2D::yy().

Here is the caller graph for this function:

const Cmpt & xy (  )  const [inline]

Definition at line 118 of file Tensor2DI.H.

References VectorSpace::v_, and Tensor2D::YX.

Referenced by Foam::det(), Foam::dev2(), Foam::invariantIII(), Tensor2D::operator=(), and Foam::sph().

Here is the caller graph for this function:

const Cmpt & yx (  )  const [inline]

Definition at line 124 of file Tensor2DI.H.

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

Referenced by Foam::dev2(), Tensor2D::operator=(), Foam::sph(), and Tensor2D::yy().

Here is the caller graph for this function:

const Cmpt & yy (  )  const [inline]

Definition at line 130 of file Tensor2DI.H.

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

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

Here is the caller graph for this function:

Cmpt & xx (  )  [inline]

Definition at line 137 of file Tensor2DI.H.

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

Cmpt & xy (  )  [inline]

Definition at line 143 of file Tensor2DI.H.

References VectorSpace::v_, and Tensor2D::YX.

Cmpt & yx (  )  [inline]

Definition at line 149 of file Tensor2DI.H.

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

Cmpt & yy (  )  [inline]

Definition at line 155 of file Tensor2DI.H.

References Tensor2D::xx(), and Tensor2D::yx().

Here is the call graph for this function:

Tensor2D< Cmpt > T (  )  const [inline]

Return tensor transpose.

Definition at line 163 of file Tensor2DI.H.

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

Construct given SphericalTensor2D.

Definition at line 176 of file Tensor2DI.H.

References Tensor2D::xx(), Tensor2D::xy(), and Tensor2D::yx().

Here is the call graph for this function:


Member Data Documentation

const char* const typeName [static]

Definition at line 79 of file Tensor2D.H.

const char* componentNames[] [static]

Definition at line 80 of file Tensor2D.H.

const Tensor2D zero [static]

Definition at line 82 of file Tensor2D.H.

const Tensor2D one [static]

Definition at line 83 of file Tensor2D.H.


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