![]() |
Dune-Fufem 2.11-git
|
Encapsulate a subset of the boundary intersections of a GridView. More...
#include <dune/fufem/domains/boundarypatch.hh>

Public Types | |
| using | GridView = GV |
| GridView The grid view on which this boundary patch lives. | |
| using | iterator = Dune::Fufem::IntersectionSetIterator< BoundaryPatch > |
| Export the appropriate iterator type. | |
Public Member Functions | |
| BoundaryPatch (const GridView &gridView) | |
| Constructor for a given grid view. | |
| BoundaryPatch ()=default | |
| BoundaryPatch (const BoundaryPatch &)=default | |
| BoundaryPatch (BoundaryPatch &&)=default | |
| BoundaryPatch & | operator= (const BoundaryPatch &)=default |
| BoundaryPatch & | operator= (BoundaryPatch &&)=default |
| void | setGridView (const GridView &gridView) |
| Set the grid view and initialize the patch. | |
| void | clear () |
| Clear the boundary patch, but don't disconnect it from the GridView. | |
| void | insertFace (const Element &element, int faceIndex) |
| Insert a boundary face into the patch. | |
| void | insertFace (const Intersection &intersection) |
| Insert a boundary face into the patch. | |
| iterator | begin () const |
| Return iterator pointing to first boundary patch face. | |
| iterator | end () const |
| Return iterator pointing after last boundary patch face. | |
| std::size_t | size () const |
| Returns the number of faces in the surface. | |
| bool | contains (const Element &element, int faceIndex) const |
| Return true if the BoundaryPatch contains a certain boundary face. | |
| template<class IntersectionType > | |
| bool | contains (const IntersectionType &intersection) const |
| Return true if the BoundaryPatch contains a certain boundary face. | |
| bool | contains (const Element &element, int subEntity, int codim) const |
| Return true if the BoundaryPatch contains a certain subentity in some face. | |
| bool | containsFaceOf (const Element &e) const |
| Return true if the BoundaryPatch contains a face of given element. | |
| const GridView & | gridView () const |
| Return reference to the carrier grid view. | |
| bool | isInitialized () const |
| Check if BoundaryPatch is initialized. | |
| bool | operator== (const BoundaryPatch &other) const |
| Compare with another BoundaryPatch on the same GridView. | |
Protected Types | |
| using | Element = typename GV::template Codim< 0 >::Entity |
| using | Intersection = typename GV::Intersection |
| using | Mapper = typename Dune::MultipleCodimMultipleGeomTypeMapper< GV > |
Protected Attributes | |
| Dune::BitSetVector< 1 > | faces_ |
| std::optional< GridView > | gridView_ |
| std::optional< Mapper > | mapper_ |
Static Protected Attributes | |
| static const int | dim = GV::dimension |
Detailed Description
class Dune::Fufem::BoundaryPatch< GV >
Encapsulate a subset of the boundary intersections of a GridView.
- Template Parameters
-
GridView The grid view on which this boundary patch lives
Member Typedef Documentation
◆ Element
|
protected |
◆ GridView
| using Dune::Fufem::BoundaryPatch< GV >::GridView = GV |
GridView The grid view on which this boundary patch lives.
◆ Intersection
|
protected |
◆ iterator
| using Dune::Fufem::BoundaryPatch< GV >::iterator = Dune::Fufem::IntersectionSetIterator<BoundaryPatch> |
Export the appropriate iterator type.
◆ Mapper
|
protected |
Constructor & Destructor Documentation
◆ BoundaryPatch() [1/4]
|
inline |
Constructor for a given grid view.
◆ BoundaryPatch() [2/4]
|
default |
◆ BoundaryPatch() [3/4]
|
default |
◆ BoundaryPatch() [4/4]
|
default |
Member Function Documentation
◆ begin()
|
inline |
Return iterator pointing to first boundary patch face.
◆ clear()
|
inline |
Clear the boundary patch, but don't disconnect it from the GridView.
◆ contains() [1/3]
|
inline |
Return true if the BoundaryPatch contains a certain boundary face.
The behaviour is undefined, if element is not contained in the underlying GridView.
◆ contains() [2/3]
|
inline |
Return true if the BoundaryPatch contains a certain subentity in some face.
The behaviour is undefined, if element is not contained in the underlying GridView.
◆ contains() [3/3]
|
inline |
Return true if the BoundaryPatch contains a certain boundary face.
The behaviour is undefined, if intersection.inside() is not contained in the underlying GridView.
◆ containsFaceOf()
|
inline |
Return true if the BoundaryPatch contains a face of given element.
It is guaranteed that the method returns true if and only if the BoundaryPatch contains at least one face of the element.
◆ end()
|
inline |
Return iterator pointing after last boundary patch face.
◆ gridView()
|
inline |
Return reference to the carrier grid view.
◆ insertFace() [1/2]
|
inline |
Insert a boundary face into the patch.
◆ insertFace() [2/2]
|
inline |
Insert a boundary face into the patch.
◆ isInitialized()
|
inline |
Check if BoundaryPatch is initialized.
◆ operator=() [1/2]
|
default |
◆ operator=() [2/2]
|
default |
◆ operator==()
|
inline |
Compare with another BoundaryPatch on the same GridView.
The result behavior is undefined, if the patches live on different GridViews.
◆ setGridView()
|
inline |
Set the grid view and initialize the patch.
◆ size()
|
inline |
Returns the number of faces in the surface.
Member Data Documentation
◆ dim
|
staticprotected |
◆ faces_
|
protected |
◆ gridView_
|
protected |
◆ mapper_
|
protected |
The documentation for this class was generated from the following file:
