40 const MeshBase::const_element_iterator end_elem =
_mesh.
getMesh().active_local_elements_end();
41 for (MeshBase::const_element_iterator elem =
_mesh.
getMesh().active_local_elements_begin();
44 if ((*elem)->type() == 0)
45 for (
unsigned int i = 0; i <
_nnodes; ++i)
48 for (
unsigned int j = 0; j < neighbors.size(); ++j)
registerMooseObject("PeridynamicsApp", GhostElemPD)
PeridynamicsMesh & _pdmesh
Reference to peridynamics mesh.
const unsigned int _nnodes
number of nodes for a edge element
static InputParameters validParams()
MooseMesh & _mesh
Reference to Moose mesh.
Userobject class to ghost the required element for calculation on current processor from other proces...
virtual void meshChanged() override
GhostElemPD(const InputParameters ¶meters)
void ghostElements()
Function to ghost/copy element information from other processors.
static InputParameters validParams()
std::vector< dof_id_type > getBonds(dof_id_type node_id)
Function to return the bond number connected with node node_id.
std::vector< dof_id_type > getNeighbors(dof_id_type node_id)
Function to return neighbor nodes indices for node node_id.
virtual void addGhostedElem(dof_id_type elem_id)=0