Templated 2D sphericalTensor derived from VectorSpace adding construction from 1 component, element access using ii() member function and the inner-product (dot-product) and outer-product operators. More...
Public Types | |
enum | components { II } |
Component labeling enumeration. More... | |
Public Types inherited from VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > | |
typedef VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
SphericalTensor2D () | |
Construct null. More... | |
SphericalTensor2D (const Foam::zero) | |
Construct initialized to zero. More... | |
SphericalTensor2D (const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > &) | |
Construct given VectorSpace. More... | |
SphericalTensor2D (const Cmpt &tii) | |
Construct given the component. More... | |
SphericalTensor2D (Istream &) | |
Construct from Istream. More... | |
const Cmpt & | ii () const |
Cmpt & | ii () |
Public Member Functions inherited from VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (const Foam::zero) | |
Construct initialized to zero. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
const ConstBlock< SubVector, BStart > | block () const |
const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Attributes | |
static const direction | rank = 2 |
Rank of SphericalTensor2D is 2. More... | |
static const SphericalTensor2D | I |
static const SphericalTensor2D | oneThirdI |
static const SphericalTensor2D | twoThirdsI |
Static Public Attributes inherited from VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > | |
static const direction | dim |
Dimensionality of space. More... | |
static const direction | nComponents |
Number of components in this vector space. More... | |
static const direction | mRows |
static const direction | nCols |
static const char *const | typeName |
static const char *const | componentNames [] |
static const SphericalTensor2D< Cmpt > | zero |
static const SphericalTensor2D< Cmpt > | one |
static const SphericalTensor2D< Cmpt > | max |
static const SphericalTensor2D< Cmpt > | min |
static const SphericalTensor2D< Cmpt > | rootMax |
static const SphericalTensor2D< Cmpt > | rootMin |
Additional Inherited Members | |
Static Public Member Functions inherited from VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static SphericalTensor2D< Cmpt > | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes inherited from VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 > | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
Templated 2D sphericalTensor derived from VectorSpace adding construction from 1 component, element access using ii() member function and the inner-product (dot-product) and outer-product operators.
Definition at line 51 of file SphericalTensor2D.H.
enum components |
|
inline |
Construct null.
Definition at line 31 of file SphericalTensor2DI.H.
Referenced by SphericalTensor2D< Cmpt >::SphericalTensor2D().
|
inline |
Construct initialized to zero.
Definition at line 36 of file SphericalTensor2DI.H.
References SphericalTensor2D< Cmpt >::SphericalTensor2D().
|
inline |
Construct given VectorSpace.
Definition at line 44 of file SphericalTensor2DI.H.
|
inline |
Construct given the component.
Definition at line 53 of file SphericalTensor2DI.H.
References SphericalTensor2D< Cmpt >::II, and VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 >::v_.
|
inline |
Construct from Istream.
Definition at line 60 of file SphericalTensor2DI.H.
|
inline |
Definition at line 69 of file SphericalTensor2DI.H.
References SphericalTensor2D< Cmpt >::II, and VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 >::v_.
Referenced by Foam::det(), Foam::inv(), Foam::operator &(), Foam::operator &&(), Foam::operator+(), Foam::operator-(), Foam::operator/(), Tensor2D< Cmpt >::operator=(), SymmTensor2D< Cmpt >::SymmTensor2D(), Tensor2D< Cmpt >::Tensor2D(), and Foam::tr().
|
inline |
Definition at line 76 of file SphericalTensor2DI.H.
References SphericalTensor2D< Cmpt >::II, and VectorSpace< SphericalTensor2D< Cmpt >, Cmpt, 1 >::v_.
|
static |
Rank of SphericalTensor2D is 2.
Definition at line 61 of file SphericalTensor2D.H.
|
static |
Definition at line 66 of file SphericalTensor2D.H.
|
static |
Definition at line 67 of file SphericalTensor2D.H.
|
static |
Definition at line 68 of file SphericalTensor2D.H.