Flow123d  release_2.2.0-914-gf1a3a4f
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
MixedMeshIntersections Class Reference

Main class for computation of intersection of meshes of combined dimensions. More...

#include <mixed_mesh_intersections.hh>

Collaboration diagram for MixedMeshIntersections:
Collaboration graph
[legend]

Public Types

typedef std::pair< unsigned int, IntersectionLocalBase * > ILpair
 

Public Member Functions

 MixedMeshIntersections (Mesh *mesh)
 
 ~MixedMeshIntersections ()
 
void compute_intersections (IntersectionType d=IntersectionType::all)
 
unsigned int number_of_components (unsigned int dim)
 
double measure_13 ()
 Computes the size of the intersection in dim dimenstions. More...
 
double measure_23 ()
 
double measure_22 ()
 
void print_mesh_to_file_13 (std::string name)
 Generates a mesh file of the given name, including the intersection. More...
 
void print_mesh_to_file_23 (std::string name)
 

Public Attributes

std::vector< IntersectionLocal< 1, 3 > > intersection_storage13_
 Stores 1D-3D intersections. More...
 
std::vector< IntersectionLocal< 2, 3 > > intersection_storage23_
 Stores 2D-3D intersections. More...
 
std::vector< IntersectionLocal< 2, 2 > > intersection_storage22_
 Stores 2D-2D intersections. More...
 
std::vector< IntersectionLocal< 1, 2 > > intersection_storage12_
 Stores 1D-2D intersections. More...
 
std::vector< std::vector< ILpair > > element_intersections_
 

Private Member Functions

template<uint dim_A, uint dim_B>
void store_intersection (std::vector< IntersectionLocal< dim_A, dim_B >> &storage, IntersectionAux< dim_A, dim_B > &isec_aux)
 
template<uint dim_A, uint dim_B>
void append_to_index (std::vector< IntersectionLocal< dim_A, dim_B >> &storage)
 
template<unsigned int dim>
void compute_intersections (InspectElementsAlgorithm< dim > &iea, std::vector< IntersectionLocal< dim, 3 >> &storage)
 Auxiliary function that calls InspectElementsAlgorithm<dim>. More...
 
void compute_intersections_22 (std::vector< IntersectionLocal< 2, 2 >> &storage)
 
void compute_intersections_12 (std::vector< IntersectionLocal< 1, 2 >> &storage)
 
void compute_intersections_12_2 (std::vector< IntersectionLocal< 1, 2 >> &storage)
 
void compute_intersections_12_ngh_plane (std::vector< IntersectionLocal< 1, 2 > > &storage)
 

Private Attributes

Meshmesh
 Mesh pointer. More...
 
InspectElementsAlgorithm< 1 > algorithm13_
 
InspectElementsAlgorithm< 2 > algorithm23_
 
InspectElementsAlgorithm22 algorithm22_
 
InspectElementsAlgorithm12 algorithm12_
 

Detailed Description

Main class for computation of intersection of meshes of combined dimensions.

Controls different algorithms for computation of intersection. Computes intersection in the order:

When we are on an element, we use element_intersections_ to get to all its intersections.

Definition at line 66 of file mixed_mesh_intersections.hh.

Member Typedef Documentation

typedef std::pair<unsigned int, IntersectionLocalBase *> MixedMeshIntersections::ILpair

For every element, stores list of intersections with this element.

intersection_map_[element index][i].first = other element index intersection_map_[element index][i].second = index pointer to the intersection object

Definition at line 84 of file mixed_mesh_intersections.hh.

Constructor & Destructor Documentation

MixedMeshIntersections::MixedMeshIntersections ( Mesh mesh)

Definition at line 28 of file mixed_mesh_intersections.cc.

MixedMeshIntersections::~MixedMeshIntersections ( )

Definition at line 32 of file mixed_mesh_intersections.cc.

Member Function Documentation

template<uint dim_A, uint dim_B>
void MixedMeshIntersections::append_to_index ( std::vector< IntersectionLocal< dim_A, dim_B >> &  storage)
private

Definition at line 135 of file mixed_mesh_intersections.cc.

Here is the caller graph for this function:

void MixedMeshIntersections::compute_intersections ( IntersectionType  d = IntersectionType::all)

Calls InspectElementsAlgorithm<dim>, computes intersections, move them to storage, create the map and throw away the rest.

