|
dune-grid 2.9.1
|
Loading...
Searching...
No Matches
common/gridfactory.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
266 insertionIndex ( [[maybe_unused]] const typename GridType::LeafIntersection &intersection ) const
364 virtual void insertBoundarySegment([[maybe_unused]] const std::vector<unsigned int>& vertices) {
Base class for grid boundary segments of arbitrary geometry.
#define DUNE_NO_DEPRECATED_END
#define DUNE_NO_DEPRECATED_BEGIN
#define DUNE_THROW(E, m)
Include standard header files.
static MPICommunicator getLocalCommunicator()
Base class for classes implementing geometries of boundary segments.
Definition boundarysegment.hh:94
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:73
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices, const std::shared_ptr< BoundarySegment< dimension, dimworld > > &boundarySegment)
insert an arbitrarily shaped boundary segment
Definition common/gridfactory.hh:192
virtual unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
obtain an element's insertion index
Definition common/gridfactory.hh:220
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)=0
Insert an element into the coarse grid.
virtual std::unique_ptr< GridType > createGrid()=0
Finalize grid creation and hand over the grid.
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices)=0
insert a boundary segment
virtual ~GridFactoryInterface()
virtual destructor
Definition common/gridfactory.hh:97
virtual void insertVertex(const FieldVector< ctype, dimworld > &pos)=0
Insert a vertex into the coarse grid.
static constexpr int dimworld
The grid world dimension.
Definition common/gridfactory.hh:80
static const int dimension
dimension of the grid
Definition common/gridfactory.hh:77
virtual unsigned int insertionIndex(const typename GridType::LeafIntersection &intersection) const
obtain a boundary's insertion index
Definition common/gridfactory.hh:266
GridType::ctype ctype
Type used by the grid for coordinates.
Definition common/gridfactory.hh:83
Dune::Communication< typename MPIHelper::MPICommunicator > Communication
Definition common/gridfactory.hh:291
GridFactoryInterface()
Default constructor.
Definition common/gridfactory.hh:93
Communication comm() const
Return the Communication used by the grid factory.
Definition common/gridfactory.hh:297
virtual DUNE_NO_DEPRECATED_END void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices, std::function< FieldVector< ctype, dimworld >(FieldVector< ctype, dimension >)> elementParametrization)
Insert a parametrized element into the coarse grid.
Definition common/gridfactory.hh:151
virtual unsigned int insertionIndex(const typename Codim< dimension >::Entity &entity) const
obtain a vertex' insertion index
Definition common/gridfactory.hh:241
virtual bool wasInserted(const typename GridType::LeafIntersection &intersection) const
determine whether an intersection was inserted
Definition common/gridfactory.hh:286
virtual DUNE_NO_DEPRECATED_BEGIN void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices, const std::shared_ptr< VirtualFunction< FieldVector< ctype, dimension >, FieldVector< ctype, dimworld > > > &elementParametrization)
Insert a parametrized element into the coarse grid.
Definition common/gridfactory.hh:128
Definition common/gridfactory.hh:88
GridType::template Codim< codim >::Entity Entity
Definition common/gridfactory.hh:89
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:314
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)
Insert an element into the coarse grid.
Definition common/gridfactory.hh:346
virtual void insertVertex(const FieldVector< ctype, dimworld > &pos)
Insert a vertex into the coarse grid.
Definition common/gridfactory.hh:335
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices)
insert a boundary segment
Definition common/gridfactory.hh:364
virtual std::unique_ptr< GridType > createGrid()
Finalize grid creation and hand over the grid.
Definition common/gridfactory.hh:372
Different resources needed by all grid implementations.
T make_unique(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8