A grid creator that matches a free-flow grid to a PNM grid. More...
#include <dumux/multidomain/boundary/freeflowporenetwork/snappygridmanager.hh>
A grid creator that matches a free-flow grid to a PNM grid.
Public Types | |
using | Grid = Dune::YaspGrid< dim, Dune::TensorProductCoordinates< Scalar, dim > > |
using | GridData = Dumux::GridData< Grid > |
Public Member Functions | |
void | init (const OtherGrid &otherGrid, const LowDimGridData &otherData, const std::string &modelParamGroup="") |
Make the grid. More... | |
const GridConstructionData & | getGridConstructionData () const |
Return data used to create the snappy grid (needed for Dune::TensorProductCoordinates) and the locations of pores intersecting with the interface. More... | |
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 |
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::PoreNetwork::SnappyGridManager< dim, OtherGridCreator, DiscMethod >::Grid = Dune::YaspGrid<dim, Dune::TensorProductCoordinates<Scalar, dim> > |
|
inherited |
|
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.
|
inline |
Return data used to create the snappy grid (needed for Dune::TensorProductCoordinates) and the locations of pores intersecting with the interface.
|
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.
|
inlineinherited |
Make the grid. Implement this method in the specialization of this class for a grid type.
|
inlineinherited |
Call loadBalance() function of the grid.
|
inlineprotectedinherited |
Makes a grid from a DGF file. This is used by grid managers that only support DGF.
|
inlineprotectedinherited |
Makes a grid from a file. We currently support.
|
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 |