55template<
class Cmpt>
class SymmTensor;
107 template<
class Cmpt2>
111 template<
class Cmpt2>
125 const bool transposed =
false
135 const bool transposed =
false
141 const Cmpt txx,
const Cmpt txy,
const Cmpt txz,
142 const Cmpt tyx,
const Cmpt tyy,
const Cmpt tyz,
143 const Cmpt tzx,
const Cmpt tzy,
const Cmpt tzz
149 template<
class, direction, direction>
class Block2,
166 inline const Cmpt&
xx()
const;
167 inline const Cmpt&
xy()
const;
168 inline const Cmpt&
xz()
const;
169 inline const Cmpt&
yx()
const;
170 inline const Cmpt&
yy()
const;
171 inline const Cmpt&
yz()
const;
172 inline const Cmpt&
zx()
const;
173 inline const Cmpt&
zy()
const;
174 inline const Cmpt&
zz()
const;
199 template<direction Idx>
206 template<direction Idx>
233 template<direction Idx>
240 template<direction Idx>
267 inline bool is_identity(
const scalar tol = ROOTVSMALL)
const;
294 template<
class Cmpt2>
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 1 element,...
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.
bool is_identity(const scalar tol=ROOTVSMALL) const
Is identity tensor?
Tensor< Cmpt > T() const
Return non-Hermitian transpose.
void rows(const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z)
Set row values.
components
Component labeling enumeration.
Tensor< label > labelType
Equivalent type of labels used for valid component indexing.
void operator&=(const Tensor< Cmpt > &t)
Assign inner-product of this with another Tensor.
Tensor & operator=(const Tensor &)=default
Copy assignment.
Vector< Cmpt > row() const
Extract vector for given row: compile-time check of index.
Vector< Cmpt > z() const
Extract vector for row 2.
Vector< Cmpt > cz() const
Extract vector for column 2.
static constexpr direction rank
Rank of Tensor is 2.
Tensor(const Tensor &)=default
Copy construct.
Tensor< Cmpt > inner(const Tensor< Cmpt > &t2) const
Inner-product of this with another Tensor.
Tensor< Cmpt > inv() const
Return inverse.
Vector< Cmpt > cx() const
Extract vector for column 0.
Vector< Cmpt > cy() const
Extract vector for column 1.
void cols(const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z)
Set column values.
Vector< Cmpt > y() const
Extract vector for row 1.
Vector< Cmpt > col() const
Extract vector for given column: compile-time check of index.
Vector< Cmpt > vectorComponent(const direction cmpt) const
Deprecated(2018-12) Return vector for given row (0,1)
Tensor()=default
Default construct.
Tensor< Cmpt > schur(const Tensor< Cmpt > &t2) const
Schur-product of this with another Tensor.
Vector< Cmpt > diag() const
Extract the diagonal as a vector.
Vector< Cmpt > x() const
Extract vector for row 0.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
Tensor< solveScalar > type
The extended precision type (solveScalar for float)
Abstract template class to provide the transpose form of a form.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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.