42#ifndef Foam_SymmTensor2D_H
43#define Foam_SymmTensor2D_H
112 const Cmpt txx,
const Cmpt txy,
153 inline Cmpt
det()
const;
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,...
A templated (2 x 2) symmetric tensor of objects of <T>, effectively containing 3 elements,...
SymmTensor2D< Cmpt > cof() const
Return cofactor matrix (transpose of adjunct matrix).
scalar diagSqr() const
The L2-norm squared of the diagonal.
SymmTensor2D(const SymmTensor2D &)=default
Copy construct.
const Cmpt & yy() const noexcept
SymmTensor2D< Cmpt > adjunct() const
Return adjunct matrix (transpose of cofactor matrix).
components
Component labeling enumeration.
SymmTensor2D(const SphericalTensor2D< Cmpt > &)
Construct given SphericalTensor.
SymmTensor2D(const Cmpt txx, const Cmpt txy, const Cmpt tyy)
Construct given the three components.
const SymmTensor2D< Cmpt > & T() const noexcept
Return non-Hermitian transpose.
static constexpr direction rank
SymmTensor2D(Istream &is)
Construct from Istream.
const Cmpt & yx() const noexcept
static const SymmTensor2D I
SymmTensor2D & operator=(const SymmTensor2D &)=default
Copy assignment.
Cmpt det() const
The determinate.
SymmTensor2D(Foam::zero)
Construct initialized to zero.
void diag(const Vector2D< Cmpt > &v)
Set values of the diagonal.
SymmTensor2D< Cmpt > inv() const
Return inverse.
const Cmpt & xx() const noexcept
void operator=(const SphericalTensor2D< Cmpt > &)
Construct given SphericalTensor2D.
SymmTensor2D< label > labelType
Vector2D< Cmpt > diag() const
Extract the diagonal as a vector.
SymmTensor2D(const VectorSpace< SymmTensor2D< Cmpt >, Cmpt, 3 > &)
Construct given VectorSpace.
const Cmpt & xy() const noexcept
SymmTensor2D()=default
Default construct.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
Cmpt v_[Ncmpts]
The components of this vector space.
friend Ostream & operator(Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &)
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.