dune-grid-glue 2.8.0
|
Implementation of the Merger concept for conforming interfaces. More...
#include <dune/grid-glue/merging/conformingmerge.hh>
Public Types | |
typedef T | ctype |
the numeric type used in this interface | |
typedef Dune::FieldVector< T, dimworld > | WorldCoords |
the coordinate type used in this interface | |
typedef Dune::FieldVector< T, dim > | LocalCoords |
the coordinate type used in this interface | |
using | Grid1Coords = typename Base::Grid1Coords |
Type used for local coordinates on the grid1 side. | |
using | Grid2Coords = typename Base::Grid2Coords |
Type used for local coordinates on the grid2 side. | |
using | IntersectionList = typename Base::IntersectionList |
Public Member Functions | |
ConformingMerge (T tolerance=default_tolerance) | |
void | build (const std::vector< Dune::FieldVector< T, dimworld > > &grid1_Coords, const std::vector< unsigned int > &grid1_elements, const std::vector< Dune::GeometryType > &grid1_element_types, const std::vector< Dune::FieldVector< T, dimworld > > &grid2_coords, const std::vector< unsigned int > &grid2_elements, const std::vector< Dune::GeometryType > &grid2_element_types) override |
void | clear () override |
std::shared_ptr< IntersectionList > | intersectionList () const final |
void | enableFallback (bool fallback) |
void | enableBruteForce (bool bruteForce) |
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 | |
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>") | |
Public Attributes | |
unsigned int | counter |
Counts the number of times the computeIntersection method has been called. | |
Static Public Attributes | |
static constexpr T | default_tolerance = 1e-4 |
Protected Types | |
using | IntersectionListProvider = SimplicialIntersectionListProvider< grid1Dim, grid2Dim > |
The computed intersections. | |
using | RemoteSimplicialIntersection = SimplicialIntersection |
Protected Member Functions | |
virtual void | computeIntersections (const Dune::GeometryType &grid1ElementType, const std::vector< Dune::FieldVector< T, dimworld > > &grid1ElementCorners, std::bitset<(1<< grid1Dim)> &neighborIntersects1, unsigned int grid1Index, const Dune::GeometryType &grid2ElementType, const std::vector< Dune::FieldVector< T, dimworld > > &grid2ElementCorners, std::bitset<(1<< grid2Dim)> &neighborIntersects2, unsigned int grid2Index, std::vector< SimplicialIntersection > &intersections)=0 |
Compute the intersection between two overlapping elements. | |
bool | computeIntersection (unsigned int candidate0, unsigned int candidate1, const std::vector< Dune::FieldVector< T, dimworld > > &grid1Coords, const std::vector< Dune::GeometryType > &grid1_element_types, std::bitset<(1<< grid1Dim)> &neighborIntersects1, const std::vector< Dune::FieldVector< T, 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. | |
Protected Attributes | |
bool | valid = false |
std::shared_ptr< IntersectionListProvider > | intersectionListProvider_ |
std::shared_ptr< IntersectionList > | intersectionList_ |
std::vector< std::vector< unsigned int > > | grid1ElementCorners_ |
Temporary internal data. | |
std::vector< std::vector< unsigned int > > | grid2ElementCorners_ |
std::vector< std::vector< int > > | elementNeighbors1_ |
std::vector< std::vector< int > > | elementNeighbors2_ |
Implementation of the Merger concept for conforming interfaces.
dim | Grid dimension of the coupling grids. Must be the same for both sides |
dimworld | Dimension of the world coordinates. |
T | Type used for coordinates |
typedef T Dune::GridGlue::ConformingMerge< dim, dimworld, T >::ctype |
the numeric type used in this interface
|
inherited |
Type used for local coordinates on the grid1 side.
|
inherited |
Type used for local coordinates on the grid2 side.
|
inherited |
|
protectedinherited |
The computed intersections.
typedef Dune::FieldVector<T, dim> Dune::GridGlue::ConformingMerge< dim, dimworld, T >::LocalCoords |
the coordinate type used in this interface
|
protectedinherited |
typedef Dune::FieldVector<T, dimworld> Dune::GridGlue::ConformingMerge< dim, dimworld, T >::WorldCoords |
the coordinate type used in this interface
|
inline |
|
overridevirtualinherited |
|
inlineoverridevirtualinherited |
|
protectedinherited |
Compute the intersection between two overlapping elements.
|
protectedpure virtualinherited |
Compute the intersection between two overlapping elements.
The result is a set of simplices stored in the vector intersections.
|
inlineinherited |
|
inlineinherited |
|
inlinefinalvirtualinherited |
list of intersections
build()
was called Implements Dune::GridGlue::Merger< T, grid1Dim, grid2Dim, dimworld >.
|
inlineinherited |
get the number of simplices in the merged grid The indices are then in 0..nSimplices()-1
|
inlineinherited |
get index of grid-n's parent simplex for given merged grid simplex
n | specify which grid |
idx | index of the merged grid simplex |
|
inlineinherited |
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>")
n | specify which grid |
idx | the index of the merged grid simplex |
corner | the index of the simplex' corner |
|
inlineinherited |
doc me
|
inherited |
Counts the number of times the computeIntersection method has been called.
Used temporarily to speed up the implementation
|
staticconstexpr |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Temporary internal data.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |