Go to the documentation of this file.
12 #include "FEProblem.h"
13 #include "MooseMesh.h"
23 params.addClassDescription(
24 "Calculate stress divergence for a spherically symmetric 1D problem in polar coordinates.");
25 params.set<
unsigned int>(
"component") = 0;
26 params.set<
bool>(
"use_displaced_mesh") =
true;
31 const InputParameters & parameters)
35 mooseError(
"Invalid component for this 1D RSpherical problem.");
41 if (getBlockCoordSystem() != Moose::COORD_RSPHERICAL)
42 mooseError(
"The coordinate system in the Problem block must be set to RSPHERICAL for 1D "
43 "spherically symmetric geometries.");
49 return _grad_test[_i][_qp](0) *
_stress[_qp](0, 0) +
50 +(_test[_i][_qp] / _q_point[_qp](0)) *
_stress[_qp](1, 1) +
51 +(_test[_i][_qp] / _q_point[_qp](0)) *
_stress[_qp](2, 2);
63 for (
unsigned int i = 0; i <
_ndisp; ++i)
78 mooseAssert(ivar == 0 && jvar == 0,
79 "Invalid component in Jacobian Calculation");
84 test_r(0) = _grad_test[_i][_qp](0);
85 test_r(1) = _test[_i][_qp] / _q_point[_qp](0);
86 test_r(2) = _test[_i][_qp] / _q_point[_qp](0);
91 phi_r(0) = _grad_phi[_j][_qp](0);
92 phi_r(1) = _phi[_j][_qp] / _q_point[_qp](0);
93 phi_r(2) = _phi[_j][_qp] / _q_point[_qp](0);
StressDivergenceTensors mostly copies from StressDivergence.
const unsigned int _component
VectorValue< Real > RealGradient
std::vector< unsigned int > _disp_var
StressDivergenceRSphericalTensors is a modification of StressDivergenceTensors for 1D spherically sym...
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
registerMooseObject("TensorMechanicsApp", StressDivergenceRSphericalTensors)
static InputParameters validParams()
defineLegacyParams(StressDivergenceRSphericalTensors)
const MaterialProperty< RankFourTensor > & _Jacobian_mult
const MaterialProperty< RankTwoTensor > & _stress
Real calculateJacobian(unsigned int ivar, unsigned int jvar)
virtual void initialSetup() override
unsigned int _ndisp
Coupled displacement variables.
virtual Real computeQpResidual() override
const unsigned int _temp_var
virtual Real computeQpJacobian() override
StressDivergenceRSphericalTensors(const InputParameters ¶meters)