#include <GridFill_fwd.hpp>
Discretizes the domain using n-dimensional grid with given endpoints and spacing h.
Only nodes that are inside the domain and at least h away from existing nodes are added. Gaps may appear at the boundary and BasicRelax can be used to smooth them.
Usage example:
Definition at line 30 of file GridFill_fwd.hpp.
Public Member Functions | |
| GridFill (const vec_t &bot, const vec_t &top) | |
Prepare to fill domain within [bot, top] bounding box. More... | |
| void | operator() (DomainDiscretization< vec_t > &domain, const scalar_t &h, int type=0) const |
Fills domain with a grid node distribution with spacing h. More... | |
Public Types | |
| enum | { dim = vec_t::dim } |
| Store dimension of the domain. More... | |
| typedef vec_t::scalar_t | scalar_t |
| Scalar type;. More... | |
| typedef vec_t | vector_t |
| Vector type. More... | |
Private Attributes | |
| vec_t | bot |
| Bottom left corner of the box to fill. More... | |
| vec_t | top |
| Top right corner of the box to fill. More... | |
| anonymous enum |
Store dimension of the domain.
| Enumerator | |
|---|---|
| dim | Dimensionality of the domain. |
Definition at line 35 of file GridFill_fwd.hpp.
| mm::GridFill< vec_t >::GridFill | ( | const vec_t & | bot, |
| const vec_t & | top | ||
| ) |
Prepare to fill domain within [bot, top] bounding box.
Definition at line 18 of file GridFill.hpp.
| void mm::GridFill< vec_t >::operator() | ( | DomainDiscretization< vec_t > & | domain, |
| const scalar_t & | h, | ||
| int | type = 0 |
||
| ) | const |
Fills domain with a grid node distribution with spacing h.
Newly added nodes are at least h away from all previous nodes.
| domain | Domain to fill with nodes. Can be partially filled. |
| h | Nodal spacing. |
| type | Type of the nodes. If 0 the engines default value is used. |
Definition at line 25 of file GridFill.hpp.
|
private |
Bottom left corner of the box to fill.
Definition at line 38 of file GridFill_fwd.hpp.
|
private |
Top right corner of the box to fill.
Definition at line 39 of file GridFill_fwd.hpp.