www.mooseframework.org
Public Member Functions | Static 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 ()
 

Static Public Member Functions

static InputParameters validParams ()
 

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

Constructor & Destructor Documentation

◆ CylindricalRankTwoAux()

CylindricalRankTwoAux::CylindricalRankTwoAux ( const InputParameters &  parameters)

Definition at line 37 of file CylindricalRankTwoAux.C.

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

◆ ~CylindricalRankTwoAux()

virtual CylindricalRankTwoAux::~CylindricalRankTwoAux ( )
inlinevirtual

Definition at line 32 of file CylindricalRankTwoAux.h.

32 {}

Member Function Documentation

◆ computeValue()

Real CylindricalRankTwoAux::computeValue ( )
protectedvirtual

Definition at line 47 of file CylindricalRankTwoAux.C.

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

◆ validParams()

InputParameters CylindricalRankTwoAux::validParams ( )
static

Definition at line 17 of file CylindricalRankTwoAux.C.

18 {
19  InputParameters params = AuxKernel::validParams();
20  params.addClassDescription(
21  "Takes RankTwoTensor material and outputs component in cylindrical coordinates");
22  params.addRequiredParam<MaterialPropertyName>("rank_two_tensor",
23  "The rank two material tensor name");
24  params.addRequiredRangeCheckedParam<unsigned int>(
25  "index_i",
26  "index_i >= 0 & index_i <= 2",
27  "The index i of ij for the tensor to output (0, 1, 2)");
28  params.addRequiredRangeCheckedParam<unsigned int>(
29  "index_j",
30  "index_j >= 0 & index_j <= 2",
31  "The index j of ij for the tensor to output (0, 1, 2)");
32  params.addRequiredParam<Point>("center_point",
33  "Location of the center point of the cylindrical coordinates");
34  return params;
35 }

Member Data Documentation

◆ _center_point

const Point CylindricalRankTwoAux::_center_point
protected

Definition at line 39 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

◆ _i

const unsigned int CylindricalRankTwoAux::_i
protected

Definition at line 37 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

◆ _j

const unsigned int CylindricalRankTwoAux::_j
protected

Definition at line 38 of file CylindricalRankTwoAux.h.

Referenced by computeValue().

◆ _tensor

const MaterialProperty<RankTwoTensor>& CylindricalRankTwoAux::_tensor
protected

Definition at line 36 of file CylindricalRankTwoAux.h.

Referenced by computeValue().


The documentation for this class was generated from the following files:
CylindricalRankTwoAux::_tensor
const MaterialProperty< RankTwoTensor > & _tensor
Definition: CylindricalRankTwoAux.h:36
validParams
InputParameters validParams()
CylindricalRankTwoAux::_j
const unsigned int _j
Definition: CylindricalRankTwoAux.h:38
CylindricalRankTwoAux::_i
const unsigned int _i
Definition: CylindricalRankTwoAux.h:37
CylindricalRankTwoAux::_center_point
const Point _center_point
Definition: CylindricalRankTwoAux.h:39
RankTwoTensorTempl< Real >