42#ifndef Foam_SphericalTensor2D_H
43#define Foam_SphericalTensor2D_H
60 public VectorSpace<SphericalTensor2D<Cmpt>, Cmpt, 1>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A templated (2 x 2) diagonal tensor of objects of <T>, effectively containing 1 element,...
scalar diagSqr() const
The L2-norm squared of the diagonal.
const Cmpt & ii() const noexcept
SphericalTensor2D(Istream &is)
Construct from Istream.
components
Component labeling enumeration.
static const SphericalTensor2D I
const SphericalTensor2D< Cmpt > & T() const noexcept
Return non-Hermitian transpose (no-op).
SphericalTensor2D()=default
Default construct.
static constexpr direction rank
SphericalTensor2D(const Cmpt &tii)
Construct given the component.
SphericalTensor2D(const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > &)
Construct given VectorSpace.
SphericalTensor2D< label > labelType
static const SphericalTensor2D oneThirdI
static const SphericalTensor2D twoThirdsI
SphericalTensor2D(const SphericalTensor2D &)=default
Copy construct.
SphericalTensor2D(Foam::zero)
Construct initialized to zero.
SphericalTensor2D & operator=(const SphericalTensor2D &)=default
Copy assignment.
Cmpt v_[Ncmpts]
The components of this vector space.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
A template class to specify if a data type is composed solely of Foam::label elements.
A template class to specify if a data type is composed solely of Foam::scalar elements.
A template class to specify that a data type can be considered as being contiguous in memory.