42#ifndef Foam_DiagTensor_H
43#define Foam_DiagTensor_H
105 inline DiagTensor(
const Cmpt& txx,
const Cmpt& tyy,
const Cmpt& tzz);
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 3 elements,...
scalar diagSqr() const
The L2-norm squared of the diagonal.
DiagTensor & operator=(const DiagTensor &)=default
Copy assignment.
DiagTensor< label > labelType
Equivalent type of labels used for valid component indexing.
const Cmpt & yy() const noexcept
DiagTensor(const Cmpt &txx, const Cmpt &tyy, const Cmpt &tzz)
Construct given three components.
components
Component labeling enumeration.
DiagTensor()=default
Default construct.
static constexpr direction rank
DiagTensor(const VectorSpace< DiagTensor< Cmpt2 >, Cmpt2, 3 > &)
Construct given VectorSpace.
DiagTensor(Istream &is)
Construct from Istream.
DiagTensor(const SphericalTensor< Cmpt > &)
Construct given SphericalTensor.
DiagTensor(const DiagTensor &)=default
Copy construct.
const Cmpt & xx() const noexcept
Vector< Cmpt > diag() const
Extract the diagonal as a vector.
const Cmpt & zz() const noexcept
DiagTensor(Foam::zero)
Construct initialized to zero.
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,...
Cmpt v_[Ncmpts]
The components of this vector space.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
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.