Templated 2D symmetric tensor derived from VectorSpace adding construction from 4 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...
Public Types | |
enum | components { XX, XY, YY } |
Component labeling enumeration. More... | |
typedef SymmTensor2D< label > | labelType |
Equivalent type of labels used for valid component indexing. More... | |
Public Types inherited from VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 > | |
typedef VectorSpace< SymmTensor2D< Cmpt >, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
SymmTensor2D () | |
Construct null. More... | |
SymmTensor2D (const Foam::zero) | |
Construct initialised to zero. More... | |
SymmTensor2D (const VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 > &) | |
Construct given VectorSpace. More... | |
SymmTensor2D (const SphericalTensor2D< Cmpt > &) | |
Construct given SphericalTensor. More... | |
SymmTensor2D (const Cmpt txx, const Cmpt txy, const Cmpt tyy) | |
Construct given the three components. More... | |
SymmTensor2D (Istream &) | |
Construct from Istream. More... | |
const Cmpt & | xx () const |
const Cmpt & | xy () const |
const Cmpt & | yy () const |
Cmpt & | xx () |
Cmpt & | xy () |
Cmpt & | yy () |
const SymmTensor2D< Cmpt > & | T () const |
Transpose. More... | |
void | operator= (const SphericalTensor2D< Cmpt > &) |
Construct given SphericalTensor2D. More... | |
Public Member Functions inherited from VectorSpace< SymmTensor2D< 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< SymmTensor2D< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< SymmTensor2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< SymmTensor2D< 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 SymmTensor2D is 2. More... | |
static const SymmTensor2D | I |
Static Public Attributes inherited from VectorSpace< SymmTensor2D< 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 SymmTensor2D< Cmpt > | zero |
static const SymmTensor2D< Cmpt > | one |
static const SymmTensor2D< Cmpt > | max |
static const SymmTensor2D< Cmpt > | min |
static const SymmTensor2D< Cmpt > | rootMax |
static const SymmTensor2D< Cmpt > | rootMin |
Additional Inherited Members | |
Static Public Member Functions inherited from VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 > | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static SymmTensor2D< Cmpt > | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 > | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
Templated 2D symmetric tensor derived from VectorSpace adding construction from 4 components, element access using xx(), xy() etc. member functions and the inner-product (dot-product) and outer-product of two Vectors (tensor-product) operators.
Definition at line 53 of file SymmTensor2D.H.
typedef SymmTensor2D<label> labelType |
Equivalent type of labels used for valid component indexing.
Definition at line 61 of file SymmTensor2D.H.
enum components |
|
inline |
Construct null.
Definition at line 32 of file SymmTensor2DI.H.
Referenced by SymmTensor2D< Cmpt >::SymmTensor2D().
|
inline |
Construct initialised to zero.
Definition at line 37 of file SymmTensor2DI.H.
References SymmTensor2D< Cmpt >::SymmTensor2D().
|
inline |
Construct given VectorSpace.
Definition at line 45 of file SymmTensor2DI.H.
|
inline |
Construct given SphericalTensor.
Definition at line 54 of file SymmTensor2DI.H.
References SphericalTensor2D< Cmpt >::ii(), SymmTensor2D< Cmpt >::SymmTensor2D(), VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, SymmTensor2D< Cmpt >::XX, SymmTensor2D< Cmpt >::XY, and SymmTensor2D< Cmpt >::YY.
|
inline |
Construct given the three components.
Definition at line 63 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, SymmTensor2D< Cmpt >::XX, SymmTensor2D< Cmpt >::XY, and SymmTensor2D< Cmpt >::YY.
|
inline |
Construct from Istream.
Definition at line 74 of file SymmTensor2DI.H.
|
inline |
Definition at line 83 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, and SymmTensor2D< Cmpt >::XX.
Referenced by Foam::cof(), Foam::det(), Foam::innerSqr(), Foam::invariantII(), Foam::magSqr(), Foam::operator &(), Foam::operator &&(), Foam::operator+(), Foam::operator-(), Tensor2D< Cmpt >::operator=(), Tensor2D< Cmpt >::Tensor2D(), and Foam::tr().
|
inline |
Definition at line 89 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, and SymmTensor2D< Cmpt >::XY.
Referenced by Foam::cof(), Foam::det(), Foam::innerSqr(), Foam::invariantII(), Foam::magSqr(), Foam::operator &(), Foam::operator &&(), Foam::operator+(), Foam::operator-(), Tensor2D< Cmpt >::operator=(), and Tensor2D< Cmpt >::Tensor2D().
|
inline |
Definition at line 95 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, and SymmTensor2D< Cmpt >::YY.
Referenced by Foam::cof(), Foam::det(), Foam::innerSqr(), Foam::invariantII(), Foam::magSqr(), Foam::operator &(), Foam::operator &&(), Foam::operator+(), Foam::operator-(), Tensor2D< Cmpt >::operator=(), Tensor2D< Cmpt >::Tensor2D(), and Foam::tr().
|
inline |
Definition at line 102 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, and SymmTensor2D< Cmpt >::XX.
|
inline |
Definition at line 108 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, and SymmTensor2D< Cmpt >::XY.
|
inline |
Definition at line 114 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, and SymmTensor2D< Cmpt >::YY.
|
inline |
Transpose.
Definition at line 121 of file SymmTensor2DI.H.
|
inline |
Construct given SphericalTensor2D.
Definition at line 131 of file SymmTensor2DI.H.
References VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 >::v_, SymmTensor2D< Cmpt >::XX, SymmTensor2D< Cmpt >::XY, and SymmTensor2D< Cmpt >::YY.
|
static |
Rank of SymmTensor2D is 2.
Definition at line 67 of file SymmTensor2D.H.
|
static |
Definition at line 72 of file SymmTensor2D.H.