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 | GridData = Dumux::GridData< Grid > |
Public Member Functions | |
void | init (const std::string &modelParamGroup="") |
Make the grid. This is implemented by specializations of this method. More... | |
void | loadBalance () |
Call loadBalance() function of the grid. OneDGrid is not parallel an thus cannot communicate. More... | |
Grid & | grid () |
Returns a reference to 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 |
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... | |
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_ |
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_ |
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::GridManager< Dune::OneDGrid >::Grid = Dune::OneDGrid |
|
inherited |
using Dumux::GridManager< Dune::OneDGrid >::ParentType = GridManagerBase<Grid> |
|
protectedinherited |
The cell types for structured grids.
|
inlineprotectedinherited |
Returns a reference to the DGF grid pointer (Dune::GridPtr<Grid>).
|
inlineprotectedinherited |
Returns the filename extension of a given filename.
|
inlineinherited |
Get an owning pointer to grid data associated with the grid.
|
inlineinherited |
Returns a reference to the grid.
|
inlineprotectedinherited |
Returns a reference to the grid pointer (std::shared_ptr<Grid>)
|
inlineinherited |
Check whether there is data associated with the grid.
|
inline |
Make the grid. This is implemented by specializations of this method.
|
inline |
Call loadBalance() function of the grid. OneDGrid is not parallel an thus cannot communicate.
|
inlineprotectedinherited |
Makes a grid from a DGF file. This is used by grid managers that only support DGF.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Makes a structured cube grid using the structured grid factory.
|
inlineprotectedinherited |
Refines a grid after construction if GridParameterGroup.Refinement is set in the input file.
|
protectedinherited |
|
protectedinherited |
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.
|
protectedinherited |
A state variable if domain markers have been read from a Gmsh file.
|
protectedinherited |
|
protectedinherited |