|
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
|
|
typedef Merger< T, grid1Dim, grid2Dim, dimworld >::Grid1Coords | Grid1Coords |
| Type used for local coordinates on the grid1 side.
|
|
typedef Merger< T, grid1Dim, grid2Dim, dimworld >::Grid2Coords | Grid2Coords |
| Type used for local coordinates on the grid2 side.
|
|
|
| ContactMerge (const T allowedOverlap, const Dune::VirtualFunction< WorldCoords, WorldCoords > *domainDirections, const Dune::VirtualFunction< WorldCoords, WorldCoords > *targetDirections) |
| Construct merger given overlap and possible projection directions.
|
|
| ContactMerge (const T allowedOverlap=T(0), std::function< WorldCoords(WorldCoords)> domainDirections=nullptr, std::function< WorldCoords(WorldCoords)> targetDirections=nullptr) |
| Construct merger given overlap and possible projection directions.
|
|
void | setSurfaceDirections (std::function< WorldCoords(WorldCoords)> domainDirections, std::function< WorldCoords(WorldCoords)> targetDirections) |
| Set surface direction functions.
|
|
void | setSurfaceDirections (const Dune::VirtualFunction< WorldCoords, WorldCoords > *domainDirections, const Dune::VirtualFunction< WorldCoords, WorldCoords > *targetDirections) |
| Set surface direction functions.
|
|
void | setOverlap (T overlap) |
| Set the allowed overlap of the surfaces.
|
|
T | getOverlap () const |
| Get the allowed overlap of the surfaces.
|
|
void | minNormalAngle (T angle) |
| set minimum angle in radians between normals at x and Φ(x)
|
|
T | minNormalAngle () const |
| get minimum angle in radians between normals at x and Φ(x)
|
|
unsigned int | nSimplices () const |
| get the number of simplices in the merged grid The indices are then in 0..nSimplices()-1
|
|
void | clear () |
|
void | enableFallback (bool fallback) |
|
void | enableBruteForce (bool bruteForce) |
|
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
|
|
bool | simplexRefined (unsigned int idx, std::vector< unsigned int > &indices) const |
| get the merged grid simplices refining a given grid-n simplex
|
|
GridTraits< n >::Coords | 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>")
|
|
|
void | build (const std::vector< Dune::FieldVector< T, dimworld > > &grid1Coords, const std::vector< unsigned int > &grid1Elements, const std::vector< Dune::GeometryType > &grid1ElementTypes, const std::vector< Dune::FieldVector< T, dimworld > > &grid2Coords, const std::vector< unsigned int > &grid2Elements, const std::vector< Dune::GeometryType > &grid2ElementTypes) |
|
void | computeCyclicOrder (const std::vector< std::array< LocalCoords, 2 > > &polytopeCorners, const LocalCoords ¢er, std::vector< int > &ordering) const |
| Order the corners of the intersection polytope in cyclic order.
|
|
void | setupNodalDirections (const std::vector< WorldCoords > &coords1, const std::vector< unsigned int > &elements1, const std::vector< Dune::GeometryType > &elementTypes1, const std::vector< WorldCoords > &coords2, const std::vector< unsigned int > &elements2, const std::vector< Dune::GeometryType > &elementTypes2) |
| Setup the direction vectors containing the directions for each vertex.
|
|
void | computeOuterNormalField (const std::vector< WorldCoords > &coords, const std::vector< unsigned int > &elements, const std::vector< Dune::GeometryType > &elementTypes, std::vector< WorldCoords > &normals) |
| If no direction field was specified compute the outer normal field.
|
|
void | removeDoubles (std::vector< std::array< LocalCoords, 2 > > &polytopeCorners) |
| Remove all multiples.
|
|
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< RemoteSimplicialIntersection > &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.
|
|
template<int dimworld, typename T = double>
class Dune::GridGlue::ContactMerge< dimworld, T >
Merge two codimension-1 surfaces that may be a positive distance apart.
- Template Parameters
-
dimworld | Dimension of the world coordinates. |
T | Type used for coordinates |