A templated (2 x 2) tensor of objects of <T> derived from VectorSpace. More...
Public Types | |
enum | components { XX, XY, YX, YY } |
typedef Tensor2D< label > | labelType |
![]() | |
typedef VectorSpace< Form, Cmpt, Ncmpts > | vsType |
typedef Cmpt | cmptType |
typedef Cmpt | magType |
typedef Cmpt * | iterator |
Public Member Functions | |
Tensor2D ()=default | |
Tensor2D (const Tensor2D &)=default | |
Tensor2D & | operator= (const Tensor2D &)=default |
Tensor2D (const Foam::zero) | |
Tensor2D (const VectorSpace< Tensor2D< Cmpt >, Cmpt, 4 > &vs) | |
Tensor2D (const SymmTensor2D< Cmpt > &st) | |
Tensor2D (const SphericalTensor2D< Cmpt > &st) | |
Tensor2D (const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y) | |
Tensor2D (const Cmpt txx, const Cmpt txy, const Cmpt tyx, const Cmpt tyy) | |
Tensor2D (Istream &is) | |
const Cmpt & | xx () const |
const Cmpt & | xy () const |
const Cmpt & | yx () const |
const Cmpt & | yy () const |
Cmpt & | xx () |
Cmpt & | xy () |
Cmpt & | yx () |
Cmpt & | yy () |
Vector2D< Cmpt > | cx () const |
Vector2D< Cmpt > | cy () const |
template<direction Col> | |
Vector2D< Cmpt > | col () const |
Vector2D< Cmpt > | col (const direction c) const |
template<direction Col> | |
void | col (const Vector2D< Cmpt > &v) |
void | col (const direction c, const Vector2D< Cmpt > &v) |
void | cols (const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y) |
Vector2D< Cmpt > | x () const |
Vector2D< Cmpt > | y () const |
template<direction Row> | |
Vector2D< Cmpt > | row () const |
Vector2D< Cmpt > | row (const direction r) const |
template<direction Row> | |
void | row (const Vector2D< Cmpt > &v) |
void | row (const direction r, const Vector2D< Cmpt > &v) |
void | rows (const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y) |
Vector2D< Cmpt > | diag () const |
void | diag (const Vector2D< Cmpt > &v) |
Tensor2D< Cmpt > | T () const |
Tensor2D< Cmpt > | inner (const Tensor2D< Cmpt > &t2) const |
Tensor2D< Cmpt > | schur (const Tensor2D< Cmpt > &t2) const |
void | operator= (const SymmTensor2D< Cmpt > &) |
void | operator= (const SphericalTensor2D< Cmpt > &) |
Vector2D< Cmpt > | vectorComponent (const direction cmpt) const |
template<Foam::direction Col> | |
Foam::Vector2D< Cmpt > | col () const |
template<Foam::direction Row> | |
Foam::Vector2D< Cmpt > | row () const |
![]() | |
VectorSpace ()=default | |
VectorSpace (const Foam::zero) | |
VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs) | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
VectorSpace (Istream &is) | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const Cmpt * | cdata () const noexcept |
Cmpt * | data () noexcept |
const ConstBlock< SubVector, BStart > | block () const |
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
iterator | begin () noexcept |
const_iterator | begin () const noexcept |
iterator | end () noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
Static Public Attributes | |
static constexpr direction | rank = 2 |
static const Tensor2D | I |
![]() | |
static constexpr direction | dim |
static constexpr direction | nComponents |
static constexpr direction | mRows |
static constexpr direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const Form | zero |
static const Form | one |
static const Form | max |
static const Form | min |
static const Form | rootMax |
static const Form | rootMin |
Additional Inherited Members | |
![]() | |
static constexpr direction | size () noexcept |
static Form | uniform (const Cmpt &s) |
![]() | |
const typedef Cmpt * | const_iterator |
Cmpt | v_ [Ncmpts] |
A templated (2 x 2) tensor of objects of <T> derived from VectorSpace.
Definition at line 55 of file Tensor2D.H.
Definition at line 64 of file Tensor2D.H.
enum components |
Enumerator | |
---|---|
XX | |
XY | |
YX | |
YY |
Definition at line 79 of file Tensor2D.H.
|
default |
|
inline |
Definition at line 25 of file Tensor2DI.H.
|
inline |
Definition at line 33 of file Tensor2DI.H.
|
inline |
Definition at line 42 of file Tensor2DI.H.
References SymmTensor2D< Cmpt >::xx(), SymmTensor2D< Cmpt >::xy(), and SymmTensor2D< Cmpt >::yy().
|
inline |
Definition at line 50 of file Tensor2DI.H.
References SphericalTensor2D< Cmpt >::ii(), and Foam::Zero.
Definition at line 59 of file Tensor2DI.H.
|
inline |
Definition at line 71 of file Tensor2DI.H.
Definition at line 82 of file Tensor2DI.H.
|
inline |
Definition at line 91 of file Tensor2DI.H.
Referenced by Foam::cof(), Foam::det(), Tensor2D< Cmpt >::inner(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Tensor2D< Cmpt >::schur(), Foam::symm(), Foam::tr(), and Foam::twoSymm().
|
inline |
Definition at line 97 of file Tensor2DI.H.
Referenced by Foam::cof(), Foam::det(), Tensor2D< Cmpt >::inner(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Tensor2D< Cmpt >::schur(), Foam::skew(), Foam::symm(), and Foam::twoSymm().
|
inline |
Definition at line 103 of file Tensor2DI.H.
Referenced by Foam::cof(), Foam::det(), Tensor2D< Cmpt >::inner(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Tensor2D< Cmpt >::schur(), Foam::skew(), Foam::symm(), and Foam::twoSymm().
|
inline |
Definition at line 109 of file Tensor2DI.H.
Referenced by Foam::cof(), Foam::det(), Tensor2D< Cmpt >::inner(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Tensor2D< Cmpt >::schur(), Foam::symm(), Foam::tr(), and Foam::twoSymm().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 154 of file Tensor2DI.H.
|
inline |
Definition at line 160 of file Tensor2DI.H.
|
inline |
|
inline |
Definition at line 179 of file Tensor2DI.H.
References Foam::abort(), Foam::constant::universal::c, Foam::FatalError, FatalErrorInFunction, and Foam::Zero.
|
inline |
Definition at line 224 of file Tensor2DI.H.
References Vector2D< Cmpt >::x(), and Vector2D< Cmpt >::y().
Definition at line 284 of file Tensor2DI.H.
References Foam::abort(), Foam::constant::universal::c, Foam::FatalError, and FatalErrorInFunction.
Definition at line 260 of file Tensor2DI.H.
|
inline |
Definition at line 141 of file Tensor2DI.H.
Referenced by triSurfaceTools::curvatures().
|
inline |
Definition at line 147 of file Tensor2DI.H.
Referenced by triSurfaceTools::curvatures().
|
inline |
|
inline |
Definition at line 207 of file Tensor2DI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, x, y, and Foam::Zero.
|
inline |
Definition at line 243 of file Tensor2DI.H.
References Vector2D< Cmpt >::x(), and Vector2D< Cmpt >::y().
Definition at line 303 of file Tensor2DI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Definition at line 272 of file Tensor2DI.H.
|
inline |
Definition at line 321 of file Tensor2DI.H.
|
inline |
Definition at line 328 of file Tensor2DI.H.
References Vector2D< Cmpt >::x(), and Vector2D< Cmpt >::y().
|
inline |
Definition at line 337 of file Tensor2DI.H.
|
inline |
Definition at line 349 of file Tensor2DI.H.
References Tensor2D< Cmpt >::xx(), Tensor2D< Cmpt >::xy(), Tensor2D< Cmpt >::yx(), and Tensor2D< Cmpt >::yy().
Referenced by Foam::operator&().
|
inline |
Definition at line 366 of file Tensor2DI.H.
References Tensor2D< Cmpt >::xx(), Tensor2D< Cmpt >::xy(), Tensor2D< Cmpt >::yx(), and Tensor2D< Cmpt >::yy().
|
inline |
Definition at line 381 of file Tensor2DI.H.
References SymmTensor2D< Cmpt >::xx(), SymmTensor2D< Cmpt >::xy(), and SymmTensor2D< Cmpt >::yy().
|
inline |
Definition at line 389 of file Tensor2DI.H.
References SphericalTensor2D< Cmpt >::ii(), and Foam::Zero.
Definition at line 235 of file Tensor2D.H.
References Tensor2D< Cmpt >::row().
|
inline |
Definition at line 168 of file Tensor2DI.H.
References Foam::Zero.
|
inline |
Definition at line 196 of file Tensor2DI.H.
References x, y, and Foam::Zero.
|
staticconstexpr |
Definition at line 70 of file Tensor2D.H.
|
static |
Definition at line 75 of file Tensor2D.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.