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

#include <MaterialTensorAux.h>

Inheritance diagram for MaterialTensorAux:
[legend]

Public Member Functions

 MaterialTensorAux (const InputParameters &parameters)
 
virtual ~MaterialTensorAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

MaterialTensorCalculator _material_tensor_calculator
 
const MaterialProperty< SymmTensor > & _tensor
 
const bool _has_qp_select
 
const unsigned int _qp_select
 

Detailed Description

Definition at line 20 of file MaterialTensorAux.h.

Constructor & Destructor Documentation

MaterialTensorAux::MaterialTensorAux ( const InputParameters &  parameters)

Definition at line 24 of file MaterialTensorAux.C.

25  : AuxKernel(parameters),
26  _material_tensor_calculator(parameters),
27  _tensor(getMaterialProperty<SymmTensor>("tensor")),
28  _has_qp_select(isParamValid("qp_select")),
29  _qp_select(_has_qp_select ? getParam<unsigned int>("qp_select") : 0)
30 {
31 }
const MaterialProperty< SymmTensor > & _tensor
const unsigned int _qp_select
const bool _has_qp_select
MaterialTensorCalculator _material_tensor_calculator
virtual MaterialTensorAux::~MaterialTensorAux ( )
inlinevirtual

Definition at line 25 of file MaterialTensorAux.h.

25 {}

Member Function Documentation

Real MaterialTensorAux::computeValue ( )
protectedvirtual

Definition at line 34 of file MaterialTensorAux.C.

Referenced by ~MaterialTensorAux().

35 {
36  RealVectorValue direction;
37  unsigned int qp_call;
38 
39  if (_has_qp_select)
40  {
41  if (_qp_select < _q_point.size())
42  qp_call = _qp_select;
43  else
44  {
45  Moose::err << "qp_select = " << _qp_select << std::endl;
46  Moose::err << "qp = " << _qp << std::endl;
47  Moose::err << "q_point.size() = " << _q_point.size() << std::endl;
48  mooseError("The parameter qp_select is not valid");
49  }
50  }
51  else
52  qp_call = _qp;
53 
54  Real value =
55  _material_tensor_calculator.getTensorQuantity(_tensor[qp_call], _q_point[qp_call], direction);
56  return value;
57 }
Real getTensorQuantity(const SymmTensor &tensor, const Point &curr_point, RealVectorValue &direction)
const MaterialProperty< SymmTensor > & _tensor
const unsigned int _qp_select
const bool _has_qp_select
MaterialTensorCalculator _material_tensor_calculator

Member Data Documentation

const bool MaterialTensorAux::_has_qp_select
protected

Definition at line 33 of file MaterialTensorAux.h.

Referenced by computeValue().

MaterialTensorCalculator MaterialTensorAux::_material_tensor_calculator
protected

Definition at line 30 of file MaterialTensorAux.h.

Referenced by computeValue().

const unsigned int MaterialTensorAux::_qp_select
protected

Definition at line 34 of file MaterialTensorAux.h.

Referenced by computeValue().

const MaterialProperty<SymmTensor>& MaterialTensorAux::_tensor
protected

Definition at line 31 of file MaterialTensorAux.h.

Referenced by computeValue().


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