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

Go to the source code of this file.

Classes

class  RankTwoTensor
 RankTwoTensor is designed to handle the Stress or Strain Tensor for a fully anisotropic material. More...
 

Functions

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

Function Documentation

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

Definition at line 43 of file RankTwoTensor.C.

44 {
45  dataLoad(stream, rtt._vals, context);
46 }
void dataLoad(std::istream &stream, RankTwoTensor &rtt, void *context)
Definition: RankTwoTensor.C:43
template<>
void dataStore ( std::ostream &  stream,
RankTwoTensor ,
void *   
)

Definition at line 36 of file RankTwoTensor.C.

37 {
38  dataStore(stream, rtt._vals, context);
39 }
void dataStore(std::ostream &stream, RankTwoTensor &rtt, void *context)
Definition: RankTwoTensor.C:36
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< RankTwoTensor > ( RankTwoTensor v)

Helper function template specialization to set an object to zero.

Needed by DerivativeMaterialInterface

Definition at line 29 of file RankTwoTensor.C.

30 {
31  v.zero();
32 }
void zero()
zeroes all _vals components
RankTwoTensor operator* ( Real  a,
const RankTwoTensor b 
)
inline

Definition at line 444 of file RankTwoTensor.h.

444 { return b * a; }