Go to the documentation of this file.
53 template<
class Cmpt>
class SymmTensor2D;
115 const Cmpt txx,
const Cmpt txy,
116 const Cmpt tyx,
const Cmpt tyy
127 inline const Cmpt&
xx()
const;
128 inline const Cmpt&
xy()
const;
129 inline const Cmpt&
yx()
const;
130 inline const Cmpt&
yy()
const;
148 template<direction Col>
157 template<direction Col>
178 template<direction Row>
187 template<direction Row>
Vector2D< Cmpt > cx() const
Extract vector for column 0.
Vector2D< Cmpt > cy() const
Extract vector for column 1.
Tensor2D()=default
Construct null.
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.
Templated 2D symmetric tensor derived from VectorSpace adding construction from 4 components,...
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.
Templated 2D tensor derived from VectorSpace adding construction from 4 components,...
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 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.
void operator=(const SymmTensor2D< Cmpt > &)
Copy assign from SymmTensor2D.
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.
Templated 2D sphericalTensor derived from VectorSpace adding construction from 1 component,...
A class representing the concept of 0 (zero), which can be used to avoid manipulating objects that ar...