Tensor< Cmpt > Class Template Reference

A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace. More...

Inheritance diagram for Tensor< Cmpt >:
[legend]
Collaboration diagram for Tensor< Cmpt >:
[legend]

Public Types

enum  components {
  XX , XY , XZ , YX ,
  YY , YZ , ZX , ZY ,
  ZZ
}
 Component labeling enumeration. More...
 
typedef Tensor< label > labelType
 Equivalent type of labels used for valid component indexing. More...
 
- Public Types inherited from MatrixSpace< Tensor< Cmpt >, Cmpt, 3, 3 >
typedef MatrixSpace< Tensor< Cmpt >, Cmpt, Mrows, Ncols > msType
 MatrixSpace type. More...
 
- Public Types inherited from VectorSpace< Form, Cmpt, Ncmpts >
typedef VectorSpace< Form, Cmpt, Ncmpts > vsType
 VectorSpace type. More...
 
typedef Cmpt cmptType
 Component type. More...
 
typedef Cmpt magType
 Magnitude type. More...
 
typedef Cmpt * iterator
 Random access iterator for traversing VectorSpace. More...
 
typedef const Cmpt * const_iterator
 Random access iterator for traversing VectorSpace. More...
 

Public Member Functions

 Tensor ()=default
 Default construct. More...
 
 Tensor (const Tensor &)=default
 Copy construct. More...
 
Tensoroperator= (const Tensor &)=default
 Copy assignment. More...
 
 Tensor (const Foam::zero)
 Construct initialized to zero. More...
 
template<class Cmpt2 >
 Tensor (const MatrixSpace< Tensor< Cmpt2 >, Cmpt2, 3, 3 > &vs)
 Construct given MatrixSpace of the same rank. More...
 
template<class Cmpt2 >
 Tensor (const VectorSpace< Tensor< Cmpt2 >, Cmpt2, 9 > &vs)
 Construct given VectorSpace of the same rank. More...
 
 Tensor (const SphericalTensor< Cmpt > &st)
 Construct given SphericalTensor. More...
 
 Tensor (const SymmTensor< Cmpt > &st)
 Construct given SymmTensor. More...
 
 Tensor (const Vector< Vector< Cmpt > > &vecs, const bool transposed=false)
 
 Tensor (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z, const bool transposed=false)
 
 Tensor (const Cmpt txx, const Cmpt txy, const Cmpt txz, const Cmpt tyx, const Cmpt tyy, const Cmpt tyz, const Cmpt tzx, const Cmpt tzy, const Cmpt tzz)
 Construct given the nine components. More...
 
template<template< class, direction, direction > class Block2, direction BRowStart, direction BColStart>
 Tensor (const Block2< Tensor< Cmpt >, BRowStart, BColStart > &block)
 Construct from a block of another matrix space. More...
 
 Tensor (Istream &is)
 Construct from Istream. More...
 
const Cmpt & xx () const
 
const Cmpt & xy () const
 
const Cmpt & xz () const
 
const Cmpt & yx () const
 
const Cmpt & yy () const
 
const Cmpt & yz () const
 
const Cmpt & zx () const
 
const Cmpt & zy () const
 
const Cmpt & zz () const
 
Cmpt & xx ()
 
Cmpt & xy ()
 
Cmpt & xz ()
 
Cmpt & yx ()
 
Cmpt & yy ()
 
Cmpt & yz ()
 
Cmpt & zx ()
 
Cmpt & zy ()
 
Cmpt & zz ()
 
Vector< Cmpt > cx () const
 Extract vector for column 0. More...
 
Vector< Cmpt > cy () const
 Extract vector for column 1. More...
 
Vector< Cmpt > cz () const
 Extract vector for column 2. More...
 
template<direction Idx>
Vector< Cmpt > col () const
 Extract vector for given column: compile-time check of index. More...
 
Vector< Cmpt > col (const direction c) const
 Extract vector for given column (0,1,2): runtime check of index. More...
 
template<direction Idx>
void col (const Vector< Cmpt > &v)
 Set values of given column: compile-time check of index. More...
 
void col (const direction c, const Vector< Cmpt > &v)
 Set values of given column (0,1,2): runtime check of index. More...
 
void cols (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z)
 Set column values. More...
 
Vector< Cmpt > x () const
 Extract vector for row 0. More...
 
