42 #ifndef Foam_DiagTensor_H 43 #define Foam_DiagTensor_H 105 inline DiagTensor(
const Cmpt& txx,
const Cmpt& tyy,
const Cmpt& tzz);
const Cmpt & zz() const noexcept
static constexpr direction rank
Rank of DiagTensor is 2.
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, derived from VectorSpace.
components
Component labeling enumeration.
DiagTensor< label > labelType
Equivalent type of labels used for valid component indexing.
DiagTensor()=default
Default construct.
A templated (3 x 3) diagonal tensor of objects of <T>, effectively containing 3 elements, derived from VectorSpace.
const Cmpt & yy() const noexcept
DiagTensor & operator=(const DiagTensor &)=default
Copy assignment.
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...
A template class to specify if a data type is composed solely of Foam::label elements.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
const Cmpt & xx() const noexcept
scalar diagSqr() const
The L2-norm squared of the diagonal.
Cmpt v_[Ncmpts]
The components of this vector space.