70 void updatePatch(std::vector<dof_id_type> & secondary_nodes);
std::map< dof_id_type, std::vector< dof_id_type > > _neighbor_nodes
Real _max_patch_percentage
void findNodes()
This is the main method that is going to start the search.
A class for creating restricted objects.
std::vector< dof_id_type > & secondaryNodes()
Returns the list of secondary nodes this Locator is tracking.
StoredRange< std::vector< dof_id_type >::iterator, dof_id_type > NodeIdRange
Finds the nearest node to each node in boundary1 to each node in boundary2 and the other way around...
void updatePatch(std::vector< dof_id_type > &secondary_nodes)
Reconstructs the KDtree, updates the patch for the nodes in secondary_nodes, and updates the closest ...
Real distance(dof_id_type node_id)
Valid to call this after findNodes() has been called to get the distance to the nearest node...
void reinit()
Completely redo the search from scratch.
NearestNodeLocator(SubProblem &subproblem, MooseMesh &mesh, BoundaryID boundary1, BoundaryID boundary2)
NodeIdRange & secondaryNodeRange()
Returns the NodeIdRange of secondary nodes to be used for calling threaded functions operating on the...
Data structure used to hold nearest node info.
std::map< dof_id_type, NearestNodeInfo > _nearest_node_info
const Node * _nearest_node
std::unique_ptr< NodeIdRange > _secondary_node_range
std::vector< dof_id_type > _secondary_nodes
boundary_id_type BoundaryID
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
const Moose::PatchUpdateType _patch_update_strategy
void updateGhostedElems()
Updates the ghosted elements at the start of the time step for iterion patch update strategy...
Interface for objects interacting with the PerfGraph.
static const unsigned int _patch_size
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
const Node * nearestNode(dof_id_type node_id)
Valid to call this after findNodes() has been called to get a pointer to the nearest node...
PatchUpdateType
Type of patch update strategy for modeling node-face constraints or contact.
std::vector< dof_id_type > _new_ghosted_elems