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

Provides a grid manager for OneDGrids from information in the input file.
All keys are expected to be in group GridParameterGroup. The following keys are recognized:
Public Types | |
| using | Grid = Dune::OneDGrid |
| 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 | loadBalance () |
| Call loadBalance() function of the grid. OneDGrid is not parallel an thus cannot communicate. | |
| void | init (const std::string &modelParamGroup="") |
| Make the grid. Implement this method in the specialization of this class for a grid type. | |
| Dune::OneDGrid & | 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::OneDGrid > & | gridPtr () |
| Returns a reference to the grid pointer (std::shared_ptr<Grid>). | |
| Dune::GridPtr< Dune::OneDGrid > & | 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::OneDGrid > | gridPtr_ |
| Dune::GridPtr< Dune::OneDGrid > | dgfGridPtr_ |
| std::shared_ptr< GridData > | gridData_ |
| using Dumux::GridManagerBase< Dune::OneDGrid >::Dune::OneDGrid |
| using Dumux::GridManager< Dune::OneDGrid >::Grid = Dune::OneDGrid |
| using Dumux::GridManagerBase< Dune::OneDGrid >::GridData |
| using Dumux::GridManager< Dune::OneDGrid >::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.
|
inline |
Call loadBalance() function of the grid. OneDGrid is not parallel an thus cannot communicate.
|
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 |