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 27 of file RankTwoAux.h.

Constructor & Destructor Documentation

◆ RankTwoAux()

RankTwoAux::RankTwoAux ( const InputParameters &  parameters)

Definition at line 36 of file RankTwoAux.C.

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

Member Function Documentation

◆ computeValue()

Real RankTwoAux::computeValue ( )
protectedvirtual

Definition at line 47 of file RankTwoAux.C.

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

Member Data Documentation

◆ _has_selected_qp

const bool RankTwoAux::_has_selected_qp
private

whether or not selected_qp has been set

Definition at line 41 of file RankTwoAux.h.

Referenced by computeValue().

◆ _i

const unsigned int RankTwoAux::_i
private

Definition at line 37 of file RankTwoAux.h.

Referenced by computeValue().

◆ _j

const unsigned int RankTwoAux::_j
private

Definition at line 38 of file RankTwoAux.h.

Referenced by computeValue().

◆ _selected_qp

const unsigned int RankTwoAux::_selected_qp
private

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

Definition at line 44 of file RankTwoAux.h.

Referenced by computeValue().

◆ _tensor

const MaterialProperty<RankTwoTensor>& RankTwoAux::_tensor
private

Definition at line 36 of file RankTwoAux.h.

Referenced by computeValue().


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