Templated 3D DiagTensor derived from VectorSpace. More...
#include <OpenFOAM/DiagTensor_.H>
Templated 3D DiagTensor derived from VectorSpace.
Adding construction from 3 components, element access using xx(), yy() and zz() member functions and the inner-product (dot-product) and outer-product operators.
Definition at line 54 of file DiagTensor_.H.
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 | |
static const char *const | typeName |
static const char * | componentNames [] |
static const DiagTensor | zero |
static const DiagTensor | one |
static const DiagTensor | max |
static const DiagTensor | min |
anonymous enum |
Definition at line 63 of file DiagTensor_.H.
enum components |
DiagTensor | ( | ) | [inline]
|
Construct null.
Definition at line 37 of file DiagTensorI_.H.
DiagTensor | ( | const VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > & | vs ) | [inline]
|
Construct given VectorSpace.
Definition at line 44 of file DiagTensorI_.H.
DiagTensor | ( | const Cmpt & | txx, |
const Cmpt & | tyy, | ||
const Cmpt & | tzz | ||
) | [inline]
|
Construct given three components.
Definition at line 55 of file DiagTensorI_.H.
DiagTensor | ( | Istream & | is ) | [inline]
|
Construct from Istream.
Definition at line 69 of file DiagTensorI_.H.
const Cmpt & xx | ( | ) | const [inline]
|
Definition at line 78 of file DiagTensorI_.H.
Referenced by Foam::det(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFvPatchField< Type >::snGradTransformDiag(), and Foam::tr().
const Cmpt & yy | ( | ) | const [inline]
|
Definition at line 84 of file DiagTensorI_.H.
Referenced by molecule::constantProperties::constantProperties(), Foam::det(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFvPatchField< Type >::snGradTransformDiag(), and Foam::tr().
const Cmpt & zz | ( | ) | const [inline]
|
Definition at line 90 of file DiagTensorI_.H.
Referenced by molecule::constantProperties::constantProperties(), Foam::det(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFvPatchField< Type >::snGradTransformDiag(), and Foam::tr().
Cmpt & xx | ( | ) | [inline]
|
Definition at line 97 of file DiagTensorI_.H.
Cmpt & yy | ( | ) | [inline]
|
Definition at line 103 of file DiagTensorI_.H.
Cmpt & zz | ( | ) | [inline]
|
Definition at line 109 of file DiagTensorI_.H.
const char* const typeName [static]
|
Definition at line 71 of file DiagTensor_.H.
const char* componentNames[] [static]
|
Definition at line 72 of file DiagTensor_.H.
const DiagTensor zero [static]
|
Definition at line 73 of file DiagTensor_.H.
const DiagTensor one [static]
|
Definition at line 74 of file DiagTensor_.H.
const DiagTensor max [static]
|
Definition at line 75 of file DiagTensor_.H.
const DiagTensor min [static]
|
Definition at line 76 of file DiagTensor_.H.