27 #ifndef EWOMS_SIMPLEX_GRID_MANAGER_HH 28 #define EWOMS_SIMPLEX_GRID_MANAGER_HH 34 #include <dune/grid/utility/structuredgridfactory.hh> 35 #include <dune/common/fvector.hh> 40 namespace Properties {
59 template <
class TypeTag>
63 typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar;
65 typedef typename GET_PROP_TYPE(TypeTag, Grid) Grid;
67 typedef Dune::shared_ptr<Grid> GridPointer;
68 typedef typename Grid::ctype CoordScalar;
69 enum { dimWorld = Grid::dimensionworld };
70 typedef Dune::FieldVector<CoordScalar, dimWorld> GlobalPosition;
79 "The number of global refinements of the grid " 80 "executed after it was loaded");
82 "The size of the domain in x direction");
84 "The number of intervalls in x direction");
87 "The size of the domain in y direction");
89 "The number of intervalls in y direction");
93 "The size of the domain in z direction");
95 "The number of intervalls in z direction");
105 Dune::array<unsigned, dimWorld> cellRes;
106 GlobalPosition upperRight;
107 GlobalPosition lowerLeft;
123 simplexGrid_ = Dune::StructuredGridFactory<Grid>::createSimplexGrid(lowerLeft,
127 unsigned numRefinments =
EWOMS_GET_PARAM(TypeTag,
unsigned, GridGlobalRefinements);
128 simplexGrid_->globalRefine(numRefinments);
130 this->finalizeInit_();
137 {
return simplexGrid_; }
143 {
return *simplexGrid_; }
146 GridPointer simplexGrid_;
Definition: baseauxiliarymodule.hh:37
Provides the base class for most (all?) grid managers.
Definition: basegridmanager.hh:58
static void registerParameters()
Register all run-time parameters for the grid manager.
Definition: simplexgridmanager.hh:76
#define EWOMS_REGISTER_PARAM(TypeTag, ParamType, ParamName, Description)
Register a run-time parameter.
Definition: parametersystem.hh:68
This file provides the infrastructure to retrieve run-time parameters.
Provides a grid manager which a regular grid made of simplices.
Definition: simplexgridmanager.hh:60
#define EWOMS_GET_PARAM(TypeTag, ParamType, ParamName)
Retrieve a runtime parameter.
Definition: parametersystem.hh:99
Grid & grid()
Returns a reference to the grid.
Definition: simplexgridmanager.hh:136
Provides the magic behind the eWoms property system.
const Grid & grid() const
Returns a reference to the grid.
Definition: simplexgridmanager.hh:142
Manages the initializing and running of time dependent problems.
Definition: simulator.hh:75
#define NEW_PROP_TAG(PTagName)
Define a property tag.
Definition: propertysystem.hh:247
Defines a type tags and some fundamental properties all models.
SimplexGridManager(Simulator &simulator)
Create the Grid.
Definition: simplexgridmanager.hh:102