Vector< Cmpt > y () const
 Extract vector for row 1. More...
 
Vector< Cmpt > z () const
 Extract vector for row 2. More...
 
template<direction Idx>
Vector< Cmpt > row () const
 Extract vector for given row: compile-time check of index. More...
 
Vector< Cmpt > row (const direction r) const
 Extract vector for given row (0,1,2): runtime check of index. More...
 
template<direction Idx>
void row (const Vector< Cmpt > &v)
 Set values of given row: compile-time check of index. More...
 
void row (const direction r, const Vector< Cmpt > &v)
 Set values of given row (0,1,2): runtime check of row. More...
 
void rows (const Vector< Cmpt > &x, const Vector< Cmpt > &y, const Vector< Cmpt > &z)
 Set row values. More...
 
Vector< Cmpt > diag () const
 Extract the diagonal as a vector. More...
 
void diag (const Vector< Cmpt > &v)
 Set values of the diagonal. More...
 
bool is_identity (const scalar tol=ROOTVSMALL) const
 Is identity tensor? More...
 
Tensor< Cmpt > T () const
 Return non-Hermitian transpose. More...
 
Tensor< Cmpt > inv () const
 Return inverse. More...
 
Tensor< Cmpt > inner (const Tensor< Cmpt > &t2) const
 Inner-product of this with another Tensor. More...
 
Tensor< Cmpt > schur (const Tensor< Cmpt > &t2) const
 Schur-product of this with another Tensor. More...
 
void operator&= (const Tensor< Cmpt > &t)
 Assign inner-product of this with another Tensor. More...
 
template<class Cmpt2 >
void operator= (const VectorSpace< Tensor< Cmpt2 >, Cmpt2, 9 > &)
 Assign to an equivalent vector space. More...
 
void operator= (const SphericalTensor< Cmpt > &)
 Assign to a SphericalTensor. More...
 
void operator= (const SymmTensor< Cmpt > &)
 Assign to a SymmTensor. More...
 
void operator= (const Vector< Vector< Cmpt > > &)
 Assign to a triad of row vectors. More...
 
Vector< Cmpt > vectorComponent (const direction cmpt) const
 Deprecated(2018-12) Return vector for given row (0,1) More...
 
const Foam::Tensor< float > I (1, 0, 0, 0, 1, 0, 0, 0, 1)
 
const Foam::Tensor< double > I (1, 0, 0, 0, 1, 0, 0, 0, 1)
 
template<Foam::direction Idx>
Foam::Vector< Cmpt > col () const
 
template<Foam::direction Idx>
Foam::Vector< Cmpt > row () const
 
- Public Member Functions inherited from MatrixSpace< Tensor< Cmpt >, Cmpt, 3, 3 >
 MatrixSpace ()=default
 Default construct. More...
 
 MatrixSpace (const Foam::zero)
 Construct initialized to zero. More...
 
 MatrixSpace (const VectorSpace< Form2, Cmpt2, Mrows *Ncols > &)
 Construct as copy of a VectorSpace with the same size. More...
 
 MatrixSpace (const Block2< Tensor< Cmpt >, BRowStart, BColStart > &block)
 Construct from a block of another matrix space. More...
 
 MatrixSpace (Istream &is)
 Construct from Istream. More...
 
const Cmpt & elmt () const
 Fast const element access using compile-time addressing. More...
 
Cmpt & elmt ()
 Fast element access using compile-time addressing. More...
 
const Cmpt & xx () const
 
Cmpt & xx ()
 
const Cmpt & xy () const
 
Cmpt & xy ()
 
const Cmpt & xz () const
 
Cmpt & xz ()
 
const Cmpt & yx () const
 
Cmpt & yx ()
 
const Cmpt & yy () const
 
Cmpt & yy ()
 
const Cmpt & yz () const
 
Cmpt & yz ()
 
const Cmpt & zx () const
 
Cmpt & zx ()
 
const Cmpt & zy () const
 
Cmpt & zy ()
 
const Cmpt & zz () const
 
Cmpt & zz ()
 
typeOfTranspose< Cmpt, Tensor< Cmpt > >::type T () const
 Return the transpose of the matrix. More...
 
ConstBlock< SubTensor, BRowStart, BColStart > block () const
 Return a const sub-block corresponding to the specified type. More...
 
Block< SubTensor, BRowStart, BColStart > block ()
 Return a sub-block corresponding to the specified type. More...
 
Foam::MatrixSpace< Tensor< Cmpt >, Cmpt, Mrows, Ncols >::template ConstBlock< SubTensor, BRowStart, BColStart > block () const
 
Foam::MatrixSpace< Tensor< Cmpt >, Cmpt, Mrows, Ncols >::template Block< SubTensor, BRowStart, BColStart > block ()
 
const Cmpt & operator() (const direction &i, const direction &j) const
 (i, j) const element access operator More...
 
Cmpt & operator() (const direction &i, const direction &j)
 (i, j) element access operator More...
 
void operator= (const Foam::zero)
 Assignment to zero. More...
 
void operator= (const Block2< Tensor< Cmpt >, BRowStart, BColStart > &block)
 Assignment to a block of another matrix space. More...
 
void operator&= (const MatrixSpace< Tensor< Cmpt >, Cmpt, Ncols, Ncols > &matrix)
 Inner product with a compatible square matrix. More...
 
- Public Member Functions inherited from VectorSpace< Form, Cmpt, Ncmpts >
 VectorSpace ()=default
 Default construct. More...
 
 VectorSpace (const Foam::zero)
 Construct initialized to zero. More...
 
 VectorSpace (const VectorSpace< Form, Cmpt, Ncmpts > &vs)
 Copy construct. More...
 
template<class Form2 , class Cmpt2 >
 VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &)
 Copy construct of a VectorSpace with the same size. More...
 
 VectorSpace (Istream &is)
 Construct from Istream. 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 * cdata () const noexcept
 Return const pointer to the first data element. More...
 
Cmpt * data () noexcept
 Return pointer to the first data element. More...
 
template<class SubVector , direction BStart>
const 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 VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &)
 
void operator= (const Foam::zero)
 
void operator*= (const scalar)
 
void operator/= (const scalar)
 
iterator begin () noexcept
 Return an iterator to begin of VectorSpace. More...
 
iterator end () noexcept
 Return an iterator to end of VectorSpace. More...
 
const_iterator cbegin () const noexcept
 Return const_iterator to begin of VectorSpace. More...
 
const_iterator cend () const noexcept
 Return const_iterator to end of VectorSpace. More...
 
const_iterator begin () const noexcept
 Return const_iterator to begin of VectorSpace. More...
 
const_iterator end () const noexcept
 Return const_iterator to end of VectorSpace. More...
 
template<class SubVector , Foam::direction BStart>
const Foam::VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > block () const
 

Static Public Attributes

static constexpr direction rank = 2
 Rank of Tensor is 2. More...
 
static const Tensor I
 
- Static Public Attributes inherited from MatrixSpace< Tensor< Cmpt >, Cmpt, 3, 3 >
static constexpr direction mRows
 
static constexpr direction nCols
 
- Static Public Attributes inherited from VectorSpace< Form, Cmpt, Ncmpts >
static constexpr direction dim = 3
 Dimensionality of space. More...
 
static constexpr direction nComponents = Ncmpts
 Number of components in this vector space. More...
 
static constexpr direction mRows = Ncmpts
 
static constexpr direction nCols = 1
 
static const char *const typeName = "diagTensor"
 
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 Public Member Functions inherited from MatrixSpace< Tensor< Cmpt >, Cmpt, 3, 3 >
static direction m () noexcept
 The number of rows. More...
 
static direction n () noexcept
 The number of columns. More...
 
static msType identity ()
 An identity matrix for square matrix-spaces. More...
 
- Static Public Member Functions inherited from VectorSpace< Form, Cmpt, Ncmpts >
static constexpr direction size () noexcept
 The number of elements in the VectorSpace = Ncmpts. More...
 
static Form uniform (const Cmpt &s)
 Return a VectorSpace with all elements = s. More...
 
- Public Attributes inherited from VectorSpace< Form, Cmpt, Ncmpts >
Cmpt v_ [Ncmpts]
 The components of this vector space. More...
 

Detailed Description

template<class Cmpt>
class Foam::Tensor< Cmpt >

A templated (3 x 3) tensor of objects of <T> derived from MatrixSpace.

Source files
See also
Foam::MatrixSpace Foam::Vector

Definition at line 61 of file Tensor.H.

Member Typedef Documentation

◆ labelType

typedef Tensor<label> labelType

Equivalent type of labels used for valid component indexing.

