|
dune-grid 2.8.0
|
Loading...
Searching...
No Matches
tensorgridfactory.hh
Go to the documentation of this file.
void push_back(const MemberType &item)
int size() const
iterator end()
bool empty() const
iterator begin()
size_type dim() const
std::ptrdiff_t index() const
#define DUNE_THROW(E, m)
Implements a multiindex with arbitrary dimension and fixed index ranges This is used by various facto...
Include standard header files.
GridFamily::Traits::CollectiveCommunication CollectiveCommunication
A type that is a model of Dune::CollectiveCommunication. It provides a portable way for collective co...
Definition common/grid.hh:518
ct ctype
Define type used for coordinates in grid module.
Definition common/grid.hh:521
Provide a generic factory class for unstructured grids.
Definition common/gridfactory.hh:312
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)
Insert an element into the coarse grid.
Definition common/gridfactory.hh:344
virtual void insertVertex(const FieldVector< ctype, dimworld > &pos)
Insert a vertex into the coarse grid.
Definition common/gridfactory.hh:333
virtual std::unique_ptr< GridType > createGrid()
Finalize grid creation and hand over the grid.
Definition common/gridfactory.hh:370
Definition multiindex.hh:17
size_t cycle() const
Compute how many times you can call operator++ before getting to (0,...,0) again.
Definition multiindex.hh:46
Definition tensorgridfactory.hh:304
TensorGridFactoryCreator(const TensorGridFactory< Grid > &factory)
Definition tensorgridfactory.hh:310
std::unique_ptr< Grid > createGrid(Comm comm)
Definition tensorgridfactory.hh:312
Grid::Traits::CollectiveCommunication Comm
Definition tensorgridfactory.hh:306
A factory class for conveniently creating tensorproduct grids.
Definition tensorgridfactory.hh:40
void fillRange(int d, int n, ctype end)
fills the range to end with n intervals in direction d
Definition tensorgridfactory.hh:106
void geometricFillRange(int d, int n, ctype end, ctype h=static_cast< ctype >(0), bool first=true)
fills a coordinate range in direction d with n intervals according to a geometric series
Definition tensorgridfactory.hh:195
void fillUntil(int d, ctype h, ctype end)
adds intervals in direction d until a given coordinate is reached
Definition tensorgridfactory.hh:123
void geometricFillUntil(int d, ctype ratio, ctype end, ctype h0=static_cast< ctype >(0))
adds intervals in direction d according with a given length ratio until a given coordinate is reached
Definition tensorgridfactory.hh:168
void print()
print the coordinate information given to the factory so far
Definition tensorgridfactory.hh:217
void fillIntervals(int d, int n, ctype h)
pushs n intervals of length h in direction d
Definition tensorgridfactory.hh:91
void setStart(int d, ctype value)
set a starting value in a given direction d
Definition tensorgridfactory.hh:77
void geometricFillIntervals(int d, int n, ctype ratio, ctype h0=static_cast< ctype >(0))
adds n intervals in direction d with a given length ratio and a given starting interval length.
Definition tensorgridfactory.hh:142
std::vector< ctype > & operator[](std::size_t d)
allow to manually tune the factory by overloading operator[] to export the coordinate vectors in the ...
Definition tensorgridfactory.hh:58
const std::vector< ctype > & operator[](std::size_t d) const
allow to manually tune the factory by overloading operator[] to export the coordinate vectors in the ...
Definition tensorgridfactory.hh:64
std::unique_ptr< Grid > createGrid(Comm comm=Comm())
Definition tensorgridfactory.hh:46
Grid::Traits::CollectiveCommunication Comm
Definition tensorgridfactory.hh:42
std::array< std::vector< ctype >, dim > coords() const
Definition tensorgridfactory.hh:52
std::unique_ptr< Grid > createGrid(Comm comm)
Definition tensorgridfactory.hh:394
TensorGridFactoryCreator(const TensorGridFactory< Grid > &factory)
Definition tensorgridfactory.hh:392
Grid::CollectiveCommunication Comm
Definition tensorgridfactory.hh:390
YaspGrid< dim, TensorProductCoordinates< ctype, dim > > Grid
Definition tensorgridfactory.hh:389
Coordinate container for a tensor product YaspGrid.
Definition coordinates.hh:243
Provide a generic factory class for unstructured grids.
T back(T... args)
T begin(T... args)
T end(T... args)
T endl(T... args)
T pow(T... args)
T push_back(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8