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 24 of file CylindricalRankTwoAux.h.

Constructor & Destructor Documentation

CylindricalRankTwoAux::CylindricalRankTwoAux ( const InputParameters &  parameters)

Definition at line 31 of file CylindricalRankTwoAux.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  _center_point(getParam<Point>("center_point"))
37 {
38 }
const MaterialProperty< RankTwoTensor > & _tensor
virtual CylindricalRankTwoAux::~CylindricalRankTwoAux ( )
inlinevirtual

Definition at line 28 of file CylindricalRankTwoAux.h.

28 {}

Member Function Documentation

Real CylindricalRankTwoAux::computeValue ( )
protectedvirtual

Definition at line 41 of file CylindricalRankTwoAux.C.

Referenced by ~CylindricalRankTwoAux().

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

Member Data Documentation

const Point CylindricalRankTwoAux::_center_point
protected

Definition at line 35 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

const unsigned int CylindricalRankTwoAux::_i
protected

Definition at line 33 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

const unsigned int CylindricalRankTwoAux::_j
protected

Definition at line 34 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

const MaterialProperty<RankTwoTensor>& CylindricalRankTwoAux::_tensor
protected

Definition at line 32 of file CylindricalRankTwoAux.h.

Referenced by computeValue().


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