Definition at line 70 of file Tensor.H.

Member Enumeration Documentation

◆ components

enum components

Component labeling enumeration.

Enumerator
XX 
XY 
XZ 
YX 
YY 
YZ 
ZX 
ZY 
ZZ 

Definition at line 85 of file Tensor.H.

Constructor & Destructor Documentation

◆ Tensor() [1/12]

Tensor ( )
default

Default construct.

◆ Tensor() [2/12]

Tensor ( const Tensor< Cmpt > &  )
default

Copy construct.

◆ Tensor() [3/12]

Tensor ( const Foam::zero  )
inline

Construct initialized to zero.

Definition at line 36 of file TensorI.H.

◆ Tensor() [4/12]

Tensor ( const MatrixSpace< Tensor< Cmpt2 >, Cmpt2, 3, 3 > &  vs)
inline

Construct given MatrixSpace of the same rank.

Definition at line 44 of file TensorI.H.

◆ Tensor() [5/12]

Tensor ( const VectorSpace< Tensor< Cmpt2 >, Cmpt2, 9 > &  vs)
inline

Construct given VectorSpace of the same rank.

Definition at line 55 of file TensorI.H.

◆ Tensor() [6/12]

Tensor ( const SphericalTensor< Cmpt > &  st)
inline

Construct given SphericalTensor.

Definition at line 65 of file TensorI.H.

References SphericalTensor< Cmpt >::ii(), and Foam::Zero.

Here is the call graph for this function:

◆ Tensor() [7/12]

Tensor ( const SymmTensor< Cmpt > &  st)
inline

Construct given SymmTensor.

Definition at line 74 of file TensorI.H.

References SymmTensor< Cmpt >::xx(), SymmTensor< Cmpt >::xy(), SymmTensor< Cmpt >::xz(), SymmTensor< Cmpt >::yy(), SymmTensor< Cmpt >::yz(), and SymmTensor< Cmpt >::zz().

Here is the call graph for this function:

◆ Tensor() [8/12]

Tensor ( const Vector< Vector< Cmpt > > &  vecs,
const bool  transposed = false 
)
inline

Construct given triad of row vectors, optionally treated as transposed (ie, column vectors)

Definition at line 83 of file TensorI.H.

◆ Tensor() [9/12]

Tensor ( const Vector< Cmpt > &  x,
const Vector< Cmpt > &  y,
const Vector< Cmpt > &  z,
const bool  transposed = false 
)
inline

Construct given the three row vectors, optionally treated as transposed (ie, column vectors)

Definition at line 94 of file TensorI.H.

◆ Tensor() [10/12]

Tensor ( const Cmpt  txx,
const Cmpt  txy,
const Cmpt  txz,
const Cmpt  tyx,
const Cmpt  tyy,
const Cmpt  tyz,
const Cmpt  tzx,
const Cmpt  tzy,
const Cmpt  tzz 
)
inline

Construct given the nine components.

Definition at line 114 of file TensorI.H.

◆ Tensor() [11/12]

Tensor ( const Block2< Tensor< Cmpt >, BRowStart, BColStart > &  block)
inline

Construct from a block of another matrix space.

Definition at line 134 of file TensorI.H.

◆ Tensor() [12/12]

Tensor ( Istream is)
inlineexplicit

Construct from Istream.

Definition at line 144 of file TensorI.H.

Member Function Documentation

◆ operator=() [1/5]

Tensor & operator= ( const Tensor< Cmpt > &  )
default

Copy assignment.

◆ xx() [1/2]

◆ xy() [1/2]

◆ xz() [1/2]

◆ yx() [1/2]

◆ yy() [1/2]

◆ yz() [1/2]

◆ zx() [1/2]

◆ zy() [1/2]

◆ zz() [1/2]

◆ xx() [2/2]

Cmpt & xx
inline

Definition at line 216 of file TensorI.H.

◆ xy() [2/2]

Cmpt & xy
inline

Definition at line 223 of file TensorI.H.

◆ xz() [2/2]

Cmpt & xz
inline

Definition at line 230 of file TensorI.H.

◆ yx() [2/2]

Cmpt & yx
inline

Definition at line 237 of file TensorI.H.

◆ yy() [2/2]

Cmpt & yy
inline

Definition at line 244 of file TensorI.H.

◆ yz() [2/2]

Cmpt & yz
inline

