Templated 3D DiagTensor derived from VectorSpace. More...
Public Types | |
enum | components { XX, YY, ZZ } |
Component labeling enumeration. More... | |
typedef DiagTensor< label > | labelType |
Equivalent type of labels used for valid component indexing. More... | |
Public Types inherited from VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > | |
typedef VectorSpace< DiagTensor< Cmpt >, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
DiagTensor () | |
Construct null. More... | |
DiagTensor (const Foam::zero) | |
Construct initialised to zero. More... | |
template<class Cmpt2 > | |
DiagTensor (const VectorSpace< DiagTensor< Cmpt2 >, Cmpt2, 3 > &) | |
Construct given VectorSpace. More... | |
DiagTensor (const Cmpt &txx, const Cmpt &tyy, const Cmpt &tzz) | |
Construct given three components. More... | |
DiagTensor (Istream &) | |
Construct from Istream. More... | |
const Cmpt & | xx () const |
const Cmpt & | yy () const |
const Cmpt & | zz () const |
Cmpt & | xx () |
Cmpt & | yy () |
Cmpt & | zz () |
Public Member Functions inherited from VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (const Foam::zero) | |
Construct initialised to zero. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const ConstBlock< SubVector, BStart > | block () const |
const VectorSpace< DiagTensor< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< DiagTensor< Cmpt >, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< DiagTensor< Cmpt >, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Attributes | |
static const direction | rank = 2 |
Rank of DiagTensor is 2. More... | |
Static Public Attributes inherited from VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > | |
static const direction | dim |
Dimensionality of space. More... | |
static const direction | nComponents |
Number of components in this vector space. More... | |
static const direction | mRows |
static const direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const DiagTensor< Cmpt > | zero |
static const DiagTensor< Cmpt > | one |
static const DiagTensor< Cmpt > | max |
static const DiagTensor< Cmpt > | min |
static const DiagTensor< Cmpt > | rootMax |
static const DiagTensor< Cmpt > | rootMin |
Additional Inherited Members | |
Static Public Member Functions inherited from VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static DiagTensor< Cmpt > | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< DiagTensor< Cmpt >, Cmpt, 3 > | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
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 53 of file DiagTensor.H.
typedef DiagTensor<label> labelType |
Equivalent type of labels used for valid component indexing.
Definition at line 61 of file DiagTensor.H.
enum components |
|
inline |
Construct null.
Definition at line 32 of file DiagTensorI.H.
Referenced by DiagTensor< scalar >::DiagTensor().
|
inline |
Construct initialised to zero.
Definition at line 37 of file DiagTensorI.H.
|
inline |
Construct given VectorSpace.
Definition at line 46 of file DiagTensorI.H.
|
inline |
Construct given three components.
Definition at line 56 of file DiagTensorI.H.
|
inline |
Construct from Istream.
Definition at line 69 of file DiagTensorI.H.
|
inline |
Definition at line 78 of file DiagTensorI.H.
Referenced by Foam::det(), Foam::inv(), molecule::constantProperties::linearMolecule(), Foam::operator &(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFvPatchField< Type >::snGradTransformDiag(), Tensor< scalar >::Tensor(), and Foam::tr().
|
inline |
Definition at line 84 of file DiagTensorI.H.
Referenced by molecule::constantProperties::constantProperties(), Foam::det(), Foam::inv(), molecule::constantProperties::linearMolecule(), Foam::operator &(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFvPatchField< Type >::snGradTransformDiag(), Tensor< scalar >::Tensor(), and Foam::tr().
|
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/(), molecule::constantProperties::pointMolecule(), wedgeFvPatchField< Type >::snGradTransformDiag(), Tensor< scalar >::Tensor(), and Foam::tr().
|
inline |
Definition at line 97 of file DiagTensorI.H.
|
inline |
Definition at line 103 of file DiagTensorI.H.
|
inline |
Definition at line 109 of file DiagTensorI.H.
|
static |
Rank of DiagTensor is 2.
Definition at line 67 of file DiagTensor.H.