DUNE PDELab (2.8)
Base class for classes implementing geometries of boundary segments. More...
Public Member Functions | |
virtual | ~BoundarySegment () |
Dummy virtual destructor. | |
virtual FieldVector< ctype, dimworld > | operator() (const FieldVector< ctype, dim-1 > &local) const =0 |
A function mapping local coordinates on a boundary segment to world coordinates. | |
virtual void | backup (ObjectStreamType &buffer) const |
write BoundarySegment's data to stream buffer More... | |
Protected Types | |
typedef BndSeg | BoundarySegment |
type of BoundarySegment interface class | |
typedef Dune::ParameterizedObjectFactory< std::unique_ptr< BoundarySegment >(ObjectStreamType &), int > | FactoryType |
type of factory creating a unique_ptr from an ObjectStreamType | |
Static Protected Member Functions | |
static std::unique_ptr< BoundarySegment > | restore (ObjectStreamType &in) |
create an object of BoundarySegment type from a previously registered factory linked to key. More... | |
Detailed Description
struct Dune::BoundarySegment< dim, dimworld, ctype >
Base class for classes implementing geometries of boundary segments.
Some grid implementations, as for example UGGrid, allow to use boundary segments of arbitrary geometry. That means that you can have grid boundaries approach smooth shapes when refining the grid.
Such curved boundary segments are specified by giving classes that implement them. Each boundary segment is implemented by an object of a class derived from BoundarySegment. The set of these objects is handed over to the grid upon grid construction.
- Template Parameters
-
dim Dimension of the grid dimworld Dimension of the Euclidean space the grid is embedded in ctype type of coordinate storage (default is double)
Member Function Documentation
◆ backup()
|
inlinevirtual |
write BoundarySegment's data to stream buffer
- Parameters
-
buffer buffer to store data
References DUNE_THROW.
◆ restore()
|
inlinestaticprotectedinherited |
create an object of BoundarySegment type from a previously registered factory linked to key.
- Parameters
-
in stream buffer previously written with backup containing key and object data
- Returns
- Object derived from BoundarySegment.
The documentation for this struct was generated from the following file:
- dune/grid/common/boundarysegment.hh