Provides a grid manager for YaspGrids from information in the input file. More...
#include <dumux/io/grid/gridmanager_yasp.hh>

Provides a grid manager for YaspGrids from information in the input file.
All keys are expected to be in group GridParameterGroup. The following keys are recognized:
Public Types | |
| using | Grid = typename Dune::YaspGrid<dim, Coordinates> |
| using | ParentType = GridManagerBase<Grid> |
| using | Grid |
| using | GridData |
Public Member Functions | |
| void | init (const std::string &modelParamGroup="") |
| Make the grid. This is implemented by specializations of this method. | |
| void | init (const std::string &modelParamGroup="") |
| Make the grid. Implement this method in the specialization of this class for a grid type. | |
| Dune::YaspGrid< dim, Coordinates > & | grid () |
| Returns a reference to the grid. | |
| void | loadBalance () |
| Call loadBalance() function of the grid. | |
| std::shared_ptr< GridData > | getGridData () const |
Protected Types | |
| enum | CellType |
| The cell types for structured grids. More... | |
Protected Member Functions | |
| std::shared_ptr< Dune::YaspGrid< dim, Coordinates > > & | gridPtr () |
| Returns a reference to the grid pointer (std::shared_ptr<Grid>). | |
| Dune::GridPtr< Dune::YaspGrid< dim, Coordinates > > & | dgfGridPtr () |
| Returns a reference to the DGF grid pointer (Dune::GridPtr<Grid>). | |
| std::string | getFileExtension (const std::string &fileName) const |
| Returns the filename extension of a given filename. | |
| void | makeGridFromFile (const std::string &fileName, const std::string &modelParamGroup) |
| Makes a grid from a file. We currently support. | |
| void | makeGridFromDgfFile (const std::string &fileName) |
| Makes a grid from a DGF file. This is used by grid managers that only support DGF. | |
| void | makeStructuredGrid (CellType cellType, const std::string &modelParamGroup) |
| Makes a structured cube grid using the structured grid factory. | |
| void | maybeRefineGrid (const std::string &modelParamGroup) |
| Refines a grid after construction if GridParameterGroup.Refinement is set in the input file. | |
| void | makeStructuredGrid (CellType cellType, const std::string &modelParamGroup) |
| Makes a structured cube grid using the structured grid factory. | |
Protected Attributes | |
| bool | enableDgfGridPointer_ |
| 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. | |
| bool | enableGmshDomainMarkers_ |
| A state variable if domain markers have been read from a Gmsh file. | |
| std::shared_ptr< Dune::YaspGrid< dim, Coordinates > > | gridPtr_ |
| Dune::GridPtr< Dune::YaspGrid< dim, Coordinates > > | dgfGridPtr_ |
| std::shared_ptr< GridData > | gridData_ |
| using Dumux::GridManagerBase< Dune::YaspGrid< dim, Coordinates > >::Dune::YaspGrid< dim, Coordinates > |
| using Dumux::GridManager< Dune::YaspGrid< dim, Coordinates > >::Grid = typename Dune::YaspGrid<dim, Coordinates> |
| using Dumux::GridManagerBase< Dune::YaspGrid< dim, Coordinates > >::GridData |
| using Dumux::GridManager< Dune::YaspGrid< dim, Coordinates > >::ParentType = GridManagerBase<Grid> |
|
protected |
The cell types for structured grids.
|
inlineprotected |
Returns a reference to the DGF grid pointer (Dune::GridPtr<Grid>).
|
inlineprotected |
Returns the filename extension of a given filename.
|
inline |
|
inline |
Returns a reference to the grid.
|
inlineprotected |
Returns a reference to the grid pointer (std::shared_ptr<Grid>).
|
inline |
Make the grid. Implement this method in the specialization of this class for a grid type.
|
inline |
Make the grid. This is implemented by specializations of this method.
|
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.
|
inlineprotectedinherited |
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 |