|
dune-grid 2.9.1
|
Loading...
Searching...
No Matches
albertagrid/gridfactory.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
189 const InsertResult result = boundaryMap_.insert( std::make_pair( faceId, boundaryProjections_.size() ) );
244 if( ((*boundarySegment)( refSimplex.position( i, dimension-1 ) ) - coords[ i ]).two_norm() > 1e-6 )
432 DUNE_THROW( GridError, "Vertex in macro element does not coincide with same vertex in macro data structure." );
480 : public Alberta::ProjectionFactory< Alberta::DuneBoundaryProjection< dim >, ProjectionFactory >
483 typedef Alberta::ProjectionFactory< Alberta::DuneBoundaryProjection< dim >, ProjectionFactory > Base;
size_type dim() const
static constexpr size_type M()
std::ptrdiff_t index() const
#define DUNE_THROW(E, m)
provides the AlbertaGrid class
Include standard header files.
constexpr unsigned int dim() const
constexpr bool isSimplex() const
int generic2alberta(int codim, int i) const
Definition agrid.hh:493
specialization of the generic GridFactory for AlbertaGrid
Definition albertagrid/gridfactory.hh:51
DuneBoundaryProjection< dimensionworld > DuneProjection
Definition albertagrid/gridfactory.hh:71
FieldVector< ctype, dimensionworld > WorldVector
type of vector for world coordinates
Definition albertagrid/gridfactory.hh:67
std::unique_ptr< Grid > createGrid()
finalize grid creation and hand over the grid
Definition albertagrid/gridfactory.hh:293
virtual unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
obtain an element's insertion index
Definition albertagrid/gridfactory.hh:331
virtual bool wasInserted(const typename Grid::LeafIntersection &intersection) const
Definition albertagrid/gridfactory.hh:354
std::shared_ptr< const DuneProjection > DuneProjectionPtr
Definition albertagrid/gridfactory.hh:72
AlbertaGrid< dim, dimworld > Grid
type of grid this factory is for
Definition albertagrid/gridfactory.hh:56
virtual void insertBoundaryProjection(const GeometryType &type, const std::vector< unsigned int > &vertices, const DuneProjection *projection)
insert a boundary projection into the macro grid
Definition albertagrid/gridfactory.hh:172
FieldMatrix< ctype, dimensionworld, dimensionworld > WorldMatrix
type of matrix from world coordinates to world coordinates
Definition albertagrid/gridfactory.hh:69
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)
insert an element into the macro grid
Definition albertagrid/gridfactory.hh:127
Dune::BoundarySegment< dimension, dimensionworld > BoundarySegment
Definition albertagrid/gridfactory.hh:73
void markLongestEdge()
mark the longest edge as refinemet edge
Definition albertagrid/gridfactory.hh:276
Grid::ctype ctype
type of (scalar) coordinates
Definition albertagrid/gridfactory.hh:59
virtual void insertVertex(const WorldVector &pos)
insert a vertex into the macro grid
Definition albertagrid/gridfactory.hh:117
virtual void insertBoundary(int element, int face, int id)
mark a face as boundary (and assign a boundary id)
Definition albertagrid/gridfactory.hh:154
GridFactory()
Definition albertagrid/gridfactory.hh:105
static void destroyGrid(Grid *grid)
destroy a grid previously obtain from this factory
Definition albertagrid/gridfactory.hh:310
virtual unsigned int insertionIndex(const typename Codim< dimension >::Entity &entity) const
obtain a vertex' insertion index
Definition albertagrid/gridfactory.hh:337
bool write(const std::string &filename)
write out the macro triangulation in native grid file format
Definition albertagrid/gridfactory.hh:321
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices, const std::shared_ptr< BoundarySegment > &boundarySegment)
insert a shaped boundary segment into the macro grid
Definition albertagrid/gridfactory.hh:228
virtual void insertBoundaryProjection(const DuneProjection *projection)
insert a global (boundary) projection into the macro grid
Definition albertagrid/gridfactory.hh:204
virtual unsigned int insertionIndex(const typename Grid::LeafIntersection &intersection) const
Definition albertagrid/gridfactory.hh:345
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices)
insert a boundary segment into the macro grid
Definition albertagrid/gridfactory.hh:217
Grid::template Codim< codim >::Entity Entity
Definition albertagrid/gridfactory.hh:78
bool hasProjection(const ElementInfo &) const
Definition albertagrid/gridfactory.hh:509
Base::ElementInfo ElementInfo
Definition albertagrid/gridfactory.hh:489
Base::Projection Projection
Definition albertagrid/gridfactory.hh:488
const GridFactory & gridFactory() const
Definition albertagrid/gridfactory.hh:534
ProjectionFactory(const GridFactory &gridFactory)
Definition albertagrid/gridfactory.hh:493
Projection projection(const ElementInfo &elementInfo, const int face) const
Definition albertagrid/gridfactory.hh:514
Projection::Projection DuneProjection
Definition albertagrid/gridfactory.hh:491
Projection projection(const ElementInfo &) const
Definition albertagrid/gridfactory.hh:528
bool hasProjection(const ElementInfo &elementInfo, const int face) const
Definition albertagrid/gridfactory.hh:497
Definition macroelement.hh:24
Definition misc.hh:32
Definition misc.hh:148
Definition albertagrid/projection.hh:135
Definition albertagrid/projection.hh:36
Interface class for vertex projection at the boundary.
Definition boundaryprojection.hh:33
Definition boundaryprojection.hh:133
Base class for classes implementing geometries of boundary segments.
Definition boundarysegment.hh:94
static constexpr int dimension
The dimension of the grid.
Definition common/grid.hh:387
GridFamily::Traits::LeafIntersection LeafIntersection
A type that is a model of Dune::Intersection, an intersections of two codimension 1 of two codimensio...
Definition common/grid.hh:456
static constexpr int dimensionworld
The dimension of the world the grid lives in.
Definition common/grid.hh:390
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:73
virtual unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
obtain an element's insertion index
Definition common/gridfactory.hh:220
static const int dimension
dimension of the grid
Definition common/gridfactory.hh:77
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:314
Provide a generic factory class for unstructured grids.
T begin(T... args)
T end(T... args)
T make_pair(T... args)
T max(T... args)
T size(T... args)
T sort(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8