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)
MooseMesh & _mesh
Reference to Moose mesh.
std::vector< dof_id_type > getNeighbors(dof_id_type node_id)
Function to return neighbor nodes indices for node node_id.
static InputParameters validParams()
GhostElemPD(const InputParameters ¶meters)
const unsigned int _nnodes
number of nodes for a edge element
PeridynamicsMesh & _pdmesh
Reference to peridynamics mesh.
registerMooseObject("PeridynamicsApp", GhostElemPD)
void ghostElements()
Function to ghost/copy element information from other processors.
Userobject class to ghost the required element for calculation on current processor from other proces...
virtual void addGhostedElem(dof_id_type elem_id)=0
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::vector< dof_id_type > getBonds(dof_id_type node_id)
Function to return the bond number connected with node node_id.
virtual void meshChanged() override
static InputParameters validParams()