|
| OverlappingMerge () |
| the coordinate type used in this interface
|
|
void | build (const std::vector< Dune::FieldVector< double, dimworld > > &grid1_Coords, const std::vector< unsigned int > &grid1_elements, const std::vector< Dune::GeometryType > &grid1_element_types, const std::vector< Dune::FieldVector< double, dimworld > > &grid2_coords, const std::vector< unsigned int > &grid2_elements, const std::vector< Dune::GeometryType > &grid2_element_types) override |
| builds the merged grid More...
|
|
virtual void | build (const std::vector< Dune::FieldVector< double, dimworld > > &grid1_coords, const std::vector< unsigned int > &grid1_elements, const std::vector< Dune::GeometryType > &grid1_element_types, const std::vector< Dune::FieldVector< double, dimworld > > &grid2_coords, const std::vector< unsigned int > &grid2_elements, const std::vector< Dune::GeometryType > &grid2_element_types)=0 |
| builds the merged grid More...
|
|
unsigned int | nSimplices () const |
| get the number of simplices in the merged grid The indices are then in 0..nSimplices()-1
|
|
unsigned int | parents (unsigned int idx) const |
|
unsigned int | parent (unsigned int idx, unsigned int parId=0) const |
| get index of grid-n's parent simplex for given merged grid simplex More...
|
|
auto | parentLocal (unsigned int idx, unsigned int corner, unsigned int parId=0) const |
| get the grid-n parent's simplex local coordinates for a particular merged grid simplex corner (parent's index can be obtained via "parent<n>") More...
|
|
|
void | computeIntersections (const Dune::GeometryType &grid1ElementType, const std::vector< Dune::FieldVector< T, dimworld > > &grid1ElementCorners, std::bitset<(1<< dim1)> &neighborIntersects1, unsigned int grid1Index, const Dune::GeometryType &grid2ElementType, const std::vector< Dune::FieldVector< T, dimworld > > &grid2ElementCorners, std::bitset<(1<< dim2)> &neighborIntersects2, unsigned int grid2Index, std::vector< SimplicialIntersection > &intersections) |
| Compute the intersection between two overlapping elements. More...
|
|
virtual void | computeIntersections (const Dune::GeometryType &grid1ElementType, const std::vector< Dune::FieldVector< double, dimworld > > &grid1ElementCorners, std::bitset<(1<< grid1Dim)> &neighborIntersects1, unsigned int grid1Index, const Dune::GeometryType &grid2ElementType, const std::vector< Dune::FieldVector< double, dimworld > > &grid2ElementCorners, std::bitset<(1<< grid2Dim)> &neighborIntersects2, unsigned int grid2Index, std::vector< SimplicialIntersection > &intersections)=0 |
| Compute the intersection between two overlapping elements. More...
|
|
bool | computeIntersection (unsigned int candidate0, unsigned int candidate1, const std::vector< Dune::FieldVector< double, dimworld > > &grid1Coords, const std::vector< Dune::GeometryType > &grid1_element_types, std::bitset<(1<< grid1Dim)> &neighborIntersects1, const std::vector< Dune::FieldVector< double, dimworld > > &grid2Coords, const std::vector< Dune::GeometryType > &grid2_element_types, std::bitset<(1<< grid2Dim)> &neighborIntersects2, bool insert=true) |
| Compute the intersection between two overlapping elements. More...
|
|
template<int dim1, int dim2, int dimworld, typename T = double>
class Dune::GridGlue::OverlappingMerge< dim1, dim2, dimworld, T >
Computing overlapping grid intersections for grids of different dimensions.
- Template Parameters
-
dim1 | Grid dimension of grid 1 |
dim2 | Grid dimension of grid 2 |
dimworld | World dimension |
T | Type used for coordinates |
template<int dim1, int dim2, int dimworld, typename T >
void Dune::GridGlue::OverlappingMerge< dim1, dim2, dimworld, T >::computeIntersections |
( |
const Dune::GeometryType & |
grid1ElementType, |
|
|
const std::vector< Dune::FieldVector< T, dimworld > > & |
grid1ElementCorners, |
|
|
std::bitset<(1<< dim1)> & |
neighborIntersects1, |
|
|
unsigned int |
grid1Index, |
|
|
const Dune::GeometryType & |
grid2ElementType, |
|
|
const std::vector< Dune::FieldVector< T, dimworld > > & |
grid2ElementCorners, |
|
|
std::bitset<(1<< dim2)> & |
neighborIntersects2, |
|
|
unsigned int |
grid2Index, |
|
|
std::vector< SimplicialIntersection > & |
intersections |
|
) |
| |
|
protected |
Compute the intersection between two overlapping elements.
The result is a set of simplices.
- Parameters
-
grid1ElementType | Type of the first element to be intersected |
grid1ElementCorners | World coordinates of the corners of the first element |
grid2ElementType | Type of the second element to be intersected |
grid2ElementCorners | World coordinates of the corners of the second element |
References Dune::GridGlue::IntersectionComputation< CM >::computeIntersection().