libMesh::TensorTools Namespace Reference

Classes

struct  IncrementRank
struct  IncrementRank< VectorValue< T > >
struct  IncrementRank< TypeVector< T > >
struct  IncrementRank< TypeTensor< T > >
struct  IncrementRank< TensorValue< T > >
struct  IncrementRank< TypeNTensor< N, T > >
struct  DecrementRank
struct  DecrementRank< VectorValue< T > >
struct  DecrementRank< TypeVector< T > >
struct  DecrementRank< TensorValue< T > >
struct  DecrementRank< TypeTensor< T > >
struct  DecrementRank< TypeNTensor< N, T > >
struct  MakeNumber
struct  MakeNumber< std::complex< T > >
struct  MakeNumber< TypeVector< T > >
struct  MakeNumber< VectorValue< T > >
struct  MakeNumber< TypeTensor< T > >
struct  MakeNumber< TensorValue< T > >
struct  MakeNumber< TypeNTensor< N, T > >
struct  MakeReal
struct  MakeReal< std::complex< T > >
struct  MakeReal< TypeVector< T > >
struct  MakeReal< VectorValue< T > >
struct  MakeReal< TypeTensor< T > >
struct  MakeReal< TensorValue< T > >
struct  MakeReal< TypeNTensor< N, T > >

Functions

Number curl_from_grad (const VectorValue< Number > &)
VectorValue< Numbercurl_from_grad (const TensorValue< Number > &grad)
 Computes the curl of a vector given the gradient of that vector.
TensorValue< Numbercurl_from_grad (const TypeNTensor< 3, Number > &)
Number div_from_grad (const VectorValue< Number > &grad)
 Dummy. Divgerence of a scalar not defined, but is needed for ExactSolution to compile.
Number div_from_grad (const TensorValue< Number > &grad)
 Computes the divergence of a vector given the gradient of that vector.
VectorValue< Numberdiv_from_grad (const TypeNTensor< 3, Number > &)
template<typename T , typename T2 >
boostcopy::enable_if_c
< ScalarTraits< T >::value
&&ScalarTraits< T2 >::value,
typename CompareTypes< T, T2 >
::supertype >::type 
inner_product (const T &a, const T2 &b)
template<typename T , typename T2 >
CompareTypes< T, T2 >::supertype inner_product (const TypeVector< T > &a, const TypeVector< T2 > &b)
template<typename T , typename T2 >
CompareTypes< T, T2 >::supertype inner_product (const TypeTensor< T > &a, const TypeTensor< T2 > &b)
template<unsigned int N, typename T , typename T2 >
CompareTypes< T, T2 >::supertype inner_product (const TypeNTensor< N, T > &a, const TypeNTensor< N, T2 > &b)
template<typename T >
norm_sq (T a)
template<typename T >
norm_sq (std::complex< T > a)
template<typename T >
Real norm_sq (const TypeVector< T > &a)
template<typename T >
Real norm_sq (const VectorValue< T > &a)

Function Documentation

TensorValue< Number > libMesh::TensorTools::curl_from_grad ( const TypeNTensor< 3, Number > &  grad  ) 

Place holder needed for ExactSolution to compile. Will compute the curl of a tensor given the gradient of that tensor.

VectorValue< Number > libMesh::TensorTools::curl_from_grad ( const TensorValue< Number > &  grad  ) 

Computes the curl of a vector given the gradient of that vector.

Number libMesh::TensorTools::curl_from_grad ( const VectorValue< Number > &   ) 
VectorValue< Number > libMesh::TensorTools::div_from_grad ( const TypeNTensor< 3, Number > &  grad  ) 

Place holder needed for ExactSolution to compile. Will compute the divergence of a tensor given the gradient of that tensor.

Number libMesh::TensorTools::div_from_grad ( const TensorValue< Number > &  grad  ) 

Computes the divergence of a vector given the gradient of that vector.

Number libMesh::TensorTools::div_from_grad ( const VectorValue< Number > &   ) 

Dummy. Divgerence of a scalar not defined, but is needed for ExactSolution to compile.

Referenced by libMesh::ExactSolution::_compute_error().

template<unsigned int N, typename T , typename T2 >
CompareTypes<T, T2>::supertype libMesh::TensorTools::inner_product ( const TypeNTensor< N, T > &  a,
const TypeNTensor< N, T2 > &  b 
) [inline]

Definition at line 66 of file tensor_tools.h.

References libMesh::TypeNTensor< N, T >::contract().

00067     { return a.contract(b); }

template<typename T , typename T2 >
CompareTypes<T, T2>::supertype libMesh::TensorTools::inner_product ( const TypeTensor< T > &  a,
const TypeTensor< T2 > &  b 
) [inline]

Definition at line 60 of file tensor_tools.h.

References libMesh::TypeTensor< T >::contract().

00061     { return a.contract(b); }

template<typename T , typename T2 >
CompareTypes<T, T2>::supertype libMesh::TensorTools::inner_product ( const TypeVector< T > &  a,
const TypeVector< T2 > &  b 
) [inline]

Definition at line 54 of file tensor_tools.h.

00055     { return a * b; }

template<typename T , typename T2 >
boostcopy::enable_if_c< ScalarTraits<T>::value && ScalarTraits<T2>::value, typename CompareTypes<T, T2>::supertype>::type libMesh::TensorTools::inner_product ( const T &  a,
const T2 &  b 
) [inline]
template<typename T >
Real libMesh::TensorTools::norm_sq ( const VectorValue< T > &  a  )  [inline]

Definition at line 84 of file tensor_tools.h.

References libMesh::TypeVector< T >::size_sq().

00085     {return a.size_sq();}

template<typename T >
Real libMesh::TensorTools::norm_sq ( const TypeVector< T > &  a  )  [inline]

Definition at line 79 of file tensor_tools.h.

References libMesh::TypeVector< T >::size_sq().

00080     {return a.size_sq();}

template<typename T >
T libMesh::TensorTools::norm_sq ( std::complex< T >  a  )  [inline]

Definition at line 75 of file tensor_tools.h.

00075 { return std::norm(a); }


Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:49 UTC

Hosted By:
SourceForge.net Logo