Public Types | Public Member Functions | Static Public Attributes
SphericalTensor< Cmpt > Class Template Reference

Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators. More...

Inheritance diagram for SphericalTensor< Cmpt >:
Inheritance graph
[legend]
Collaboration diagram for SphericalTensor< Cmpt >:
Collaboration graph
[legend]

Public Types

enum  { rank = 2 }
 
enum  components { II }
 Component labeling enumeration. More...
 
typedef SphericalTensor< labellabelType
 Equivalent type of labels used for valid component indexing. More...
 
- Public Types inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >
enum  
 
typedef Cmpt cmptType
 Component type. More...
 

Public Member Functions

 SphericalTensor ()
 Construct null. More...
 
template<class Cmpt2 >
 SphericalTensor (const VectorSpace< SphericalTensor< Cmpt2 >, Cmpt2, 1 > &)
 Construct given VectorSpace. More...
 
 SphericalTensor (const Cmpt &tii)
 Construct given the component. More...
 
 SphericalTensor (Istream &)
 Construct from Istream. More...
 
const Cmpt & ii () const
 
Cmpt & ii ()
 
const SphericalTensor< Cmpt > & T () const
 Transpose. More...
 
- Public Member Functions inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >
 VectorSpace ()
 Construct null. More...
 
 VectorSpace (Istream &)
 Construct from Istream. More...
 
 VectorSpace (const VectorSpace< Form, Cmpt, nCmpt > &)
 Construct as copy. More...
 
 VectorSpace (const VectorSpace< Form2, Cmpt2, nCmpt > &)
 Construct as copy of another VectorSpace type of the same rank. More...
 
label size () const
 Return the number of elements in the VectorSpace = nCmpt. More...
 
const Cmpt & component (const direction) const
 
Cmpt & component (const direction)
 
void component (Cmpt &, const direction) const
 
void replace (const direction, const Cmpt &)
 
const Cmpt & operator[] (const direction) const
 
Cmpt & operator[] (const direction)
 
void operator= (const VectorSpace< Form, Cmpt, nCmpt > &)
 
void operator+= (const VectorSpace< Form, Cmpt, nCmpt > &)
 
void operator-= (const VectorSpace< Form, Cmpt, nCmpt > &)
 
void operator*= (const scalar)
 
void operator/= (const scalar)
 

Static Public Attributes

static const char *const typeName = "labelSphericalTensor"
 
static const char * componentNames [] = {"ii"}
 
static const SphericalTensor zero
 
static const SphericalTensor one
 
static const SphericalTensor max
 
static const SphericalTensor min
 
static const SphericalTensor I
 
static const SphericalTensor oneThirdI
 
static const SphericalTensor twoThirdsI
 

Additional Inherited Members

- Data Fields inherited from VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >
Cmpt v_ [nCmpt]
 The components of this vector space. More...
 

Detailed Description

template<class Cmpt>
class Foam::SphericalTensor< Cmpt >

Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.

Source files

Definition at line 51 of file SphericalTensor.H.

Member Typedef Documentation

◆ labelType

Equivalent type of labels used for valid component indexing.

Definition at line 59 of file SphericalTensor.H.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
rank 

Definition at line 64 of file SphericalTensor.H.

◆ components

enum components

Component labeling enumeration.

Enumerator
II 

Definition at line 84 of file SphericalTensor.H.

Constructor & Destructor Documentation

◆ SphericalTensor() [1/4]

Construct null.

Definition at line 36 of file SphericalTensorI.H.

◆ SphericalTensor() [2/4]

SphericalTensor ( const VectorSpace< SphericalTensor< Cmpt2 >, Cmpt2, 1 > &  vs)
inline

Construct given VectorSpace.

Definition at line 43 of file SphericalTensorI.H.

◆ SphericalTensor() [3/4]

SphericalTensor ( const Cmpt &  tii)
inline

Construct given the component.

Definition at line 52 of file SphericalTensorI.H.

◆ SphericalTensor() [4/4]

SphericalTensor ( Istream is)
inline

Construct from Istream.

Definition at line 59 of file SphericalTensorI.H.

Member Function Documentation

◆ ii() [1/2]

Cmpt & ii
inline

◆ ii() [2/2]

Cmpt& ii ( )
inline

◆ T()

const SphericalTensor< Cmpt > & T
inline

Transpose.

Definition at line 82 of file SphericalTensorI.H.

Field Documentation

◆ typeName

const char *const typeName = "labelSphericalTensor"
static

Definition at line 72 of file SphericalTensor.H.

◆ componentNames

const char * componentNames = {"ii"}
static

Definition at line 73 of file SphericalTensor.H.

◆ zero

const sphericalTensor zero
static

Definition at line 74 of file SphericalTensor.H.

◆ one

const sphericalTensor one
static

Definition at line 75 of file SphericalTensor.H.

Referenced by main().

◆ max

const sphericalTensor max
static

Definition at line 76 of file SphericalTensor.H.

◆ min

const sphericalTensor min
static

Definition at line 77 of file SphericalTensor.H.

◆ I

const sphericalTensor I
static

◆ oneThirdI

const sphericalTensor oneThirdI
static

Definition at line 79 of file SphericalTensor.H.

◆ twoThirdsI

const sphericalTensor twoThirdsI
static

Definition at line 80 of file SphericalTensor.H.


The documentation for this class was generated from the following files: