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 22 of file MaterialTensorAux.h.

Constructor & Destructor Documentation

◆ MaterialTensorAux()

MaterialTensorAux::MaterialTensorAux ( const InputParameters &  parameters)

Definition at line 28 of file MaterialTensorAux.C.

29  : AuxKernel(parameters),
30  _material_tensor_calculator(parameters),
31  _tensor(getMaterialProperty<SymmTensor>("tensor")),
32  _has_qp_select(isParamValid("qp_select")),
33  _qp_select(_has_qp_select ? getParam<unsigned int>("qp_select") : 0)
34 {
35 }
const MaterialProperty< SymmTensor > & _tensor
const unsigned int _qp_select
const bool _has_qp_select
MaterialTensorCalculator _material_tensor_calculator

◆ ~MaterialTensorAux()

virtual MaterialTensorAux::~MaterialTensorAux ( )
inlinevirtual

Definition at line 27 of file MaterialTensorAux.h.

27 {}

Member Function Documentation

◆ computeValue()

Real MaterialTensorAux::computeValue ( )
protectedvirtual

Definition at line 38 of file MaterialTensorAux.C.

39 {
40  RealVectorValue direction;
41  unsigned int qp_call;
42 
43  if (_has_qp_select)
44  {
45  if (_qp_select < _q_point.size())
46  qp_call = _qp_select;
47  else
48  {
49  Moose::err << "qp_select = " << _qp_select << std::endl;
50  Moose::err << "qp = " << _qp << std::endl;
51  Moose::err << "q_point.size() = " << _q_point.size() << std::endl;
52  mooseError("The parameter qp_select is not valid");
53  }
54  }
55  else
56  qp_call = _qp;
57 
58  Real value =
59  _material_tensor_calculator.getTensorQuantity(_tensor[qp_call], _q_point[qp_call], direction);
60  return value;
61 }
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

◆ _has_qp_select

const bool MaterialTensorAux::_has_qp_select
protected

Definition at line 35 of file MaterialTensorAux.h.

Referenced by computeValue().

◆ _material_tensor_calculator

MaterialTensorCalculator MaterialTensorAux::_material_tensor_calculator
protected

Definition at line 32 of file MaterialTensorAux.h.

Referenced by computeValue().

◆ _qp_select

const unsigned int MaterialTensorAux::_qp_select
protected

Definition at line 36 of file MaterialTensorAux.h.

Referenced by computeValue().

◆ _tensor

const MaterialProperty<SymmTensor>& MaterialTensorAux::_tensor
protected

Definition at line 33 of file MaterialTensorAux.h.

Referenced by computeValue().


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