AMDiS  0.3
The Adaptive Multi-Dimensional Simulation Toolbox
MeshCreator< G > Struct Template Reference

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()
 

Detailed Description

template<class G>
struct AMDiS::MeshCreator< G >

A creator class for dune grids.

Constructor & Destructor Documentation

◆ MeshCreator()

MeshCreator ( std::string const &  name)
inline

Construct a new MeshCreator.

Parameters
nameThe name of the mesh used in the initfile

Member Function Documentation

◆ create()

std::unique_ptr<Grid> create ( ) const
inline

Create a new grid by inspecting the intifile parameter group [meshName]

Reads first the parameter [meshName]->macro file name and if set

  • reads the grid from file

Otherwise reads the parameter [meshName]->structured and if set, creates:

  • cube: a structured cube grid
  • simplex: a structured simplex grid using a StructuredGridFactory

Otherwise tries to create a grid depending on the grid type.

References AMDiS::error_exit().


The documentation for this struct was generated from the following file: