www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
RankTwoAux Class Reference

#include <RankTwoAux.h>

Inheritance diagram for RankTwoAux:
[legend]

Public Member Functions

 RankTwoAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Private Attributes

const MaterialProperty< RankTwoTensor > & _tensor
 
const unsigned int _i
 
const unsigned int _j
 
const bool _has_selected_qp
 whether or not selected_qp has been set More...
 
const unsigned int _selected_qp
 The std::vector will be evaluated at this quadpoint only if defined. More...
 

Detailed Description

Definition at line 24 of file RankTwoAux.h.

Constructor & Destructor Documentation

RankTwoAux::RankTwoAux ( const InputParameters &  parameters)

Definition at line 31 of file RankTwoAux.C.

32  : AuxKernel(parameters),
33  _tensor(getMaterialProperty<RankTwoTensor>("rank_two_tensor")),
34  _i(getParam<unsigned int>("index_i")),
35  _j(getParam<unsigned int>("index_j")),
36  _has_selected_qp(isParamValid("selected_qp")),
37  _selected_qp(_has_selected_qp ? getParam<unsigned int>("selected_qp") : 0)
38 {
39 }
const MaterialProperty< RankTwoTensor > & _tensor
Definition: RankTwoAux.h:33
const unsigned int _selected_qp
The std::vector will be evaluated at this quadpoint only if defined.
Definition: RankTwoAux.h:41
const unsigned int _j
Definition: RankTwoAux.h:35
const unsigned int _i
Definition: RankTwoAux.h:34
const bool _has_selected_qp
whether or not selected_qp has been set
Definition: RankTwoAux.h:38

Member Function Documentation

Real RankTwoAux::computeValue ( )
protectedvirtual

Definition at line 42 of file RankTwoAux.C.

43 {
44  unsigned int qp = _qp;
45  if (_has_selected_qp)
46  {
47  if (_selected_qp >= _q_point.size())
48  {
49  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
50  mooseError("RankTwoAux. selected_qp specified as ",
52  " but there are only ",
53  _q_point.size(),
54  " quadpoints in the element");
55  }
56  qp = _selected_qp;
57  }
58 
60 }
const MaterialProperty< RankTwoTensor > & _tensor
Definition: RankTwoAux.h:33
const unsigned int _selected_qp
The std::vector will be evaluated at this quadpoint only if defined.
Definition: RankTwoAux.h:41
Real component(const RankTwoTensor &r2tensor, unsigned int i, unsigned int j)
const unsigned int _j
Definition: RankTwoAux.h:35
const unsigned int _i
Definition: RankTwoAux.h:34
const bool _has_selected_qp
whether or not selected_qp has been set
Definition: RankTwoAux.h:38

Member Data Documentation

const bool RankTwoAux::_has_selected_qp
private

whether or not selected_qp has been set

Definition at line 38 of file RankTwoAux.h.

Referenced by computeValue().

const unsigned int RankTwoAux::_i
private

Definition at line 34 of file RankTwoAux.h.

Referenced by computeValue().

const unsigned int RankTwoAux::_j
private

Definition at line 35 of file RankTwoAux.h.

Referenced by computeValue().

const unsigned int RankTwoAux::_selected_qp
private

The std::vector will be evaluated at this quadpoint only if defined.

Definition at line 41 of file RankTwoAux.h.

Referenced by computeValue().

const MaterialProperty<RankTwoTensor>& RankTwoAux::_tensor
private

Definition at line 33 of file RankTwoAux.h.

Referenced by computeValue().


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