A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element, derived from VectorSpace. More...
#include <SphericalTensor.H>


Public Types | |
| enum | components { II } |
| Component labeling enumeration. More... | |
| typedef SphericalTensor< label > | labelType |
| Equivalent type of labels used for valid component indexing. | |
| Public Types inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
| typedef VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > | vsType |
| VectorSpace type. | |
| typedef Cmpt | cmptType |
| Component type. | |
| typedef Cmpt | magType |
| Magnitude type. | |
| typedef direction | size_type |
| The type to represent the size of a VectorSpace. | |
| typedef Cmpt * | iterator |
| Random access iterator for traversing VectorSpace. | |
| typedef const Cmpt * | const_iterator |
| Random access iterator for traversing VectorSpace. | |
Public Member Functions | |
| SphericalTensor ()=default | |
| Default construct. | |
| SphericalTensor (const SphericalTensor &)=default | |
| Copy construct. | |
| SphericalTensor & | operator= (const SphericalTensor &)=default |
| Copy assignment. | |
| SphericalTensor (Foam::zero) | |
| Construct initialized to zero. | |
| template<class Cmpt2> | |
| SphericalTensor (const VectorSpace< SphericalTensor< Cmpt2 >, Cmpt2, 1 > &) | |
| Construct given VectorSpace. | |
| SphericalTensor (const Cmpt &tii) | |
| Construct given the component. | |
| SphericalTensor (Istream &is) | |
| Construct from Istream. | |
| const Cmpt & | ii () const noexcept |
| Cmpt & | ii () noexcept |
| scalar | diagSqr () const |
| The L2-norm squared of the diagonal. | |
| const SphericalTensor< Cmpt > & | T () const noexcept |
| Return non-Hermitian transpose (no-op). | |
| Public Member Functions inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
| const Foam::VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
| VectorSpace ()=default | |
| Default construct. | |
| const Cmpt & | component (const direction) const |
| void | replace (const direction, const Cmpt &) |
| const Cmpt * | cdata () const noexcept |
| Return const pointer to the first data element. | |
| Cmpt * | data () noexcept |
| Return pointer to the first data element. | |
| void | fill (const Cmpt &s) |
| Assign all components to given value. | |
| const Cmpt & | operator[] (const direction) const |
| void | operator= (const VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator+= (const VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator-= (const VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > &) |
| void | operator*= (const scalar) |
| void | operator/= (const scalar) |
| iterator | begin () noexcept |
| Return an iterator (pointer) to begin of VectorSpace. | |
| const_iterator | cbegin () const noexcept |
| Return const_iterator (const pointer) to begin of VectorSpace. | |
| iterator | end () noexcept |
| Return an iterator (pointer) to end of VectorSpace. | |
| const_iterator | cend () const noexcept |
| Return const_iterator (const pointer) to end of VectorSpace. | |
Static Public Attributes | |
| static constexpr direction | rank = 2 |
| Rank of SphericalTensor is 2. | |
| static const SphericalTensor | I |
| static const SphericalTensor | oneThirdI |
| static const SphericalTensor | twoThirdsI |
| Static Public Attributes inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
| static constexpr direction | dim |
| Dimensionality of space. | |
| static constexpr direction | nComponents |
| Number of components in this vector space. | |
| static constexpr direction | mRows |
| static constexpr direction | nCols |
| static const char *const | typeName |
| static const char *const | componentNames [] |
| static const SphericalTensor< Cmpt > | zero |
| static const SphericalTensor< Cmpt > | one |
| static const SphericalTensor< Cmpt > | max |
| static const SphericalTensor< Cmpt > | min |
| static const SphericalTensor< Cmpt > | rootMax |
| static const SphericalTensor< Cmpt > | rootMin |
Additional Inherited Members | |
| Static Public Member Functions inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
| static constexpr direction | size () noexcept |
| The number of elements in the VectorSpace = Ncmpts. | |
| static SphericalTensor< Cmpt > | uniform (const Cmpt &s) |
| Return a VectorSpace with all elements = s. | |
| Public Attributes inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
| Cmpt | v_ [Ncmpts] |
| The components of this vector space. | |
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element, derived from VectorSpace.
Definition at line 53 of file SphericalTensor.H.
| typedef SphericalTensor<label> labelType |
Equivalent type of labels used for valid component indexing.
Definition at line 64 of file SphericalTensor.H.
| enum components |
|
default |
Default construct.
Referenced by Identity< Cmpt >::Identity(), SphericalTensor(), SphericalTensor(), and SphericalTensor().

|
default |
Copy construct.
|
inline |
Construct initialized to zero.
Definition at line 27 of file SphericalTensorI.H.
References SphericalTensor(), and VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >::zero.

|
inline |
Construct given VectorSpace.
Definition at line 35 of file SphericalTensorI.H.
References SphericalTensor(), and VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >::VectorSpace().

|
inlineexplicit |
Construct given the component.
Definition at line 45 of file SphericalTensorI.H.
References II, and VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >::v_.
|
inlineexplicit |
Construct from Istream.
Definition at line 52 of file SphericalTensorI.H.
References SphericalTensor().

|
default |
Copy assignment.
|
inlinenoexcept |
Definition at line 137 of file SphericalTensor.H.
Referenced by Foam::cmptAv(), Foam::cmptMax(), Foam::cmptMin(), Foam::cmptSum(), Foam::det(), diagSqr(), DiagTensor< Cmpt >::DiagTensor(), Foam::inv(), Foam::lerp(), Foam::operator&(), Foam::operator&(), Foam::operator&(), Foam::operator&(), Foam::operator&(), Foam::operator&(), Foam::operator&(), Foam::operator&&(), Foam::operator&&(), Foam::operator&&(), Foam::operator&&(), Foam::operator&&(), Foam::operator+(), Foam::operator+(), Foam::operator+(), Foam::operator+(), Foam::operator-(), Foam::operator-(), Foam::operator-(), Foam::operator-(), Foam::operator/(), Foam::operator/(), SymmTensor< Cmpt >::operator=(), Tensor< Cmpt >::operator=(), SymmTensor< Cmpt >::SymmTensor(), Tensor< Cmpt >::Tensor(), and Foam::tr().

|
inlinenoexcept |
Definition at line 139 of file SphericalTensor.H.
|
inline |
The L2-norm squared of the diagonal.
Definition at line 61 of file SphericalTensorI.H.
References ii(), and Foam::magSqr().
Referenced by Foam::magSqr().


|
inlinenoexcept |
Return non-Hermitian transpose (no-op).
Definition at line 155 of file SphericalTensor.H.
|
staticconstexpr |
Rank of SphericalTensor is 2.
Definition at line 72 of file SphericalTensor.H.
|
static |
Definition at line 77 of file SphericalTensor.H.
|
static |
Definition at line 78 of file SphericalTensor.H.
|
static |
Definition at line 79 of file SphericalTensor.H.