Go to the documentation of this file.
58 template<
class Cmpt>
class SymmTensor;
68 public MatrixSpace<Tensor<Cmpt>, Cmpt, 3, 3>
111 template<
class Cmpt2>
115 template<
class Cmpt2>
129 const bool transposed =
false
139 const bool transposed =
false
145 const Cmpt txx,
const Cmpt txy,
const Cmpt txz,
146 const Cmpt tyx,
const Cmpt tyy,
const Cmpt tyz,
147 const Cmpt tzx,
const Cmpt tzy,
const Cmpt tzz
153 template<
class, direction, direction>
class Block2,
170 inline const Cmpt&
xx()
const;
171 inline const Cmpt&
xy()
const;
172 inline const Cmpt&
xz()
const;
173 inline const Cmpt&
yx()
const;
174 inline const Cmpt&
yy()
const;
175 inline const Cmpt&
yz()
const;
176 inline const Cmpt&
zx()
const;
177 inline const Cmpt&
zy()
const;
178 inline const Cmpt&
zz()
const;
204 template<direction Col>
213 template<direction Col>
242 template<direction Row>
251 template<direction Row>
297 using Tensor::msType::operator=;
300 template<
class Cmpt2>
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
Tensor< Cmpt > inv() const
Return inverse.
Vector< Cmpt > z() const
Extract vector for row 2.
Abstract template class to provide the transpose form of a form.
static constexpr direction rank
Rank of Tensor is 2.
Tensor< solveScalar > type
Tensor< Cmpt > inner(const Tensor< Cmpt > &t2) const
Inner-product of this with another Tensor.
The extended precision type (solveScalar for float)
Vector< Cmpt > cy() const
Extract vector for column 1.
Tensor< label > labelType
Equivalent type of labels used for valid component indexing.
Vector< Cmpt > row() const
Extract vector for given row.
A template class to specify if a data type is composed solely of Foam::label elements.
Tensor & operator=(const Tensor &)=default
Copy assignment.
void operator&=(const Tensor< Cmpt > &t)
Assign inner-product of this with another Tensor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Tensor< Cmpt > schur(const Tensor< Cmpt > &t2) const
Schur-product of this with another Tensor.
Vector< Cmpt > cz() const
Extract vector for column 2.
Vector< Cmpt > x() const
Extract vector for row 0.
Vector< Cmpt > diag() const
Extract the diagonal as a vector.
Vector< Cmpt > vectorComponent(const direction cmpt) const
Deprecated(2018-12) Return vector for given row (0,1)
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element,...
A template class to specify if a data type is composed solely of Foam::scalar elements.
Vector< Cmpt > y() const
Extract vector for row 1.
Vector< Cmpt > cx() const
Extract vector for column 0.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void cols(const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z)
Set column values.
Tensor()=default
Default construct.
Tensor< Cmpt > T() const
Return non-Hermitian transpose.
const dimensionedScalar c
Speed of light in a vacuum.
components
Component labeling enumeration.
Vector< Cmpt > col() const
Extract vector for given column.
void rows(const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z)
Set row values.
A template class to specify that a data type can be considered as being contiguous in memory.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...