20 params.
addClassDescription(
"Class for calculating the scalar residual and diagonal Jacobian "
21 "entry of generalized plane strain in OSPD formulation");
24 "Auxiliary variable name for out-of-plane stress in GPS simulation");
32 _out_of_plane_stress_var(getVar(
"out_of_plane_stress_variable", 0))
55 std::vector<unsigned int> active_neighbors(
_nnodes, 0);
56 for (
unsigned int nd = 0; nd <
_nnodes; nd++)
59 for (
unsigned int nb = 0; nb < bonds.size(); ++nb)
61 active_neighbors[nd]++;
63 if (active_neighbors[nd] == 0)
64 active_neighbors[nd] = 1;
72 nv_i / active_neighbors[0] * bond_status;
75 nv_j / active_neighbors[1] * bond_status;
79 _Cijkl[0](2, 2, 2, 2) * nv_j / active_neighbors[1]) *
registerMooseObject("PeridynamicsApp", GeneralizedPlaneStrainUserObjectOSPD)
PeridynamicsMesh & _pdmesh
Reference to Peridynamic mesh.
MooseVariable * _bond_status_var
Bond status aux variable.
const unsigned int _nnodes
number of nodes for a edge element
const Elem *const & _current_elem
virtual Real value(Real t, const Point &p) const
Base userObject class to compute the residual and diagonal Jacobian components for scalar out-of-plan...
Real _jacobian
Jacobian parameter.
const Function & _pressure
Applied out-of-plane force parameters.
static InputParameters validParams()
Real _residual
Residual parameter.
const MaterialProperty< RankFourTensor > & _Cijkl
Elasticity tensor.
UserObject class to compute the residual and diagonal Jacobian components for scalar out-of-plane str...
static InputParameters validParams()
MooseVariable * _out_of_plane_stress_var
Variable for out-of-plane stress component.
virtual void execute() override
GeneralizedPlaneStrainUserObjectOSPD(const InputParameters ¶meters)
virtual Elem * elemPtr(const dof_id_type i)
DofValue getElementalValue(const Elem *elem, unsigned int idx=0) const
DofValue getNodalValue(const Node &node) const
Real getNodeVolume(dof_id_type node_id)
Function to return nodal volume for node node_id.
Point getNodeCoord(dof_id_type node_id)
Function to return coordinates for node node_id.
std::vector< dof_id_type > getBonds(dof_id_type node_id)
Function to return the bond number connected with node node_id.