A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 3 elements, derived from VectorSpace. More...
Public Types | |
enum | components { XX, YY, ZZ } |
typedef DiagTensor< label > | labelType |
![]() | |
typedef VectorSpace< Form, Cmpt, Ncmpts > | vsType |
typedef Cmpt | cmptType |
typedef Cmpt | magType |
typedef Cmpt * | iterator |
Public Member Functions | |
DiagTensor ()=default | |
DiagTensor (const DiagTensor &)=default | |
DiagTensor & | operator= (const DiagTensor &)=default |
DiagTensor (const Foam::zero) | |
template<class Cmpt2 > | |
DiagTensor (const VectorSpace< DiagTensor< Cmpt2 >, Cmpt2, 3 > &) | |
DiagTensor (const Cmpt &txx, const Cmpt &tyy, const Cmpt &tzz) | |
DiagTensor (Istream &is) | |
const Cmpt & | xx () const |
const Cmpt & | yy () const |
const Cmpt & | zz () const |
Cmpt & | xx () |
Cmpt & | yy () |
Cmpt & | zz () |
![]() | |
VectorSpace ()=default | |
VectorSpace (const Foam::zero) | |
VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs) | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
VectorSpace (Istream &is) | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const Cmpt * | cdata () const noexcept |
Cmpt * | data () noexcept |
const ConstBlock< SubVector, BStart > | block () const |
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
Static Public Attributes | |
static constexpr direction | rank = 2 |
![]() | |
static constexpr direction | dim |
static constexpr direction | nComponents |
static constexpr direction | mRows |
static constexpr direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const Form | zero |
static const Form | one |
static const Form | max |
static const Form | min |
static const Form | rootMax |
static const Form | rootMin |
Additional Inherited Members | |
![]() | |
static constexpr direction | size () noexcept |
static Form | uniform (const Cmpt &s) |
![]() | |
const typedef Cmpt * | const_iterator |
Cmpt | v_ [Ncmpts] |
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 3 elements, derived from VectorSpace.
Definition at line 52 of file DiagTensor.H.
typedef DiagTensor<label> labelType |
Definition at line 61 of file DiagTensor.H.
enum components |
Enumerator | |
---|---|
XX | |
YY | |
ZZ |
Definition at line 71 of file DiagTensor.H.
|
default |
|
default |
|
inline |
Definition at line 28 of file DiagTensorI.H.
|
inline |
Definition at line 37 of file DiagTensorI.H.
|
inline |
Definition at line 47 of file DiagTensorI.H.
|
inlineexplicit |
Definition at line 60 of file DiagTensorI.H.
|
default |
|
inline |
Definition at line 69 of file DiagTensorI.H.
Referenced by Foam::det(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFaPatchField< Type >::snGradTransformDiag(), wedgeFvPatchField< Type >::snGradTransformDiag(), and Foam::tr().
|
inline |
Definition at line 75 of file DiagTensorI.H.
Referenced by molecule::constantProperties::constantProperties(), Foam::det(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFaPatchField< Type >::snGradTransformDiag(), wedgeFvPatchField< Type >::snGradTransformDiag(), and Foam::tr().
|
inline |
Definition at line 81 of file DiagTensorI.H.
Referenced by molecule::constantProperties::constantProperties(), Foam::det(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), wedgeFaPatchField< Type >::snGradTransformDiag(), wedgeFvPatchField< Type >::snGradTransformDiag(), and Foam::tr().
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
Definition at line 67 of file DiagTensor.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.