15 #include "libmesh/elem.h" 21 const std::vector<std::tuple<dof_id_type, unsigned short int>> & primary_boundary_info,
22 const std::vector<std::tuple<dof_id_type, unsigned short int>> & secondary_boundary_info,
23 const Point & axis_point,
57 assembly.
reinit(secondary_elem, secondary_side_id);
67 const Elem * primary_elem =
_mesh.
elemPtr(primary_elem_id);
69 assembly.
reinit(primary_elem, primary_side_id);
76 const auto & JxW = assembly.
JxWFace();
80 area[qp] = JxW[qp] * coord[qp];
88 unsigned int patch_size = 1;
89 std::vector<std::size_t> return_index(patch_size);
90 kd_tree_qp.neighborSearch(secondary_qps[i], patch_size, return_index);
97 const std::vector<Real> &
std::vector< Point > _secondary_elem_points
List of secondary element points.
void initialize(const std::vector< std::tuple< dof_id_type, unsigned short int >> &primary_boundary_info, const std::vector< std::tuple< dof_id_type, unsigned short int >> &secondary_boundary_info, const Point &axis_point, const RealVectorValue &axis_direction)
Extracts mesh information and builds the mapping.
virtual Elem * elemPtr(const dof_id_type i)
Builds mapping between a 1D/2D boundary and a 3D boundary.
std::map< dof_id_type, std::vector< unsigned int > > _secondary_elem_id_to_qp_indices
Map of secondary element ID to vector of coupled quadrature points.
const MooseMesh & _mesh
Mesh.
std::vector< dof_id_type > _secondary_elem_ids
List of secondary element IDs.
std::vector< dof_id_type > _secondary_node_ids
List of secondary node IDs.
std::vector< unsigned short int > _secondary_side_ids
List of secondary side IDs (if any)
void reinit(const Elem *elem)
virtual Elem * queryElemPtr(const dof_id_type i)
void buildMapping()
Builds the mapping using the extracted mesh information.
const MooseArray< Real > & coordTransformation() const
unsigned int getMaxLeafSize() const
unsigned int _n_qp_primary
Number of quadrature points for faces on the primary boundary.
unsigned int _n_qp_secondary
Number of quadrature points for faces on the secondary boundary.
std::vector< Point > stdVector() const
std::vector< dof_id_type > _primary_node_ids
List of primary node IDs.
std::vector< Point > _primary_elem_points
List of primary element points.
std::map< dof_id_type, std::vector< Real > > _primary_elem_id_to_area
Map of primary element ID to area for each quadrature point.
void buildCoupledElemQpIndexMapSecondary(Assembly &assembly)
Builds the map used for getting the coupled quadrature point index.
const MooseArray< Real > & JxWFace() const
std::vector< Point > _primary_node_points
List of primary node points.
void setCurrentSubdomainID(SubdomainID i)
const std::vector< Real > & getPrimaryArea(const dof_id_type primary_elem_id) const
Gets the area for each quadrature point on a primary element.
const MooseArray< Point > & qPointsFace() const
dof_id_type getCoupledPrimaryElemID(const dof_id_type &secondary_elem_id) const
Gets the coupled primary element ID for a given secondary element ID.
std::vector< unsigned short int > _primary_side_ids
List of primary side IDs (if any)
void extractFromBoundaryInfo(const std::vector< std::tuple< dof_id_type, unsigned short int >> &boundary_info, std::vector< dof_id_type > &elem_ids, std::vector< unsigned short int > &side_ids, std::vector< Point > &side_points, std::vector< dof_id_type > &node_ids, std::vector< Point > &node_points) const
Extracts mesh information from boundary info.
std::vector< dof_id_type > _primary_elem_ids
List of primary element IDs.
processor_id_type processor_id() const
void checkAlignment(const Point &axis_point, const RealVectorValue &axis_direction)
Checks the alignment and sets _mesh_alignment accordingly.
auto index_range(const T &sizable)
std::vector< Point > _secondary_node_points
List of secondary node points.
MeshAlignment2D3D(const MooseMesh &mesh)
Constructor.