19 params.addClassDescription(
"Class for calculating residual and Jacobian for Bond-based "
20 "PeriDynamic mechanics formulation");
22 params.addRequiredParam<
unsigned int>(
24 "An integer corresponding to the variable this kernel acts on (0 for x, 1 for y, 2 for z)");
31 _bond_force_ij(getMaterialProperty<Real>(
"bond_force_ij")),
32 _bond_dfdU_ij(getMaterialProperty<Real>(
"bond_dfdU_ij")),
33 _bond_dfdT_ij(getMaterialProperty<Real>(
"bond_dfdT_ij")),
34 _component(getParam<unsigned int>(
"component"))
42 _local_re(1) = -_local_re(0);
52 for (_i = 0; _i < _test.size(); _i++)
53 for (_j = 0; _j < _phi.size(); _j++)
54 _local_ke(_i, _j) += (_i == _j ? 1 : -1) * diag * _bond_status_ij;
60 if (coupled_component == 3)
62 for (_i = 0; _i < _test.size(); _i++)
63 for (_j = 0; _j < _phi.size(); _j++)
72 for (_i = 0; _i < _test.size(); _i++)
73 for (_j = 0; _j < _phi.size(); _j++)
74 _local_ke(_i, _j) += (_i == _j ? 1 : -1) * val * _bond_status_ij;