template<class ctype, int dim>
class Dumux::GridManager< Dune::YaspGrid< dim, Dune::TensorProductCoordinates< ctype, dim > > >
Provides a grid manager for YaspGrids with different zones and grading.
All keys are expected to be in group GridParameterGroup. The following keys are recognized:
- Positions0 : position array for x-coordinate
- Positions1 : position array for y-coordinate
- Positions2 : position array for z-coordinate
- Cells0 : number of cells array for x-coordinate
- Cells1 : number of cells array for y-coordinate
- Cells2 : number of cells array for z-coordinate
- Grading0 : grading factor array for x-coordinate
- Grading1 : grading factor array for y-coordinate
- Grading2 : grading factor array for z-coordinate
- Verbosity : whether the grid construction should output to standard out
- Periodic : true or false for each direction
- Overlap : overlap size in cells
- Partitioning : a non-standard load-balancing, number of processors per direction
- KeepPyhsicalOverlap : whether to keep the physical overlap in physical size or in number of cells upon refinement
- Refinement : the number of global refines to apply initially.
The grading factor \( g \) specifies the ratio between the next and the current cell size: \( g = \frac{h_{i+1}}{h_i} \). Negative grading factors are converted to \( g = -\frac{1}{g_\textrm{negative}} \) to avoid issues with imprecise fraction numbers.
|
void | init (const std::string &modelParamGroup="") |
| Make the grid. This is implemented by specializations of this method. More...
|
|
void | init (const std::array< std::vector< ctype >, dim > &positions, const std::array< std::vector< int >, dim > &cells, const std::array< std::vector< ctype >, dim > &grading, const std::string &modelParamGroup="") |
| Make the grid using input data not read from the input file. 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...
|
|
|
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...
|
|