13 #include "libmesh/quadrature.h"
19 template <ComputeStage compute_stage>
24 params.addClassDescription(
"Compute a small strain 1D spherical symmetry case.");
28 template <ComputeStage compute_stage>
30 const InputParameters & parameters)
35 template <ComputeStage compute_stage>
39 for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
41 _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
43 if (_q_point[_qp](0) != 0.0)
44 _total_strain[_qp](1, 1) = (*_disp[0])[_qp] / _q_point[_qp](0);
47 _total_strain[_qp](1, 1) = 0.0;
50 _total_strain[_qp](2, 2) = _total_strain[_qp](1, 1);
52 _mechanical_strain[_qp] = _total_strain[_qp];
55 for (
auto es : _eigenstrains)
56 _mechanical_strain[_qp] -= (*es)[_qp];