The grid manager base interface (public) and methods common to most grid manager specializations (protected). More...
#include <dumux/io/grid/gridmanager_base.hh>
The grid manager base interface (public) and methods common to most grid manager specializations (protected).
Public Types | |
| using | Grid = GridType |
| using | GridData = Dumux::GridData< Grid > |
Public Member Functions | |
| void | init (const std::string &modelParamGroup="") |
| Make the grid. Implement this method in the specialization of this class for a grid type. More... | |
| Grid & | grid () |
| Returns a reference to the grid. More... | |
| void | loadBalance () |
| Call loadBalance() function of the grid. More... | |
| std::shared_ptr< GridData > | getGridData () const |
| Get an owning pointer to grid data associated with the grid. More... | |
| bool | hasGridData () const |
| Check whether there is data associated with the grid. More... | |
Protected Types | |
| enum | CellType { Simplex , Cube } |
| The cell types for structured grids. More... | |
Protected Member Functions | |
| std::shared_ptr< Grid > & | gridPtr () |
| Returns a reference to the grid pointer (std::shared_ptr<Grid>) More... | |
| Dune::GridPtr< Grid > & | dgfGridPtr () |
| Returns a reference to the DGF grid pointer (Dune::GridPtr<Grid>). More... | |
| std::string | getFileExtension (const std::string &fileName) const |
| Returns the filename extension of a given filename. More... | |
| void | makeGridFromFile (const std::string &fileName, const std::string &modelParamGroup) |
| Makes a grid from a file. We currently support. More... | |
| void | makeGridFromDgfFile (const std::string &fileName) |
| Makes a grid from a DGF file. This is used by grid managers that only support DGF. More... | |
| template<int dim, int dimworld> | |
| void | makeStructuredGrid (CellType cellType, const std::string &modelParamGroup) |
| Makes a structured cube grid using the structured grid factory. More... | |
| void | maybeRefineGrid (const std::string &modelParamGroup) |
| Refines a grid after construction if GridParameterGroup.Refinement is set in the input file. More... | |
Protected Attributes | |
| bool | enableDgfGridPointer_ = false |
| A state variable if the DGF Dune::GridPtr has been enabled. It is always enabled if a DGF grid file was used to create the grid. More... | |
| bool | enableGmshDomainMarkers_ = false |
| A state variable if domain markers have been read from a Gmsh file. More... | |
| std::shared_ptr< Grid > | gridPtr_ |
| Dune::GridPtr< Grid > | dgfGridPtr_ |
| std::shared_ptr< GridData > | gridData_ |
| using Dumux::GridManagerBase< GridType >::Grid = GridType |
| using Dumux::GridManagerBase< GridType >::GridData = Dumux::GridData<Grid> |
|
protected |
|
inlineprotected |
Returns a reference to the DGF grid pointer (Dune::GridPtr<Grid>).
|
inlineprotected |
Returns the filename extension of a given filename.
|
inline |
Get an owning pointer to grid data associated with the grid.
|
inline |
Returns a reference to the grid.
|
inlineprotected |
Returns a reference to the grid pointer (std::shared_ptr<Grid>)
|
inline |
Check whether there is data associated with the grid.
|
inline |
Make the grid. Implement this method in the specialization of this class for a grid type.
|
inline |
Call loadBalance() function of the grid.
|
inlineprotected |
Makes a grid from a DGF file. This is used by grid managers that only support DGF.
|
inlineprotected |
|
inlineprotected |
Makes a structured cube grid using the structured grid factory.
|
inlineprotected |
Refines a grid after construction if GridParameterGroup.Refinement is set in the input file.
|
protected |
|
protected |
A state variable if the DGF Dune::GridPtr has been enabled. It is always enabled if a DGF grid file was used to create the grid.
|
protected |
A state variable if domain markers have been read from a Gmsh file.
|
protected |
|
protected |