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

#include <CylindricalRankTwoAux.h>

Inheritance diagram for CylindricalRankTwoAux:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const MaterialProperty< RankTwoTensor > & _tensor
 
const unsigned int _i
 
const unsigned int _j
 
const Point _center_point
 

Detailed Description

Definition at line 27 of file CylindricalRankTwoAux.h.

Constructor & Destructor Documentation

◆ CylindricalRankTwoAux()

CylindricalRankTwoAux::CylindricalRankTwoAux ( const InputParameters &  parameters)

Definition at line 36 of file CylindricalRankTwoAux.C.

37  : AuxKernel(parameters),
38  _tensor(getMaterialProperty<RankTwoTensor>("rank_two_tensor")),
39  _i(getParam<unsigned int>("index_i")),
40  _j(getParam<unsigned int>("index_j")),
41  _center_point(getParam<Point>("center_point"))
42 {
43 }
const MaterialProperty< RankTwoTensor > & _tensor

◆ ~CylindricalRankTwoAux()

virtual CylindricalRankTwoAux::~CylindricalRankTwoAux ( )
inlinevirtual

Definition at line 31 of file CylindricalRankTwoAux.h.

31 {}

Member Function Documentation

◆ computeValue()

Real CylindricalRankTwoAux::computeValue ( )
protectedvirtual

Definition at line 46 of file CylindricalRankTwoAux.C.

47 {
48  Point loc_from_center = _q_point[_qp] - _center_point;
49 
50  Real theta = std::atan2(loc_from_center(1), loc_from_center(0));
51  RankTwoTensor R;
52  R(0, 0) = std::cos(theta);
53  R(0, 1) = std::sin(theta);
54  R(1, 0) = -std::sin(theta);
55  R(1, 1) = std::cos(theta);
56 
57  RankTwoTensor rotated_tensor = R * _tensor[_qp] * R.transpose();
58 
59  return rotated_tensor(_i, _j);
60 }
const MaterialProperty< RankTwoTensor > & _tensor

Member Data Documentation

◆ _center_point

const Point CylindricalRankTwoAux::_center_point
protected

Definition at line 38 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

◆ _i

const unsigned int CylindricalRankTwoAux::_i
protected

Definition at line 36 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

◆ _j

const unsigned int CylindricalRankTwoAux::_j
protected

Definition at line 37 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

◆ _tensor

const MaterialProperty<RankTwoTensor>& CylindricalRankTwoAux::_tensor
protected

Definition at line 35 of file CylindricalRankTwoAux.h.

Referenced by computeValue().


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