Go to the documentation of this file.
53 template<
class Cmpt>
class SymmTensor2D;
123 const Cmpt txx,
const Cmpt txy,
124 const Cmpt tyx,
const Cmpt tyy
135 inline const Cmpt&
xx()
const;
136 inline const Cmpt&
xy()
const;
137 inline const Cmpt&
yx()
const;
138 inline const Cmpt&
yy()
const;
156 template<direction Col>
165 template<direction Col>
186 template<direction Row>
195 template<direction Row>
Vector2D< Cmpt > cx() const
Extract vector for column 0.
Tensor2D & operator=(const Tensor2D &)=default
Copy assignment.
Vector2D< Cmpt > cy() const
Extract vector for column 1.
Tensor2D()=default
Default construct.
void cols(const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y)
Set column values.
Tensor2D< Cmpt > inner(const Tensor2D< Cmpt > &t2) const
Inner-product of this with another Tensor2D.
Vector2D< Cmpt > row() const
Extract vector for given row.
A templated (2 x 2) symmetric tensor of objects of <T>, effectively containing 3 elements,...
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
static constexpr direction rank
Rank of Tensor2D is 2.
A template class to specify if a data type is composed solely of Foam::label elements.
A templated (2 x 2) tensor of objects of <T> derived from VectorSpace.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Tensor2D< label > labelType
Equivalent type of labels used for valid component indexing.
Vector2D< Cmpt > diag() const
Extract the diagonal as a vector.
components
Component labeling enumeration.
A template class to specify if a data type is composed solely of Foam::scalar elements.
Vector2D< Cmpt > x() const
Extract vector for row 0.
Tensor2D< Cmpt > T() const
Return non-Hermitian transpose.
Vector2D< Cmpt > y() const
Extract vector for row 1.
Tensor2D< Cmpt > schur(const Tensor2D< Cmpt > &t2) const
Schur-product of this with another Tensor2D.
const dimensionedScalar c
Speed of light in a vacuum.
Vector2D< Cmpt > col() const
Extract vector for given column.
void rows(const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y)
Set row values.
Vector2D< Cmpt > vectorComponent(const direction cmpt) const
Deprecated(2018-12) Return vector for given row (0,1)
A template class to specify that a data type can be considered as being contiguous in memory.
A templated (2 x 2) diagonal tensor of objects of <T>, effectively containing 1 element,...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...