A factory class for conveniently creating tensorproduct grids.
More...
#include <dune/grid/utility/tensorgridfactory.hh>
|
std::unique_ptr< Grid > | createGrid (Comm comm=Comm()) |
|
std::array< std::vector< ctype >, dim > | coords () const |
|
std::vector< ctype > & | operator[] (std::size_t d) |
| allow to manually tune the factory by overloading operator[] to export the coordinate vectors in the coordinate directories. More...
|
|
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 coordinate directories. More...
|
|
void | setStart (int d, ctype value) |
| set a starting value in a given direction d More...
|
|
void | fillIntervals (int d, int n, ctype h) |
| pushs n intervals of length h in direction d More...
|
|
void | fillRange (int d, int n, ctype end) |
| fills the range to end with n intervals in direction d More...
|
|
void | fillUntil (int d, ctype h, ctype end) |
| adds intervals in direction d until a given coordinate is reached More...
|
|
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. More...
|
|
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 More...
|
|
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 More...
|
|
void | print () |
| print the coordinate information given to the factory so far More...
|
|
template<typename
Grid>
class Dune::TensorGridFactory< Grid >
A factory class for conveniently creating tensorproduct grids.
- Template Parameters
-
◆ Comm
◆ ctype
◆ coords()
◆ createGrid()
◆ fillIntervals()
pushs n intervals of length h in direction d
- Parameters
-
d | the coordinate direction |
n | the number of intervals to add |
h | the interval length |
Given a vector with last element , this will add elements such that .
◆ fillRange()
fills the range to end with n intervals in direction d
- Parameters
-
d | the coordinate direction |
n | the number of intervals to add |
end | the coordinate on the upper border of the range |
Given a vector with last element , this will add elements such that .
◆ fillUntil()
◆ geometricFillIntervals()
◆ geometricFillRange()
◆ geometricFillUntil()
◆ operator[]() [1/2]
allow to manually tune the factory by overloading operator[] to export the coordinate vectors in the coordinate directories.
◆ operator[]() [2/2]
allow to manually tune the factory by overloading operator[] to export the coordinate vectors in the coordinate directories.
◆ print()
print the coordinate information given to the factory so far
◆ setStart()
set a starting value in a given direction d
- Parameters
-
d | the coordinate direction |
value | the value to set |
This resizes the coordinate vector for the given direction to 1. Not using this function will result in 0.0 to be used as a lower bound of the coordinate range.
◆ dim
The documentation for this class was generated from the following file: