Some regions of an expression with their neighbors: a smaller expression in which those regions have the same solids and the same surfaces, with the same regions on both sides of each, numbered anew (see regionNeighborhood()).
More...
|
|
| RegionNeighborhood ()=delete |
| | No empty neighborhood: see regionNeighborhood().
|
| |
| const Expr< T > & | object () const noexcept |
| | The smaller expression, to compile into a tape.
|
| |
| uint32_t | getNumRegions () const noexcept |
| | How many regions it has, the background (region 0) included.
|
| |
| uint32_t | wholeRegion (uint32_t a_region) const |
| | The whole expression's region that one of its regions is.
|
| |
| uint32_t | region (uint32_t a_wholeRegion) const |
| | Its region that a region of the whole expression is.
|
| |
| uint32_t | surface (uint32_t a_wholeSurface) const |
| | Its surface that a surface of the whole expression is (ExprIndex::getFirstSurface() numbering).
|
| |
| uint32_t | wholeSurface (uint32_t a_surface) const |
| | The whole expression's surface that one of its surfaces is.
|
| |
| DomainSetup | setup (const DomainSetup &a_wholeSetup) const |
| | A setup written for the whole expression, translated to this one: regions through the map, materials and surface labels by their names, surfaces through the leaves kept.
|
| |
template<class T>
class EBGeometry::RegionNeighborhood< T >
Some regions of an expression with their neighbors: a smaller expression in which those regions have the same solids and the same surfaces, with the same regions on both sides of each, numbered anew (see regionNeighborhood()).
What a domain computes on, compiled on its own: a tape of object() gives the regions of the neighborhood the same signs (inside, outside) as the whole expression's tape gives them, and their surfaces the same regions, materials and labels on both sides, so a domain built for it from setup() has the same subdomains and surface groups. Away from those regions, the values of their functions may differ (a dropped region no longer cuts a kept one there), never their signs. The regions, surfaces and labels are numbered as ExprIndex numbers those of object(); wholeRegion() and region() map the regions both ways. Host only, a plain value.
- Template Parameters
-
| T | Floating-point precision. |
A setup written for the whole expression, translated to this one: regions through the map, materials and surface labels by their names, surfaces through the leaves kept.
A selector that names a region, a material, a label or a surface that was dropped selects nothing here, and is left out; every other selector selects the same surfaces of the neighborhood's regions as before. The subdomains and the surface groups keep their numbers. Every region of the setup's subdomains must be in the neighborhood (build it from them, as Language::Model::domainObject() does): aborts with a message otherwise, in every build.
- Parameters
-
| [in] | a_wholeSetup | A setup for the whole expression. |
- Returns
- The setup for object().