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 16 of file StressDivergenceRSpherical.h.

Constructor & Destructor Documentation

StressDivergenceRSpherical::StressDivergenceRSpherical ( const InputParameters &  parameters)

Definition at line 30 of file StressDivergenceRSpherical.C.

31  : Kernel(parameters),
32  _stress(getMaterialProperty<SymmTensor>("stress")),
33  _Jacobian_mult(getMaterialProperty<SymmElasticityTensor>("Jacobian_mult")),
34  _d_stress_dT(getMaterialProperty<SymmTensor>("d_stress_dT")),
35  _component(getParam<unsigned int>("component")),
36  _temp_coupled(isCoupled("temp")),
37  _temp_var(_temp_coupled ? coupled("temp") : 0)
38 {
39 }
const MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
const MaterialProperty< SymmTensor > & _stress
const MaterialProperty< SymmTensor > & _d_stress_dT
virtual StressDivergenceRSpherical::~StressDivergenceRSpherical ( )
inlinevirtual

Definition at line 20 of file StressDivergenceRSpherical.h.

20 {}

Member Function Documentation

Real StressDivergenceRSpherical::computeQpJacobian ( )
protectedvirtual

Definition at line 55 of file StressDivergenceRSpherical.C.

Referenced by ~StressDivergenceRSpherical().

56 {
57  Real val(1);
58  if (_component == 0)
59  {
60  SymmTensor test, phi;
61  test.xx() = _grad_test[_i][_qp](0);
62  test.yy() = _test[_i][_qp] / _q_point[_qp](0);
63  test.zz() = test.yy();
64  phi.xx() = _grad_phi[_j][_qp](0);
65  phi.yy() = _phi[_j][_qp] / _q_point[_qp](0);
66  phi.zz() = phi.yy();
67 
68  SymmTensor tmp(_Jacobian_mult[_qp] * phi);
69  val = test.doubleContraction(tmp);
70  }
71  else if (_i != _j)
72  {
73  val = 0;
74  }
75  return val;
76 }
const MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
Real yy() const
Definition: SymmTensor.h:130
Real xx() const
Definition: SymmTensor.h:129
Real zz() const
Definition: SymmTensor.h:131
Real doubleContraction(const SymmTensor &rhs) const
Definition: SymmTensor.h:257
Real StressDivergenceRSpherical::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 79 of file StressDivergenceRSpherical.C.

Referenced by ~StressDivergenceRSpherical().

80 {
81 
82  if (_temp_coupled && jvar == _temp_var)
83  {
84  SymmTensor test;
85  test.xx() = _grad_test[_i][_qp](0);
86  test.yy() = _test[_i][_qp] / _q_point[_qp](0);
87  test.zz() = test.yy();
88  return _d_stress_dT[_qp].doubleContraction(test) * _phi[_j][_qp];
89  }
90 
91  return 0;
92 }
Real yy() const
Definition: SymmTensor.h:130
Real xx() const
Definition: SymmTensor.h:129
const MaterialProperty< SymmTensor > & _d_stress_dT
Real zz() const
Definition: SymmTensor.h:131
Real StressDivergenceRSpherical::computeQpResidual ( )
protectedvirtual

Definition at line 42 of file StressDivergenceRSpherical.C.

Referenced by ~StressDivergenceRSpherical().

43 {
44  Real div(0);
45  if (_component == 0)
46  {
47  div = _grad_test[_i][_qp](0) * _stress[_qp].xx() +
48  _test[_i][_qp] / _q_point[_qp](0) * _stress[_qp].yy() +
49  _test[_i][_qp] / _q_point[_qp](0) * _stress[_qp].zz();
50  }
51  return div;
52 }
const MaterialProperty< SymmTensor > & _stress

Member Data Documentation

const unsigned int StressDivergenceRSpherical::_component
private

Definition at line 34 of file StressDivergenceRSpherical.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<SymmTensor>& StressDivergenceRSpherical::_d_stress_dT
protected

Definition at line 31 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<SymmElasticityTensor>& StressDivergenceRSpherical::_Jacobian_mult
protected

Definition at line 30 of file StressDivergenceRSpherical.h.

Referenced by computeQpJacobian().

const MaterialProperty<SymmTensor>& StressDivergenceRSpherical::_stress
protected

Definition at line 29 of file StressDivergenceRSpherical.h.

Referenced by computeQpResidual().

const bool StressDivergenceRSpherical::_temp_coupled
private

Definition at line 35 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().

const unsigned int StressDivergenceRSpherical::_temp_var
private

Definition at line 36 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().


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