|
dune-grid 2.8.0
|
Loading...
Searching...
No Matches
albertagrid/gridfactory.hh
Go to the documentation of this file.
187 const InsertResult result = boundaryMap_.insert( std::make_pair( faceId, boundaryProjections_.size() ) );
242 if( ((*boundarySegment)( refSimplex.position( i, dimension-1 ) ) - coords[ i ]).two_norm() > 1e-6 )
430 DUNE_THROW( GridError, "Vertex in macro element does not coincide with same vertex in macro data structure." );
478 : public Alberta::ProjectionFactory< Alberta::DuneBoundaryProjection< dim >, ProjectionFactory >
481 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:485
specialization of the generic GridFactory for AlbertaGrid
Definition albertagrid/gridfactory.hh:49
DuneBoundaryProjection< dimensionworld > DuneProjection
Definition albertagrid/gridfactory.hh:69
FieldVector< ctype, dimensionworld > WorldVector
type of vector for world coordinates
Definition albertagrid/gridfactory.hh:65
std::unique_ptr< Grid > createGrid()
finalize grid creation and hand over the grid
Definition albertagrid/gridfactory.hh:291
virtual unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
obtain an element's insertion index
Definition albertagrid/gridfactory.hh:329
virtual bool wasInserted(const typename Grid::LeafIntersection &intersection) const
Definition albertagrid/gridfactory.hh:352
std::shared_ptr< const DuneProjection > DuneProjectionPtr
Definition albertagrid/gridfactory.hh:70
AlbertaGrid< dim, dimworld > Grid
type of grid this factory is for
Definition albertagrid/gridfactory.hh:54
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:170
FieldMatrix< ctype, dimensionworld, dimensionworld > WorldMatrix
type of matrix from world coordinates to world coordinates
Definition albertagrid/gridfactory.hh:67
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)
insert an element into the macro grid
Definition albertagrid/gridfactory.hh:125
Dune::BoundarySegment< dimension, dimensionworld > BoundarySegment
Definition albertagrid/gridfactory.hh:71
void markLongestEdge()
mark the longest edge as refinemet edge
Definition albertagrid/gridfactory.hh:274
Grid::ctype ctype
type of (scalar) coordinates
Definition albertagrid/gridfactory.hh:57
virtual void insertVertex(const WorldVector &pos)
insert a vertex into the macro grid
Definition albertagrid/gridfactory.hh:115
virtual void insertBoundary(int element, int face, int id)
mark a face as boundary (and assign a boundary id)
Definition albertagrid/gridfactory.hh:152
GridFactory()
Definition albertagrid/gridfactory.hh:103
static void destroyGrid(Grid *grid)
destroy a grid previously obtain from this factory
Definition albertagrid/gridfactory.hh:308
virtual unsigned int insertionIndex(const typename Codim< dimension >::Entity &entity) const
obtain a vertex' insertion index
Definition albertagrid/gridfactory.hh:335
bool write(const std::string &filename)
write out the macro triangulation in native grid file format
Definition albertagrid/gridfactory.hh:319
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:226
virtual void insertBoundaryProjection(const DuneProjection *projection)
insert a global (boundary) projection into the macro grid
Definition albertagrid/gridfactory.hh:202
virtual unsigned int insertionIndex(const typename Grid::LeafIntersection &intersection) const
Definition albertagrid/gridfactory.hh:343
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices)
insert a boundary segment into the macro grid
Definition albertagrid/gridfactory.hh:215
Grid::template Codim< codim >::Entity Entity
Definition albertagrid/gridfactory.hh:76
bool hasProjection(const ElementInfo &) const
Definition albertagrid/gridfactory.hh:507
Base::ElementInfo ElementInfo
Definition albertagrid/gridfactory.hh:487
Base::Projection Projection
Definition albertagrid/gridfactory.hh:486
const GridFactory & gridFactory() const
Definition albertagrid/gridfactory.hh:532
ProjectionFactory(const GridFactory &gridFactory)
Definition albertagrid/gridfactory.hh:491
Projection projection(const ElementInfo &elementInfo, const int face) const
Definition albertagrid/gridfactory.hh:512
Projection::Projection DuneProjection
Definition albertagrid/gridfactory.hh:489
Projection projection(const ElementInfo &) const
Definition albertagrid/gridfactory.hh:526
bool hasProjection(const ElementInfo &elementInfo, const int face) const
Definition albertagrid/gridfactory.hh:495
Definition macroelement.hh:22
Definition misc.hh:30
Definition misc.hh:146
Definition albertagrid/projection.hh:133
Definition albertagrid/projection.hh:34
Interface class for vertex projection at the boundary.
Definition boundaryprojection.hh:31
Definition boundaryprojection.hh:131
Base class for classes implementing geometries of boundary segments.
Definition boundarysegment.hh:92
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:459
@ dimensionworld
The dimension of the world the grid lives in.
Definition common/grid.hh:392
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:71
virtual unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
obtain an element's insertion index
Definition common/gridfactory.hh:218
static const int dimension
dimension of the grid
Definition common/gridfactory.hh:75
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:312
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