Templated 2D tensor derived from VectorSpace adding construction from 4 components, element access using xx(), xy(), yx() and yy() member functions and the iner-product (dot-product) and outer-product of two Vector2Ds (tensor-product) operators. More...
#include <OpenFOAM/Tensor2D_.H>
Templated 2D tensor derived from VectorSpace adding construction from 4 components, element access using xx(), xy(), yx() and yy() member functions and the iner-product (dot-product) and outer-product of two Vector2Ds (tensor-product) operators.
Definition at line 54 of file Tensor2D_.H.
 Inheritance diagram for Tensor2D< Cmpt >:
 Collaboration diagram for Tensor2D< Cmpt >:Public Types | |
| enum | { rank = 2 } | 
| enum | components { XX, XY, YX, YY } | 
Component labeling enumeration. More... | |
Public Member Functions | |
| Tensor2D () | |
| Construct null.  
 | |
| Tensor2D (const VectorSpace< Tensor2D< Cmpt >, Cmpt, 4 > &) | |
| Construct given VectorSpace.  
 | |
| Tensor2D (const SphericalTensor2D< Cmpt > &) | |
| Construct given SphericalTensor2D.  
 | |
| Tensor2D (const Vector2D< Cmpt > &x, const Vector2D< Cmpt > &y) | |
| Construct given the two vectors.  
 | |
| Tensor2D (const Cmpt txx, const Cmpt txy, const Cmpt tyx, const Cmpt tyy) | |
| Construct given the four components.  
 | |
| Tensor2D (Istream &) | |
| Construct from Istream.  
 | |
| const Cmpt & | xx () const | 
| const Cmpt & | xy () const | 
| const Cmpt & | yx () const | 
| const Cmpt & | yy () const | 
| Cmpt & | xx () | 
| Cmpt & | xy () | 
| Cmpt & | yx () | 
| Cmpt & | yy () | 
| const Vector2D< Cmpt > | x () const | 
| const Vector2D< Cmpt > | y () const | 
| Tensor2D< Cmpt > | T () const | 
| Transpose.  
 | |
| void | operator= (const SphericalTensor2D< Cmpt > &) | 
| Copy SphericalTensor2D.  
 | |
Static Public Attributes | |
| static const char *const | typeName = "tensor2D" | 
| static const char * | componentNames [] | 
| static const Tensor2D | zero | 
| static const Tensor2D | one | 
| static const Tensor2D | max | 
| static const Tensor2D | min | 
| anonymous enum | 
Definition at line 63 of file Tensor2D_.H.
| enum components | 
| Tensor2D | ( | ) |  [inline]
 | 
        
Construct null.
Definition at line 34 of file Tensor2DI_.H.
| Tensor2D | ( | const VectorSpace< Tensor2D< Cmpt >, Cmpt, 4 > & | vs ) |  [inline]
 | 
        
Construct given VectorSpace.
Definition at line 39 of file Tensor2DI_.H.
| Tensor2D | ( | const SphericalTensor2D< Cmpt > & | st ) |  [inline]
 | 
        
Construct given SphericalTensor2D.
Definition at line 46 of file Tensor2DI_.H.
References SphericalTensor2D< Cmpt >::ii().
Construct given the two vectors.
Definition at line 55 of file Tensor2DI_.H.
References Vector2D< Cmpt >::x(), and Vector2D< Cmpt >::y().
| Tensor2D | ( | const Cmpt | txx, | 
| const Cmpt | txy, | ||
| const Cmpt | tyx, | ||
| const Cmpt | tyy | ||
| ) |  [inline]
 | 
        
Construct given the four components.
Definition at line 67 of file Tensor2DI_.H.
Construct from Istream.
Definition at line 78 of file Tensor2DI_.H.
| const Cmpt & xx | ( | ) |  const [inline]
 | 
        
Definition at line 100 of file Tensor2DI_.H.
Referenced by Foam::cof(), Foam::det(), Foam::eigenValues(), Foam::eigenVector(), Foam::invariantII(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::symm(), Foam::tr(), and Foam::twoSymm().
| const Cmpt & xy | ( | ) |  const [inline]
 | 
        
Definition at line 106 of file Tensor2DI_.H.
Referenced by Foam::cof(), Foam::det(), Foam::eigenValues(), Foam::eigenVector(), Foam::invariantII(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::skew(), Foam::symm(), and Foam::twoSymm().
| const Cmpt & yx | ( | ) |  const [inline]
 | 
        
Definition at line 112 of file Tensor2DI_.H.
Referenced by Foam::cof(), Foam::det(), Foam::eigenValues(), Foam::eigenVector(), Foam::invariantII(), Foam::operator&(), Foam::operator+(), Foam::operator-(), Foam::skew(), Foam::symm(), and Foam::twoSymm().
| const Cmpt & yy | ( | ) |  const [inline]
 | 
        
Definition at line 118 of file Tensor2DI_.H.
Referenced by Foam::cof(), Foam::det(), Foam::eigenValues(), Foam::eigenVector(), Foam::invariantII(), Foam::operator&(), Foam::operator&&(), Foam::operator+(), Foam::operator-(), Foam::symm(), Foam::tr(), and Foam::twoSymm().
| Cmpt & xx | ( | ) |  [inline]
 | 
        
Definition at line 125 of file Tensor2DI_.H.
| Cmpt & xy | ( | ) |  [inline]
 | 
        
Definition at line 131 of file Tensor2DI_.H.
| Cmpt & yx | ( | ) |  [inline]
 | 
        
Definition at line 137 of file Tensor2DI_.H.
| Cmpt & yy | ( | ) |  [inline]
 | 
        
Definition at line 143 of file Tensor2DI_.H.
| const Vector2D< Cmpt > x | ( | ) |  const [inline]
 | 
        
Definition at line 87 of file Tensor2DI_.H.
| const Vector2D< Cmpt > y | ( | ) |  const [inline]
 | 
        
Definition at line 93 of file Tensor2DI_.H.
| Tensor2D< Cmpt > T | ( | ) |  const [inline]
 | 
        
| void operator= | ( | const SphericalTensor2D< Cmpt > & | st ) |  [inline]
 | 
        
Copy SphericalTensor2D.
Definition at line 163 of file Tensor2DI_.H.
References SphericalTensor2D< Cmpt >::ii().
const char *const typeName = "tensor2D" [static]
 | 
        
Definition at line 71 of file Tensor2D_.H.
const char * componentNames [static]
 | 
        
{
    "xx", "xy",
    "yx", "yy"
}
Definition at line 72 of file Tensor2D_.H.
Definition at line 74 of file Tensor2D_.H.
Definition at line 75 of file Tensor2D_.H.
Definition at line 76 of file Tensor2D_.H.
Definition at line 77 of file Tensor2D_.H.