Flow123d
JB_transport-112d700
|
Go to the documentation of this file.
20 #ifndef INSPECT_ELEMENTS_ALGORITHM_H_
21 #define INSPECT_ELEMENTS_ALGORITHM_H_
41 typedef std::pair<unsigned int, IntersectionLocalBase*>
ILpair;
43 template<
unsigned int dimA,
unsigned int dimB>
97 template<
unsigned int dim>
176 template<
unsigned int ele_dim>
179 unsigned int ip_obj_idx);
185 unsigned int component_ele_idx,
186 std::queue<Prolongation>& queue);
286 #endif // INSPECT_ELEMENTS_ALGORITHM_H_
Implements algorithm for finding 2D-2D intersections.
Mesh * mesh
Auxiliary function that translates ElementAccessor<3> to Simplex<simplex_dim>.
InspectElementsAlgorithm12(Mesh *input_mesh)
BoundingBox mesh_3D_bb
Bounding box of all 3D elements.
Main class for computation of intersection of meshes of combined dimensions.
unsigned int n_intersections_
Counter for intersection among elements.
IntersectionAlgorithmBase(Mesh *mesh)
void compute_intersections_BIHtree(const BIHTree &bih)
Uses only BIHtree to find intersection candidates. (No prolongation).
bool intersection_exists(unsigned int component_ele_idx, unsigned int bulk_ele_idx)
A hard way to find whether the intersection of two elements has already been computed,...
void compute_bounding_boxes()
Computes bounding boxes of all elements. Fills elements_bb and mesh_3D_bb.
Class for O(log N) lookup for intersections with a set of bounding boxes.
std::vector< unsigned int > last_slave_for_3D_elements
void compute_intersections(const BIHTree &bih)
Uses BIHtree to find the initial candidate of a component and then prolongates the component interset...
void compute_single_intersection(const ElementAccessor< 3 > &eleA, const ElementAccessor< 3 > &eleB, std::vector< IntersectionLocal< 2, 2 >> &storage)
Computes fundamental intersection of two 2D elements.
InspectElementsAlgorithm22(Mesh *input_mesh)
Class implements algorithm for dim-dimensional intersections with 3D elements.
unsigned int component_counter_
Bounding box in 3d ambient space.
void assert_same_intersection(unsigned int comp_ele_idx, unsigned int bulk_ele_idx)
std::vector< unsigned int > component_idx_
~InspectElementsAlgorithm()
std::queue< Prolongation > bulk_queue_
Prolongation queue in the bulk mesh.
InspectElementsAlgorithm(Mesh *_mesh)
void compute_intersections(std::vector< std::vector< ILpair >> &intersection_map, std::vector< IntersectionLocal< 2, 2 >> &storage)
Runs the core algorithm for computing 2D-2D intersection in 3D.
Implements algorithm for finding 1D-2D intersections.
unsigned int create_prolongation(unsigned int bulk_ele_idx, unsigned int component_ele_idx, std::queue< Prolongation > &queue)
void create_component_numbering()
Creates numbering of the 2D components and fills component_idx_ vector.
std::vector< unsigned int > get_element_neighbors(const ElementAccessor< 3 > &ele, unsigned int ip_dim, unsigned int ip_obj_idx)
Internal auxiliary class represents an intersection point of simplex<N> and simplex<M>.
unsigned int dictionary_idx
void compute_intersections_1(const BIHTree &bih)
Runs the algorithm (1): compute 1D-2D intersection in 2D plane. BIH is used to find intersection cand...
std::vector< bool > closed_elements
Auxiliary structure for prolongation process.
void prolongate(const Prolongation &pr)
Computes the intersection for a candidate in a queue and calls prolongation_decide again.
void prolongation_decide(const ElementAccessor< 3 > &comp_ele, const ElementAccessor< 3 > &bulk_ele, IntersectionAux< dim, 3 > is)
void compute_intersections_BB()
const unsigned int undefined_elm_idx_
Internal auxiliary class representing intersection object of simplex<dimA> and simplex<dimB>.
std::pair< unsigned int, IntersectionLocalBase * > ILpair
First = element index, Second = pointer to intersection object.
unsigned int component_elm_idx
Class represents intersection of two elements.
std::vector< IntersectionAux< 1, 2 > > intersectionaux_storage12_
Stores temporarily 1D-2D intersections.
void compute_intersections_2(const BIHTree &bih)
Runs the algorithm (2): compute 1D-2D intersection in 3D ambient space BIH is used to find intersecti...
std::vector< IntersectionAux< 2, 2 > > intersectionaux_storage22_
Stores temporarily 2D-2D intersections.
std::vector< BoundingBox > elements_bb
Elements bounding boxes.
void compute_intersections_3(std::vector< std::vector< ILpair >> &intersection_map, std::vector< IntersectionLocal< 1, 2 >> &storage)
Runs the algorithm (3): compute 1D-2D intersection inside 3D mesh. It directly fills the intersection...
const unsigned int unset_comp
bool compute_initial_CI(const ElementAccessor< 3 > &comp_ele, const ElementAccessor< 3 > &bulk_ele)
Computes the first intersection, from which we then prolongate.
std::queue< Prolongation > component_queue_
Prolongation queue in the component mesh.
std::vector< std::vector< IntersectionAux< dim, 3 > > > intersection_list_
Resulting vector of intersections.
Common base for intersection object.