www.mooseframework.org
Classes | Functions
RankFourTensor.h File Reference

Go to the source code of this file.

Classes

class  RankFourTensor
 RankFourTensor is designed to handle any N-dimensional fourth order tensor, C. More...
 

Functions

template<typename T >
void mooseSetToZero (T &v)
 Helper function templates to set a variable to zero. More...
 
template<>
void mooseSetToZero< RankFourTensor > (RankFourTensor &v)
 Helper function template specialization to set an object to zero. More...
 
template<>
void dataStore (std::ostream &, RankFourTensor &, void *)
 
template<>
void dataLoad (std::istream &, RankFourTensor &, void *)
 
RankFourTensor operator* (Real a, const RankFourTensor &b)
 

Function Documentation

template<>
void dataLoad ( std::istream &  ,
RankFourTensor ,
void *   
)

Definition at line 40 of file RankFourTensor.C.

41 {
42  dataLoad(stream, rft._vals, context);
43 }
void dataLoad(std::istream &stream, RankFourTensor &rft, void *context)
template<>
void dataStore ( std::ostream &  ,
RankFourTensor ,
void *   
)

Definition at line 33 of file RankFourTensor.C.

34 {
35  dataStore(stream, rft._vals, context);
36 }
void dataStore(std::ostream &stream, RankFourTensor &rft, void *context)
template<typename T >
void mooseSetToZero ( T &  v)
inline

Helper function templates to set a variable to zero.

Specializations may have to be implemented (for examples see RankTwoTensor, RankFourTensor).

The default for non-pointer types is to assign zero. This should either do something sensible, or throw a compiler error. Otherwise the T type is designed badly.

Definition at line 269 of file MaterialPropertyInterface.h.

270 {
276  v = 0;
277 }
template<>
void mooseSetToZero< RankFourTensor > ( RankFourTensor v)

Helper function template specialization to set an object to zero.

Needed by DerivativeMaterialInterface

Definition at line 26 of file RankFourTensor.C.

27 {
28  v.zero();
29 }
void zero()
Zeros out the tensor.
RankFourTensor operator* ( Real  a,
const RankFourTensor b 
)
inline