|
dune-alugrid 2.8.0
|
Factory class for ALUGrids. More...
#include <dune/alugrid/3d/gridfactory.hh>

Classes | |
| struct | Codim |
| struct | FaceLess |
Public Types | |
| typedef ALUGrid | Grid |
| typedef Grid::ctype | ctype |
| typedef Grid::MPICommunicatorType | MPICommunicatorType |
| typedef unsigned int | VertexId |
| typedef unsigned int | GlobalIdType |
| typedef ALUGridTransformation< ctype, dimensionworld > | Transformation |
| typedef Transformation::WorldVector | WorldVector |
| type of vector for world coordinates More... | |
| typedef Transformation::WorldMatrix | WorldMatrix |
| type of matrix from world coordinates to world coordinates More... | |
| typedef Grid::CollectiveCommunication | Communication |
| typedef decltype(std::declval< Dune::GridFactoryInterface< Grid > * >() ->createGrid() | GridPtrType) |
Public Member Functions | |
| ALU3dGridFactory (const MPICommunicatorType &communicator=Grid::defaultCommunicator(), bool removeGeneratedFile=true) | |
| default constructor More... | |
| ALU3dGridFactory (const std::string &filename, const MPICommunicatorType &communicator=Grid::defaultCommunicator()) | |
| constructor taking filename for temporary outfile More... | |
| virtual | ~ALU3dGridFactory () |
| Destructor. More... | |
| virtual void | insertVertex (const VertexInputType &pos) |
| insert a vertex into the coarse grid More... | |
| void | insertVertex (const VertexInputType &pos, const VertexId globalId) |
| insert a vertex into the coarse grid including the vertex's globally unique id More... | |
| virtual void | insertElement (const GeometryType &geometry, const std::vector< VertexId > &vertices) |
| insert an element into the coarse grid More... | |
| virtual void | insertBoundary (const GeometryType &geometry, const std::vector< VertexId > &faceVertices, int boundaryId=1) |
| insert a boundary element into the coarse grid More... | |
| virtual void | insertBoundary (int element, int face, int boundaryId=1) |
| mark a face as boundary (and assign a boundary id) More... | |
| void | insertProcessBorder (int element, int face) |
| virtual void | insertBoundaryProjection (const GeometryType &type, const std::vector< VertexId > &vertices, const DuneBoundaryProjectionType *projection) |
| insert a boundary projection into the macro grid More... | |
| virtual void | insertBoundarySegment (const std::vector< VertexId > &vertices) |
| insert a boundary segment into the macro grid More... | |
| virtual void | insertProcessBorder (const std::vector< VertexId > &vertices) |
| virtual void | insertBoundarySegment (const std::vector< VertexId > &vertices, const std::shared_ptr< BoundarySegment< dimension, dimensionworld > > &boundarySegment) |
| insert a shaped boundary segment into the macro grid More... | |
| virtual void | insertBoundaryProjection (const DuneBoundaryProjectionType &bndProjection, const bool isSurfaceProjection=(dimension !=dimensionworld)) |
| insert a boundary projection object, (a copy is made) More... | |
| void | insertFaceTransformation (const WorldMatrix &matrix, const WorldVector &shift) |
| add a face transformation (for periodic identification) More... | |
| GridPtrType | createGrid () |
| finalize the grid creation and hand over the grid More... | |
| GridPtrType | createGrid (const bool addMissingBoundaries, const std::string dgfName="") |
| GridPtrType | createGrid (const bool addMissingBoundaries, bool temporary, const std::string dgfName="") |
| virtual unsigned int | insertionIndex (const typename Codim< 0 >::Entity &entity) const |
| virtual unsigned int | insertionIndex (const typename Codim< dimension >::Entity &entity) const |
| virtual unsigned int | insertionIndex (const typename Grid::LevelIntersection &intersection) const |
| virtual unsigned int | insertionIndex (const typename Grid::LeafIntersection &intersection) const |
| virtual bool | wasInserted (const typename Grid::LevelIntersection &intersection) const |
| virtual bool | wasInserted (const typename Grid::LeafIntersection &intersection) const |
| const std::vector< unsigned int > & | ordering () const |
| void | setLongestEdgeFlag (bool flag=true) |
| set longest edge marking for biscetion grids (default is off) More... | |
| Communication | comm () const |
| Return the Communication used by the grid factory. More... | |
Static Public Attributes | |
| static const ALU3dGridElementType | elementType = Grid::elementType |
| static const unsigned int | dimension = Grid::dimension |
| static const unsigned int | dimensionworld = Grid::dimensionworld |
Protected Member Functions | |
| ALU3dGridFactory (const bool verbose, const MPICommunicatorType &communicator) | |
| constructor taking verbose flag More... | |
Factory class for ALUGrids.
| typedef Grid::CollectiveCommunication Dune::ALU3dGridFactory< ALUGrid >::Communication |
| typedef Grid::ctype Dune::ALU3dGridFactory< ALUGrid >::ctype |
| typedef unsigned int Dune::ALU3dGridFactory< ALUGrid >::GlobalIdType |
| typedef ALUGrid Dune::ALU3dGridFactory< ALUGrid >::Grid |
| typedef decltype(std::declval< Dune::GridFactoryInterface< Grid >* >()->createGrid() Dune::ALU3dGridFactory< ALUGrid >::GridPtrType) |
| typedef Grid::MPICommunicatorType Dune::ALU3dGridFactory< ALUGrid >::MPICommunicatorType |
| typedef ALUGridTransformation< ctype, dimensionworld > Dune::ALU3dGridFactory< ALUGrid >::Transformation |
| typedef unsigned int Dune::ALU3dGridFactory< ALUGrid >::VertexId |
| typedef Transformation::WorldMatrix Dune::ALU3dGridFactory< ALUGrid >::WorldMatrix |
type of matrix from world coordinates to world coordinates
| typedef Transformation::WorldVector Dune::ALU3dGridFactory< ALUGrid >::WorldVector |
type of vector for world coordinates
|
inlineexplicitprotected |
constructor taking verbose flag
|
inlineexplicit |
default constructor
|
inlineexplicit |
constructor taking filename for temporary outfile
|
virtual |
Destructor.
|
inline |
Return the Communication used by the grid factory.
Use the Communication available from the grid.
| alu_inline ALU3dGridFactory< ALUGrid >::GridPtrType Dune::ALU3dGridFactory< ALUGrid >::createGrid |
finalize the grid creation and hand over the grid
The caller takes responsibility for deleing the grid.
| alu_inline ALU3dGridFactory< ALUGrid >::GridPtrType Dune::ALU3dGridFactory< ALUGrid >::createGrid | ( | const bool | addMissingBoundaries, |
| bool | temporary, | ||
| const std::string | dgfName = "" |
||
| ) |
| alu_inline ALU3dGridFactory< ALUGrid >::GridPtrType Dune::ALU3dGridFactory< ALUGrid >::createGrid | ( | const bool | addMissingBoundaries, |
| const std::string | dgfName = "" |
||
| ) |
|
virtual |
insert a boundary element into the coarse grid
| [in] | geometry | GeometryType of the boundary element |
| [in] | faceVertices | vertices of the boundary element |
| [in] | boundaryId | boundary identifier of the boundary element, the default value is 1 |
|
virtual |
mark a face as boundary (and assign a boundary id)
| [in] | element | index of the element, the face belongs to |
| [in] | face | local number of the face within the element |
| [in] | boundaryId | boundary id to assign to the face, the default value is 1 |
|
virtual |
insert a boundary projection object, (a copy is made)
| [in] | bndProjection | instance of an ALUGridBoundaryProjection projecting vertices to a curved |
|
virtual |
insert a boundary projection into the macro grid
| [in] | type | geometry type of boundary face |
| [in] | vertices | vertices of the boundary face |
| [in] | projection | boundary projection |
|
inlinevirtual |
insert a boundary segment into the macro grid
| [in] | vertices | vertex indices of boundary face |
|
inlinevirtual |
insert a shaped boundary segment into the macro grid
| [in] | vertices | vertex indices of boundary face |
| [in] | boundarySegment | geometric realization of shaped boundary |
|
virtual |
insert an element into the coarse grid
| [in] | geometry | GeometryType of the new element |
| [in] | vertices | vertices of the new element |
| alu_inline void Dune::ALU3dGridFactory< ALUGrid >::insertFaceTransformation | ( | const WorldMatrix & | matrix, |
| const WorldVector & | shift | ||
| ) |
add a face transformation (for periodic identification)
A face transformation is an affine mapping T from world coordinates to world coordinates. The grid factory then glues two faces f and g if T( f ) = g or T( g ) = f.
| [in] | matrix | matrix describing the linear part of T |
| [in] | shift | vector describing T( 0 ) |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
virtual |
insert a vertex into the coarse grid
| [in] | pos | position of the vertex |
| alu_inline void Dune::ALU3dGridFactory< ALUGrid >::insertVertex | ( | const VertexInputType & | pos, |
| const VertexId | globalId | ||
| ) |
insert a vertex into the coarse grid including the vertex's globally unique id
| [in] | pos | position of the vertex |
| [in] | globalId | globally unique id for vertex |
|
inline |
|
inline |
set longest edge marking for biscetion grids (default is off)
|
inlinevirtual |
|
inlinevirtual |
|
static |
|
static |
|
static |