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]) *
const Function & _pressure
Applied out-of-plane force parameters.
const MaterialProperty< RankFourTensor > & _Cijkl
Elasticity tensor.
virtual Elem * elemPtr(const dof_id_type i)
PeridynamicsMesh & _pdmesh
Reference to Peridynamic mesh.
UserObject class to compute the residual and diagonal Jacobian components for scalar out-of-plane str...
registerMooseObject("PeridynamicsApp", GeneralizedPlaneStrainUserObjectOSPD)
OutputData getElementalValue(const Elem *elem, unsigned int idx=0) const
static InputParameters validParams()
const unsigned int _nnodes
number of nodes for a edge element
MooseVariable * _bond_status_var
Bond status aux variable.
virtual void execute() override
Real getNodeVolume(dof_id_type node_id)
Function to return nodal volume for node node_id.
OutputData getNodalValue(const Node &node) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Point getNodeCoord(dof_id_type node_id)
Function to return coordinates for node node_id.
const Elem *const & _current_elem
Real _residual
Residual parameter.
GeneralizedPlaneStrainUserObjectOSPD(const InputParameters ¶meters)
virtual Real value(Real t, const Point &p) const
std::vector< dof_id_type > getBonds(dof_id_type node_id)
Function to return the bond number connected with node node_id.
static InputParameters validParams()
Real _jacobian
Jacobian parameter.
MooseVariable * _out_of_plane_stress_var
Variable for out-of-plane stress component.
Base userObject class to compute the residual and diagonal Jacobian components for scalar out-of-plan...