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

#include <StressDivergenceRSpherical.h>

Inheritance diagram for StressDivergenceRSpherical:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Protected Attributes

const MaterialProperty< SymmTensor > & _stress
 
const MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
 
const MaterialProperty< SymmTensor > & _d_stress_dT
 

Private Attributes

const unsigned int _component
 
const bool _temp_coupled
 
const unsigned int _temp_var
 

Detailed Description

Definition at line 19 of file StressDivergenceRSpherical.h.

Constructor & Destructor Documentation

◆ StressDivergenceRSpherical()

StressDivergenceRSpherical::StressDivergenceRSpherical ( const InputParameters &  parameters)

Definition at line 43 of file StressDivergenceRSpherical.C.

44  : Kernel(parameters),
45  _stress(getMaterialProperty<SymmTensor>("stress")),
46  _Jacobian_mult(getMaterialProperty<SymmElasticityTensor>("Jacobian_mult")),
47  _d_stress_dT(getMaterialProperty<SymmTensor>("d_stress_dT")),
48  _component(getParam<unsigned int>("component")),
49  _temp_coupled(isCoupled("temp")),
50  _temp_var(_temp_coupled ? coupled("temp") : 0)
51 {
52 }
const MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
const MaterialProperty< SymmTensor > & _stress
const MaterialProperty< SymmTensor > & _d_stress_dT

◆ ~StressDivergenceRSpherical()

virtual StressDivergenceRSpherical::~StressDivergenceRSpherical ( )
inlinevirtual

Definition at line 23 of file StressDivergenceRSpherical.h.

23 {}

Member Function Documentation

◆ computeQpJacobian()

Real StressDivergenceRSpherical::computeQpJacobian ( )
protectedvirtual

Definition at line 68 of file StressDivergenceRSpherical.C.

69 {
70  Real val(1);
71  if (_component == 0)
72  {
73  SymmTensor test, phi;
74  test.xx() = _grad_test[_i][_qp](0);
75  test.yy() = _test[_i][_qp] / _q_point[_qp](0);
76  test.zz() = test.yy();
77  phi.xx() = _grad_phi[_j][_qp](0);
78  phi.yy() = _phi[_j][_qp] / _q_point[_qp](0);
79  phi.zz() = phi.yy();
80 
81  SymmTensor tmp(_Jacobian_mult[_qp] * phi);
82  val = test.doubleContraction(tmp);
83  }
84  else if (_i != _j)
85  {
86  val = 0;
87  }
88  return val;
89 }
const MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
Real yy() const
Definition: SymmTensor.h:133
Real xx() const
Definition: SymmTensor.h:132
Real doubleContraction(const SymmTensor &rhs) const
Definition: SymmTensor.h:260
Real zz() const
Definition: SymmTensor.h:134

◆ computeQpOffDiagJacobian()

Real StressDivergenceRSpherical::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 92 of file StressDivergenceRSpherical.C.

93 {
94 
95  if (_temp_coupled && jvar == _temp_var)
96  {
97  SymmTensor test;
98  test.xx() = _grad_test[_i][_qp](0);
99  test.yy() = _test[_i][_qp] / _q_point[_qp](0);
100  test.zz() = test.yy();
101  return _d_stress_dT[_qp].doubleContraction(test) * _phi[_j][_qp];
102  }
103 
104  return 0;
105 }
const MaterialProperty< SymmTensor > & _d_stress_dT
Real yy() const
Definition: SymmTensor.h:133
Real xx() const
Definition: SymmTensor.h:132
Real zz() const
Definition: SymmTensor.h:134

◆ computeQpResidual()

Real StressDivergenceRSpherical::computeQpResidual ( )
protectedvirtual

Definition at line 55 of file StressDivergenceRSpherical.C.

56 {
57  Real div(0);
58  if (_component == 0)
59  {
60  div = _grad_test[_i][_qp](0) * _stress[_qp].xx() +
61  _test[_i][_qp] / _q_point[_qp](0) * _stress[_qp].yy() +
62  _test[_i][_qp] / _q_point[_qp](0) * _stress[_qp].zz();
63  }
64  return div;
65 }
const MaterialProperty< SymmTensor > & _stress

Member Data Documentation

◆ _component

const unsigned int StressDivergenceRSpherical::_component
private

Definition at line 37 of file StressDivergenceRSpherical.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _d_stress_dT

const MaterialProperty<SymmTensor>& StressDivergenceRSpherical::_d_stress_dT
protected

Definition at line 34 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().

◆ _Jacobian_mult

const MaterialProperty<SymmElasticityTensor>& StressDivergenceRSpherical::_Jacobian_mult
protected

Definition at line 33 of file StressDivergenceRSpherical.h.

Referenced by computeQpJacobian().

◆ _stress

const MaterialProperty<SymmTensor>& StressDivergenceRSpherical::_stress
protected

Definition at line 32 of file StressDivergenceRSpherical.h.

Referenced by computeQpResidual().

◆ _temp_coupled

const bool StressDivergenceRSpherical::_temp_coupled
private

Definition at line 38 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().

◆ _temp_var

const unsigned int StressDivergenceRSpherical::_temp_var
private

Definition at line 39 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().


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