A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element, derived from VectorSpace. More...
Public Types | |
enum | components { II } |
Component labeling enumeration. More... | |
typedef SphericalTensor< label > | labelType |
Equivalent type of labels used for valid component indexing. More... | |
Public Types inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
typedef VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
typedef Cmpt | magType |
Magnitude type. More... | |
typedef Cmpt * | iterator |
Random access iterator for traversing VectorSpace. More... | |
typedef const Cmpt * | const_iterator |
Random access iterator for traversing VectorSpace. More... | |
Public Member Functions | |
SphericalTensor ()=default | |
Default construct. More... | |
SphericalTensor (const SphericalTensor &)=default | |
Copy construct. More... | |
SphericalTensor & | operator= (const SphericalTensor &)=default |
Copy assignment. More... | |
SphericalTensor (const Foam::zero) | |
Construct initialized to zero. More... | |
template<class Cmpt2 > | |
SphericalTensor (const VectorSpace< SphericalTensor< Cmpt2 >, Cmpt2, 1 > &) | |
Construct given VectorSpace. More... | |
SphericalTensor (const Cmpt &tii) | |
Construct given the component. More... | |
SphericalTensor (Istream &is) | |
Construct from Istream. More... | |
const Cmpt & | ii () const |
Cmpt & | ii () |
const SphericalTensor< Cmpt > & | T () const |
Return non-Hermitian transpose (no-op) More... | |
Public Member Functions inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
VectorSpace ()=default | |
Default construct. More... | |
VectorSpace (const Foam::zero) | |
Construct initialized to zero. More... | |
VectorSpace (const VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > &vs) | |
Copy construct. More... | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Copy construct of a VectorSpace with the same size. More... | |
VectorSpace (Istream &is) | |
Construct from Istream. 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 * | cdata () const noexcept |
Return const pointer to the first data element. More... | |
Cmpt * | data () noexcept |
Return pointer to the first data element. More... | |
const ConstBlock< SubVector, BStart > | block () const |
const Foam::VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator= (const VectorSpace< SphericalTensor< Cmpt >, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
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 to begin of VectorSpace. More... | |
const_iterator | begin () const noexcept |
Return const_iterator to begin of VectorSpace. More... | |
iterator | end () noexcept |
Return an iterator to end of VectorSpace. More... | |
const_iterator | end () const noexcept |
Return const_iterator to end of VectorSpace. More... | |
const_iterator | cbegin () const noexcept |
Return const_iterator to begin of VectorSpace. More... | |
const_iterator | cend () const noexcept |
Return const_iterator to end of VectorSpace. More... | |
Static Public Attributes | |
static constexpr direction | rank = 2 |
Rank of SphericalTensor is 2. More... | |
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. More... | |
static constexpr direction | nComponents |
Number of components in this vector space. More... | |
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. More... | |
static SphericalTensor< Cmpt > | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 > | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element, derived from VectorSpace.
Definition at line 57 of file SphericalTensor.H.
typedef SphericalTensor<label> labelType |
Equivalent type of labels used for valid component indexing.
Definition at line 66 of file SphericalTensor.H.
enum components |
|
default |
Default construct.
|
default |
Copy construct.
|
inline |
Construct initialized to zero.
Definition at line 34 of file SphericalTensorI.H.
|
inline |
Construct given VectorSpace.
Definition at line 42 of file SphericalTensorI.H.
|
inlineexplicit |
Construct given the component.
Definition at line 52 of file SphericalTensorI.H.
|
inlineexplicit |
Construct from Istream.
Definition at line 59 of file SphericalTensorI.H.
|
default |
Copy assignment.
|
inline |
Definition at line 68 of file SphericalTensorI.H.
Referenced by Foam::cmptAv(), Foam::cmptMax(), Foam::cmptMin(), Foam::cmptSum(), SphericalTensor< scalar >::ii(), Foam::magSqr(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), SymmTensor< Cmpt >::operator=(), Tensor< Cmpt >::operator=(), SphericalTensor< scalar >::SphericalTensor(), SymmTensor< Cmpt >::SymmTensor(), Tensor< Cmpt >::Tensor(), and Foam::tr().
|
inline |
Definition at line 75 of file SphericalTensorI.H.
|
inline |
Return non-Hermitian transpose (no-op)
Definition at line 83 of file SphericalTensorI.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.