Definition at line 368 of file mixed_mesh_intersections.cc.

template<unsigned int dim>
void MixedMeshIntersections::compute_intersections ( InspectElementsAlgorithm< dim > &  iea,
std::vector< IntersectionLocal< dim, 3 >> &  storage 
)
private

Auxiliary function that calls InspectElementsAlgorithm<dim>.

Definition at line 161 of file mixed_mesh_intersections.cc.

void MixedMeshIntersections::compute_intersections_12 ( std::vector< IntersectionLocal< 1, 2 >> &  storage)
private

Definition at line 248 of file mixed_mesh_intersections.cc.

Here is the caller graph for this function:

void MixedMeshIntersections::compute_intersections_12_2 ( std::vector< IntersectionLocal< 1, 2 >> &  storage)
private

Definition at line 291 of file mixed_mesh_intersections.cc.

Here is the caller graph for this function:

void MixedMeshIntersections::compute_intersections_12_ngh_plane ( std::vector< IntersectionLocal< 1, 2 > > &  storage)
private

Definition at line 316 of file mixed_mesh_intersections.cc.

Here is the caller graph for this function:

void MixedMeshIntersections::compute_intersections_22 ( std::vector< IntersectionLocal< 2, 2 >> &  storage)
private

Definition at line 201 of file mixed_mesh_intersections.cc.

Here is the caller graph for this function:

double MixedMeshIntersections::measure_13 ( )

Computes the size of the intersection in dim dimenstions.

Definition at line 46 of file mixed_mesh_intersections.cc.

double MixedMeshIntersections::measure_22 ( )

Definition at line 83 of file mixed_mesh_intersections.cc.

double MixedMeshIntersections::measure_23 ( )

Definition at line 70 of file mixed_mesh_intersections.cc.

unsigned int MixedMeshIntersections::number_of_components ( unsigned int  dim)

Definition at line 36 of file mixed_mesh_intersections.cc.

void MixedMeshIntersections::print_mesh_to_file_13 ( std::string  name)

Generates a mesh file of the given name, including the intersection.

Definition at line 441 of file mixed_mesh_intersections.cc.

void MixedMeshIntersections::print_mesh_to_file_23 ( std::string  name)

Definition at line 536 of file mixed_mesh_intersections.cc.

template<uint dim_A, uint dim_B>
void MixedMeshIntersections::store_intersection ( std::vector< IntersectionLocal< dim_A, dim_B >> &  storage,
IntersectionAux< dim_A, dim_B > &  isec_aux 
)
private

Definition at line 111 of file mixed_mesh_intersections.cc.

Here is the caller graph for this function:

Member Data Documentation

InspectElementsAlgorithm12 MixedMeshIntersections::algorithm12_
private

Definition at line 114 of file mixed_mesh_intersections.hh.

InspectElementsAlgorithm<1> MixedMeshIntersections::algorithm13_
private

Definition at line 111 of file mixed_mesh_intersections.hh.

InspectElementsAlgorithm22 MixedMeshIntersections::algorithm22_
private

Definition at line 113 of file mixed_mesh_intersections.hh.

InspectElementsAlgorithm<2> MixedMeshIntersections::algorithm23_
private

Definition at line 112 of file mixed_mesh_intersections.hh.

std::vector<std::vector<ILpair> > MixedMeshIntersections::element_intersections_

Definition at line 85 of file mixed_mesh_intersections.hh.

std::vector<IntersectionLocal<1,2> > MixedMeshIntersections::intersection_storage12_

Stores 1D-2D intersections.

Definition at line 76 of file mixed_mesh_intersections.hh.

std::vector<IntersectionLocal<1,3> > MixedMeshIntersections::intersection_storage13_

Stores 1D-3D intersections.

Definition at line 70 of file mixed_mesh_intersections.hh.

std::vector<IntersectionLocal<2,2> > MixedMeshIntersections::intersection_storage22_

Stores 2D-2D intersections.

Definition at line 74 of file mixed_mesh_intersections.hh.

std::vector<IntersectionLocal<2,3> > MixedMeshIntersections::intersection_storage23_

Stores 2D-3D intersections.

Definition at line 72 of file mixed_mesh_intersections.hh.

Mesh* MixedMeshIntersections::mesh
private

Mesh pointer.

Definition at line 109 of file mixed_mesh_intersections.hh.


The documentation for this class was generated from the following files: