OpenFOAM logo
Open Source CFD Toolkit

TensorI.H File Reference


Detailed Description

View TensorI.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file TensorI.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Functions

template<class Cmpt>
Vector< Cmpt > operator * (const Tensor< Cmpt > &t)
 Hodge Dual operator (tensor -> vector).
template<class Cmpt>
Tensor< Cmpt > operator * (const Vector< Cmpt > &v)
 Hodge Dual operator (vector -> tensor).
template<class Cmpt>
innerProduct< Tensor< Cmpt >,
Tensor< Cmpt > >::type 
operator & (const Tensor< Cmpt > &t1, const Tensor< Cmpt > &t2)
 Inner-product between two tensors.
template<class Cmpt>
innerProduct< Tensor< Cmpt >,
Vector< Cmpt > >::type 
operator & (const Tensor< Cmpt > &t, const Vector< Cmpt > &v)
 Inner-product between a tensor and a vector.
template<class Cmpt>
innerProduct< Vector< Cmpt >,
Tensor< Cmpt > >::type 
operator & (const Vector< Cmpt > &v, const Tensor< Cmpt > &t)
 Inner-product between a vector and a tensor.
template<class Cmpt>
outerProduct< Vector< Cmpt >,
Vector< Cmpt > >::type 
operator * (const Vector< Cmpt > &v1, const Vector< Cmpt > &v2)
 Outer-product between two vectors.
template<class Cmpt>
scalar tr (const Tensor< Cmpt > &t)
 Return the trace of a tensor.
template<class Cmpt>
Tensor< Cmpt > symm (const Tensor< Cmpt > &t)
 Return the symmetric part of a tensor.
template<class Cmpt>
Tensor< Cmpt > skew (const Tensor< Cmpt > &t)
 Return the skew-symmetric part of a tensor.
template<class Cmpt>
scalar det (const Tensor< Cmpt > &t)
 Return the determinant of a tensor.
template<class Cmpt>
Tensor< Cmpt > cofactors (const Tensor< Cmpt > &t)
 Return the cofactor tensor of a symmetric tensor.
template<class Cmpt>
Tensor< Cmpt > inv (const Tensor< Cmpt > &t)
 Return the inverse of a symmetric tensor.
template<class Cmpt>
scalar invariantI (const Tensor< Cmpt > &t)
 Return the 1st invariant of a tensor.
template<class Cmpt>
scalar invariantII (const Tensor< Cmpt > &t)
 Return the 2nd invariant of a tensor.
template<class Cmpt>
scalar invariantIII (const Tensor< Cmpt > &t)
 Return the 3rd invariant of a tensor.


Function Documentation

Tensor<Cmpt> cofactors const Tensor< Cmpt > &  t  )  [inline]
 

Return the cofactor tensor of a symmetric tensor.

Definition at line 372 of file TensorI.H.

scalar det const Tensor< Cmpt > &  t  )  [inline]
 

Return the determinant of a tensor.

Definition at line 360 of file TensorI.H.

Tensor<Cmpt> inv const Tensor< Cmpt > &  t  )  [inline]
 

Return the inverse of a symmetric tensor.

Definition at line 392 of file TensorI.H.

scalar invariantI const Tensor< Cmpt > &  t  )  [inline]
 

Return the 1st invariant of a tensor.

Definition at line 413 of file TensorI.H.

References Foam::sqr(), and Foam::tr().

Here is the call graph for this function:

scalar invariantII const Tensor< Cmpt > &  t  )  [inline]
 

Return the 2nd invariant of a tensor.

Definition at line 421 of file TensorI.H.

scalar invariantIII const Tensor< Cmpt > &  t  )  [inline]
 

Return the 3rd invariant of a tensor.

Definition at line 438 of file TensorI.H.

innerProduct<Vector<Cmpt>, Tensor<Cmpt> >::type operator & const Vector< Cmpt > &  v,
const Tensor< Cmpt > &  t
[inline]
 

Inner-product between a vector and a tensor.

Definition at line 303 of file TensorI.H.

innerProduct<Tensor<Cmpt>, Vector<Cmpt> >::type operator & const Tensor< Cmpt > &  t,
const Vector< Cmpt > &  v
[inline]
 

Inner-product between a tensor and a vector.

Definition at line 290 of file TensorI.H.

innerProduct<Tensor<Cmpt>, Tensor<Cmpt> >::type operator & const Tensor< Cmpt > &  t1,
const Tensor< Cmpt > &  t2
[inline]
 

Inner-product between two tensors.

Definition at line 269 of file TensorI.H.

outerProduct<Vector<Cmpt>, Vector<Cmpt> >::type operator * const Vector< Cmpt > &  v1,
const Vector< Cmpt > &  v2
[inline]
 

Outer-product between two vectors.

Definition at line 316 of file TensorI.H.

References v1, and v2.

Tensor<Cmpt> operator * const Vector< Cmpt > &  v  )  [inline]
 

Hodge Dual operator (vector -> tensor).

Definition at line 255 of file TensorI.H.

Vector<Cmpt> operator * const Tensor< Cmpt > &  t  )  [inline]
 

Hodge Dual operator (tensor -> vector).

Definition at line 247 of file TensorI.H.

References Vector::y(), and Vector::z().

Here is the call graph for this function:

Tensor<Cmpt> skew const Tensor< Cmpt > &  t  )  [inline]
 

Return the skew-symmetric part of a tensor.

Definition at line 348 of file TensorI.H.

Tensor<Cmpt> symm const Tensor< Cmpt > &  t  )  [inline]
 

Return the symmetric part of a tensor.

Definition at line 336 of file TensorI.H.

scalar tr const Tensor< Cmpt > &  t  )  [inline]
 

Return the trace of a tensor.

Definition at line 329 of file TensorI.H.

References Tensor::xx(), Tensor::xy(), Tensor::xz(), Tensor::yx(), and Tensor::zx().

Here is the call graph for this function:

For further information go to www.openfoam.org