Definition at line 251 of file TensorI.H.

◆ zx() [2/2]

Cmpt & zx
inline

Definition at line 258 of file TensorI.H.

◆ zy() [2/2]

Cmpt & zy
inline

Definition at line 265 of file TensorI.H.

◆ zz() [2/2]

Cmpt & zz
inline

Definition at line 272 of file TensorI.H.

◆ cx()

Foam::Vector< Cmpt > cx
inline

Extract vector for column 0.

Definition at line 300 of file TensorI.H.

Referenced by lumpedPointState::writeVTP().

Here is the caller graph for this function:

◆ cy()

Foam::Vector< Cmpt > cy
inline

Extract vector for column 1.

Definition at line 307 of file TensorI.H.

Referenced by lumpedPointState::writeVTP().

Here is the caller graph for this function:

◆ cz()

Foam::Vector< Cmpt > cz
inline

Extract vector for column 2.

Definition at line 314 of file TensorI.H.

◆ col() [1/5]

Vector< Cmpt > col ( ) const
inline

Extract vector for given column: compile-time check of index.

Referenced by cylindrical::R(), and axes::rotation().

Here is the caller graph for this function:

◆ col() [2/5]

Foam::Vector< Cmpt > col ( const direction  c) const
inline

Extract vector for given column (0,1,2): runtime check of index.

Definition at line 334 of file TensorI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::Zero.

Here is the call graph for this function:

◆ col() [3/5]

void col ( const Vector< Cmpt > &  v)
inline

Set values of given column: compile-time check of index.

Definition at line 382 of file TensorI.H.

References Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ col() [4/5]

void col ( const direction  c,
const Vector< Cmpt > &  v 
)
inline

Set values of given column (0,1,2): runtime check of index.

Definition at line 457 of file TensorI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ cols()

void cols ( const Vector< Cmpt > &  x,
const Vector< Cmpt > &  y,
const Vector< Cmpt > &  z 
)
inline

Set column values.

Definition at line 429 of file TensorI.H.

References x, Vector< Cmpt >::x(), y, Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ x()

Foam::Vector< Cmpt > x
inline

Extract vector for row 0.

Definition at line 279 of file TensorI.H.

Referenced by triad::operator=(), and triad::triad().

Here is the caller graph for this function:

◆ y()

Foam::Vector< Cmpt > y
inline

Extract vector for row 1.

Definition at line 286 of file TensorI.H.

Referenced by triad::operator=(), and triad::triad().

Here is the caller graph for this function:

◆ z()

Foam::Vector< Cmpt > z
inline

Extract vector for row 2.

Definition at line 293 of file TensorI.H.

Referenced by triad::operator=(), and triad::triad().

Here is the caller graph for this function:

◆ row() [1/5]

Vector< Cmpt > row ( ) const
inline

Extract vector for given row: compile-time check of index.

◆ row() [2/5]

Foam::Vector< Cmpt > row ( const direction  r) const
inline

Extract vector for given row (0,1,2): runtime check of index.

Definition at line 364 of file TensorI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, x, y, and Foam::Zero.

Here is the call graph for this function:

◆ row() [3/5]

void row ( const Vector< Cmpt > &  v)
inline

Set values of given row: compile-time check of index.

Definition at line 409 of file TensorI.H.

References Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ row() [4/5]

void row ( const direction  r,
const Vector< Cmpt > &  v 
)
inline

Set values of given row (0,1,2): runtime check of row.

Definition at line 476 of file TensorI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ rows()

void rows ( const Vector< Cmpt > &  x,
const Vector< Cmpt > &  y,
const Vector< Cmpt > &  z 
)
inline

Set row values.

Definition at line 443 of file TensorI.H.

References x, Vector< Cmpt >::x(), y, Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ diag() [1/2]

Foam::Vector< Cmpt > diag
inline

Extract the diagonal as a vector.

Definition at line 495 of file TensorI.H.

◆ diag() [2/2]

void diag ( const Vector< Cmpt > &  v)
inline

Set values of the diagonal.

Definition at line 502 of file TensorI.H.

References Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ is_identity()

bool is_identity ( const scalar  tol = ROOTVSMALL) const
inline

Is identity tensor?

Definition at line 509 of file TensorI.H.

References Foam::mag().

Here is the call graph for this function:

◆ T()

Foam::Tensor< Cmpt > T
inline

