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 18 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  mooseDeprecated(name(), ": StressDivergenceRSpherical is deprecated. \
53  The solid_mechanics module will be removed from MOOSE on July 31, 2020. \
54  Please update your input files to utilize the tensor_mechanics equivalents of \
55  models based on solid_mechanics. A detailed migration guide that was developed \
56  for BISON, but which is generally applicable to any MOOSE model is available at: \
57  https://mooseframework.org/bison/tutorials/mechanics_conversion/overview.html");
58 }

◆ ~StressDivergenceRSpherical()

virtual StressDivergenceRSpherical::~StressDivergenceRSpherical ( )
inlinevirtual

Definition at line 22 of file StressDivergenceRSpherical.h.

22 {}

Member Function Documentation

◆ computeQpJacobian()

Real StressDivergenceRSpherical::computeQpJacobian ( )
protectedvirtual

Definition at line 74 of file StressDivergenceRSpherical.C.

75 {
76  Real val(1);
77  if (_component == 0)
78  {
79  SymmTensor test, phi;
80  test.xx() = _grad_test[_i][_qp](0);
81  test.yy() = _test[_i][_qp] / _q_point[_qp](0);
82  test.zz() = test.yy();
83  phi.xx() = _grad_phi[_j][_qp](0);
84  phi.yy() = _phi[_j][_qp] / _q_point[_qp](0);
85  phi.zz() = phi.yy();
86 
87  SymmTensor tmp(_Jacobian_mult[_qp] * phi);
88  val = test.doubleContraction(tmp);
89  }
90  else if (_i != _j)
91  {
92  val = 0;
93  }
94  return val;
95 }

◆ computeQpOffDiagJacobian()

Real StressDivergenceRSpherical::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 98 of file StressDivergenceRSpherical.C.

99 {
100 
101  if (_temp_coupled && jvar == _temp_var)
102  {
103  SymmTensor test;
104  test.xx() = _grad_test[_i][_qp](0);
105  test.yy() = _test[_i][_qp] / _q_point[_qp](0);
106  test.zz() = test.yy();
107  return _d_stress_dT[_qp].doubleContraction(test) * _phi[_j][_qp];
108  }
109 
110  return 0;
111 }

◆ computeQpResidual()

Real StressDivergenceRSpherical::computeQpResidual ( )
protectedvirtual

Definition at line 61 of file StressDivergenceRSpherical.C.

62 {
63  Real div(0);
64  if (_component == 0)
65  {
66  div = _grad_test[_i][_qp](0) * _stress[_qp].xx() +
67  _test[_i][_qp] / _q_point[_qp](0) * _stress[_qp].yy() +
68  _test[_i][_qp] / _q_point[_qp](0) * _stress[_qp].zz();
69  }
70  return div;
71 }

Member Data Documentation

◆ _component

const unsigned int StressDivergenceRSpherical::_component
private

Definition at line 36 of file StressDivergenceRSpherical.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _d_stress_dT

const MaterialProperty<SymmTensor>& StressDivergenceRSpherical::_d_stress_dT
protected

Definition at line 33 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().

◆ _Jacobian_mult

const MaterialProperty<SymmElasticityTensor>& StressDivergenceRSpherical::_Jacobian_mult
protected

Definition at line 32 of file StressDivergenceRSpherical.h.

Referenced by computeQpJacobian().

◆ _stress

const MaterialProperty<SymmTensor>& StressDivergenceRSpherical::_stress
protected

Definition at line 31 of file StressDivergenceRSpherical.h.

Referenced by computeQpResidual().

◆ _temp_coupled

const bool StressDivergenceRSpherical::_temp_coupled
private

Definition at line 37 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().

◆ _temp_var

const unsigned int StressDivergenceRSpherical::_temp_var
private

Definition at line 38 of file StressDivergenceRSpherical.h.

Referenced by computeQpOffDiagJacobian().


The documentation for this class was generated from the following files:
SymmTensor::xx
Real xx() const
Definition: SymmTensor.h:131
SymmTensor::zz
Real zz() const
Definition: SymmTensor.h:133
StressDivergenceRSpherical::_d_stress_dT
const MaterialProperty< SymmTensor > & _d_stress_dT
Definition: StressDivergenceRSpherical.h:33
SymmTensor::doubleContraction
Real doubleContraction(const SymmTensor &rhs) const
Definition: SymmTensor.h:259
StressDivergenceRSpherical::_temp_var
const unsigned int _temp_var
Definition: StressDivergenceRSpherical.h:38
StressDivergenceRSpherical::_temp_coupled
const bool _temp_coupled
Definition: StressDivergenceRSpherical.h:37
StressDivergenceRSpherical::_Jacobian_mult
const MaterialProperty< SymmElasticityTensor > & _Jacobian_mult
Definition: StressDivergenceRSpherical.h:32
name
const std::string name
Definition: Setup.h:21
SymmTensor
Definition: SymmTensor.h:21
StressDivergenceRSpherical::_stress
const MaterialProperty< SymmTensor > & _stress
Definition: StressDivergenceRSpherical.h:31
SymmTensor::yy
Real yy() const
Definition: SymmTensor.h:132
StressDivergenceRSpherical::_component
const unsigned int _component
Definition: StressDivergenceRSpherical.h:36