dune-grid 2.9.0
|
Base class for classes implementing geometries of boundary segments. More...
#include <dune/grid/common/boundarysegment.hh>
Public Types | |
typedef BoundarySegment< dim, dimworld, ctype > | ThisType |
typedef BoundarySegmentBackupRestore< BoundarySegment< dim, dimworld, ctype > > | BaseType |
typedef BaseType::ObjectStreamType | ObjectStreamType |
Public Member Functions | |
virtual | ~BoundarySegment () |
Dummy virtual destructor. More... | |
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. More... | |
virtual void | backup (ObjectStreamType &buffer) const |
write BoundarySegment's data to stream buffer More... | |
Protected Types | |
typedef BoundarySegment< dim, dimworld, ctype > | BoundarySegment |
type of BoundarySegment interface class More... | |
typedef Dune::ParameterizedObjectFactory< std::unique_ptr< BoundarySegment >(ObjectStreamType &), int > | FactoryType |
type of factory creating a unique_ptr from an ObjectStreamType More... | |
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... | |
static int | registerFactory () |
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.
dim | Dimension of the grid |
dimworld | Dimension of the Euclidean space the grid is embedded in |
ctype | type of coordinate storage (default is double) |
typedef BoundarySegmentBackupRestore< BoundarySegment< dim, dimworld, ctype > > Dune::BoundarySegment< dim, dimworld, ctype >::BaseType |
|
protectedinherited |
type of BoundarySegment interface class
|
protectedinherited |
type of factory creating a unique_ptr from an ObjectStreamType
typedef BaseType::ObjectStreamType Dune::BoundarySegment< dim, dimworld, ctype >::ObjectStreamType |
typedef BoundarySegment< dim, dimworld, ctype > Dune::BoundarySegment< dim, dimworld, ctype >::ThisType |
|
inlinevirtual |
Dummy virtual destructor.
|
inlinevirtual |
write BoundarySegment's data to stream buffer
buffer | buffer to store data |
|
pure virtual |
A function mapping local coordinates on a boundary segment to world coordinates.
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
create an object of BoundarySegment type from a previously registered factory linked to key.
in | stream buffer previously written with backup containing key and object data |