Return non-Hermitian transpose.

Definition at line 526 of file TensorI.H.

Referenced by edgeInterpolationScheme< scalar >::euclidianInterpolate(), triangle< Point, PointRef >::inertia(), edgeInterpolationScheme< Type >::interpolate(), edgeInterpolationScheme< scalar >::interpolate(), Moment< Type >::Moment(), and Foam::RBD::transform().

Here is the caller graph for this function:

◆ inv()

Tensor< Cmpt > inv
inline

Return inverse.

Return the inverse of this Tensor.

Definition at line 782 of file TensorI.H.

References Foam::inv().

Here is the call graph for this function:

◆ inner()

Foam::Tensor< Cmpt > inner ( const Tensor< Cmpt > &  t2) const
inline

Inner-product of this with another Tensor.

Definition at line 539 of file TensorI.H.

References Tensor< Cmpt >::xx(), Tensor< Cmpt >::xy(), Tensor< Cmpt >::xz(), Tensor< Cmpt >::yx(), Tensor< Cmpt >::yy(), Tensor< Cmpt >::yz(), Tensor< Cmpt >::zx(), Tensor< Cmpt >::zy(), and Tensor< Cmpt >::zz().

Referenced by Foam::operator&().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ schur()

Foam::Tensor< Cmpt > schur ( const Tensor< Cmpt > &  t2) const
inline

Schur-product of this with another Tensor.

Definition at line 562 of file TensorI.H.

References Tensor< Cmpt >::xx(), Tensor< Cmpt >::xy(), Tensor< Cmpt >::xz(), Tensor< Cmpt >::yx(), Tensor< Cmpt >::yy(), Tensor< Cmpt >::yz(), Tensor< Cmpt >::zx(), Tensor< Cmpt >::zy(), and Tensor< Cmpt >::zz().

Here is the call graph for this function:

◆ operator&=()

void operator&= ( const Tensor< Cmpt > &  t)
inline

Assign inner-product of this with another Tensor.

Definition at line 578 of file TensorI.H.

◆ operator=() [2/5]

void operator= ( const VectorSpace< Tensor< Cmpt2 >, Cmpt2, 9 > &  vs)
inline

Assign to an equivalent vector space.

Definition at line 586 of file TensorI.H.

◆ operator=() [3/5]

void operator= ( const SphericalTensor< Cmpt > &  st)
inline

Assign to a SphericalTensor.

Definition at line 596 of file TensorI.H.

References SphericalTensor< Cmpt >::ii(), and Foam::Zero.

Here is the call graph for this function:

◆ operator=() [4/5]

void operator= ( const SymmTensor< Cmpt > &  st)
inline

Assign to a SymmTensor.

Definition at line 605 of file TensorI.H.

References SymmTensor< Cmpt >::xx(), SymmTensor< Cmpt >::xy(), SymmTensor< Cmpt >::xz(), SymmTensor< Cmpt >::yy(), SymmTensor< Cmpt >::yz(), and SymmTensor< Cmpt >::zz().

Here is the call graph for this function:

◆ operator=() [5/5]

void operator= ( const Vector< Vector< Cmpt > > &  tr)
inline

Assign to a triad of row vectors.

Definition at line 614 of file TensorI.H.

References Foam::tr().

Here is the call graph for this function:

◆ vectorComponent()

Vector< Cmpt > vectorComponent ( const direction  cmpt) const
inline

Deprecated(2018-12) Return vector for given row (0,1)

Deprecated:
(2018-12) use row() method

Definition at line 310 of file Tensor.H.

◆ I() [1/2]

const Foam::Tensor< float > I ( ,
,
,
,
,
,
,
,
 
)

◆ I() [2/2]

const Foam::Tensor< double > I ( ,
,
,
,
,
,
,
,
 
)

◆ col() [5/5]

Foam::Vector< Cmpt > col ( ) const
inline

Definition at line 322 of file TensorI.H.

References Foam::Zero.

◆ row() [5/5]

Foam::Vector< Cmpt > row ( ) const
inline

Definition at line 352 of file TensorI.H.

References x, y, and Foam::Zero.

Member Data Documentation

◆ rank

constexpr direction rank = 2
staticconstexpr

Rank of Tensor is 2.

Definition at line 76 of file Tensor.H.

◆ I

const Foam::labelTensor I
static

Definition at line 81 of file Tensor.H.


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