A creator class for dune grids. More...
#include <MeshCreator.hpp>
Public Types | |
enum | { dimension = G::dimension } |
enum | { dimworld = G::dimensionworld } |
using | Grid = AdaptiveGrid_t< G > |
using | HostGrid = typename Grid::HostGrid |
using | ctype = typename Grid::ctype |
Public Member Functions | |
MeshCreator (std::string const &name) | |
Construct a new MeshCreator. More... | |
std::unique_ptr< Grid > | create () const |
Create a new grid by inspecting the intifile parameter group [meshName] More... | |
std::unique_ptr< HostGrid > | create_cube_grid () const |
Create a structured cube grid. | |
std::unique_ptr< HostGrid > | create_simplex_grid () const |
Create a structured simplex grid. | |
std::vector< int > const & | boundaryIds () const |
Return the filled vector of boundary ids. NOTE: not all creators support reading this. | |
std::vector< int > const & | elementIds () const |
Return the filled vector of element ids. NOTE: not all creators support reading this. | |
Static Public Member Functions | |
static std::shared_ptr< Grid > | create (std::string name) |
Static create mthod. See create() | |
A creator class for dune grids.
|
inline |
Construct a new MeshCreator.
name | The name of the mesh used in the initfile |
|
inline |
Create a new grid by inspecting the intifile parameter group [meshName]
Reads first the parameter [meshName]->macro file name
and if set
Otherwise reads the parameter [meshName]->structured
and if set, creates:
Otherwise tries to create a grid depending on the grid type.
References MeshCreator< G >::create_cube_grid(), and MeshCreator< G >::create_simplex_grid().