Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 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 | { rank = 2 } |
enum | components { XX, XY, XZ, YY, YZ, ZZ } |
Component labeling enumeration. More... | |
typedef SymmTensor< label > | labelType |
Equivalent type of labels used for valid component indexing. More... | |
![]() | |
enum | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
SymmTensor () | |
Construct null. More... | |
template<class Cmpt2 > | |
SymmTensor (const VectorSpace< SymmTensor< Cmpt2 >, Cmpt2, 6 > &) | |
Construct given VectorSpace of the same rank. More... | |
SymmTensor (const SphericalTensor< Cmpt > &) | |
Construct given SphericalTensor. More... | |
SymmTensor (const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyy, const Cmpt tyz, const Cmpt tzz) | |
Construct given the six components. More... | |
SymmTensor (Istream &) | |
Construct from Istream. More... | |
const Cmpt & | xx () const |
const Cmpt & | xy () const |
const Cmpt & | xz () const |
const Cmpt & | yy () const |
const Cmpt & | yz () const |
const Cmpt & | zz () const |
Cmpt & | xx () |
Cmpt & | xy () |
Cmpt & | xz () |
Cmpt & | yy () |
Cmpt & | yz () |
Cmpt & | zz () |
const SymmTensor< Cmpt > & | T () const |
Transpose. More... | |
void | operator= (const SphericalTensor< Cmpt > &) |
Construct given SphericalTensor. More... | |
![]() | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
VectorSpace (const VectorSpace< Form, Cmpt, nCmpt > &) | |
Construct as copy. More... | |
VectorSpace (const VectorSpace< Form2, Cmpt2, nCmpt > &) | |
Construct as copy of another VectorSpace type of the same rank. More... | |
label | size () const |
Return the number of elements in the VectorSpace = nCmpt. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator+= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator-= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Attributes | |
static const char *const | typeName = "labelSymmTensor" |
static const char * | componentNames [] |
static const SymmTensor | zero |
static const SymmTensor | one |
static const SymmTensor | max |
static const SymmTensor | min |
static const SymmTensor | I |
Additional Inherited Members | |
![]() | |
Cmpt | v_ [nCmpt] |
The components of this vector space. More... | |
Templated 3D symmetric tensor derived from VectorSpace adding construction from 6 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 SymmTensor.H.
typedef SymmTensor<label> labelType |
Equivalent type of labels used for valid component indexing.
Definition at line 61 of file SymmTensor.H.
anonymous enum |
Enumerator | |
---|---|
rank |
Definition at line 66 of file SymmTensor.H.
enum components |
Component labeling enumeration.
Enumerator | |
---|---|
XX | |
XY | |
XZ | |
YY | |
YZ | |
ZZ |
Definition at line 85 of file SymmTensor.H.
|
inline |
Construct null.
Definition at line 37 of file SymmTensorI.H.
|
inline |
Construct given VectorSpace of the same rank.
Definition at line 44 of file SymmTensorI.H.
|
inline |
Construct given SphericalTensor.
Definition at line 53 of file SymmTensorI.H.
|
inline |
Construct given the six components.
Definition at line 63 of file SymmTensorI.H.
|
inline |
Construct from Istream.
Definition at line 76 of file SymmTensorI.H.
|
inline |
Definition at line 85 of file SymmTensorI.H.
Referenced by primitiveMeshTools::cellDeterminant(), Foam::cof(), Foam::det(), Foam::diag(), Foam::innerSqr(), vtkTools::insert(), writeFuns::insert(), Foam::inv(), Foam::invariantII(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Tensor< scalar >::Tensor(), Foam::tr(), Foam::transform(), and dxSurfaceWriter::writeData().
|
inline |
Definition at line 91 of file SymmTensorI.H.
Referenced by Foam::cof(), Foam::det(), Foam::innerSqr(), vtkTools::insert(), writeFuns::insert(), Foam::inv(), Foam::invariantII(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator*(), Foam::operator+(), Foam::operator-(), Tensor< scalar >::Tensor(), Foam::transform(), and dxSurfaceWriter::writeData().
|
inline |
Definition at line 97 of file SymmTensorI.H.
Referenced by Foam::cof(), Foam::det(), Foam::innerSqr(), vtkTools::insert(), writeFuns::insert(), Foam::inv(), Foam::invariantII(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator*(), Foam::operator+(), Foam::operator-(), Tensor< scalar >::Tensor(), Foam::transform(), and dxSurfaceWriter::writeData().
|
inline |
Definition at line 103 of file SymmTensorI.H.
Referenced by primitiveMeshTools::cellDeterminant(), Foam::cof(), Foam::det(), Foam::diag(), Foam::innerSqr(), vtkTools::insert(), writeFuns::insert(), Foam::inv(), Foam::invariantII(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Tensor< scalar >::Tensor(), Foam::tr(), Foam::transform(), and dxSurfaceWriter::writeData().
|
inline |
Definition at line 109 of file SymmTensorI.H.
Referenced by Foam::cof(), Foam::det(), Foam::innerSqr(), vtkTools::insert(), writeFuns::insert(), Foam::inv(), Foam::invariantII(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator*(), Foam::operator+(), Foam::operator-(), Tensor< scalar >::Tensor(), Foam::transform(), and dxSurfaceWriter::writeData().
|
inline |
Definition at line 115 of file SymmTensorI.H.
Referenced by primitiveMeshTools::cellDeterminant(), Foam::cof(), Foam::det(), Foam::diag(), Foam::innerSqr(), vtkTools::insert(), writeFuns::insert(), Foam::inv(), Foam::invariantII(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Tensor< scalar >::Tensor(), Foam::tr(), Foam::transform(), and dxSurfaceWriter::writeData().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Transpose.
Definition at line 159 of file SymmTensorI.H.
|
inline |
Construct given SphericalTensor.
Definition at line 168 of file SymmTensorI.H.
|
static |
Definition at line 74 of file SymmTensor.H.
|
static |
Definition at line 75 of file SymmTensor.H.
|
static |
Definition at line 77 of file SymmTensor.H.
|
static |
Definition at line 78 of file SymmTensor.H.
|
static |
Definition at line 79 of file SymmTensor.H.
|
static |
Definition at line 80 of file SymmTensor.H.
|
static |
Definition at line 81 of file SymmTensor.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.