|
| | Domain (Pool &a_tables, const TapeType &a_tape, const DomainSetup &a_setup) |
| | Build a domain over a tape.
|
| |
| const TapeType & | tape () const noexcept |
| | The tape the domain was built for.
|
| |
| Subdomains | subdomains () const noexcept |
| | The subdomains, for the tape's own queries that take them (Tape::firstSurface(ray, ..., subdomains, ...)).
|
| |
| SurfaceGroups | surfaceGroups () const noexcept |
| | The surface groups.
|
| |
| uint32_t | getNumSubdomainFunctions () const noexcept |
| | How many functions signedDistances() gives: one per subdomain, then Excluded's.
|
| |
| bool | computesIn (const uint32_t a_region) const noexcept |
| | Whether it computes in a region.
|
| |
| bool | touches (const uint32_t a_first, const uint32_t a_second) const noexcept |
| | Whether a surface between two regions is one it must give a condition: one side or both in its regions.
|
| |
| uint32_t | subdomainAt (const Vec3T< T > &a_point) const noexcept |
| | The subdomain a point is in: that of the region it is in, or Excluded.
|
| |
| T | signedDistance (const Vec3T< T > &a_point, const uint32_t a_subdomain) const noexcept |
| | A subdomain's function (Tape::signedDistance(p, subdomains, subdomain)), or Excluded's, negative exactly in the regions of no subdomain.
|
| |
| void | signedDistances (const Vec3T< T > &a_point, T *a_values, const uint32_t a_capacity) const noexcept |
| | Every subdomain's function at a point, and Excluded's, each region's function evaluated once: what a cut-cell code samples at a node. The same values as signedDistance(), one by one.
|
| |
| template<std::size_t N> |
| void | signedDistances (const Vec3T< T > &a_point, T(&a_values)[N]) const noexcept |
| | Every subdomain's function at a point, and Excluded's, into an array whose size is the capacity (see signedDistances()).
|
| |
| SurfaceRef< T > | closestSurface (const Vec3T< T > &a_point, const uint32_t a_subdomain) const noexcept |
| | The surface of a subdomain closest to a point, with what is on its other side (Tape::closestSurface(p,
subdomains, subdomain)): never a contact between two of its own regions.
|
| |
| SurfaceRole | role (const SurfaceRef< T > &a_surface) const noexcept |
| | What a surface is to the domain (Subdomains::role()).
|
| |
| uint32_t | surfaceGroupOf (const SurfaceRef< T > &a_surface) const noexcept |
| | A surface's group (SurfaceGroups::surfaceGroupOf()).
|
| |
| Domain | rebasedView (const Pool &a_pool) const |
| | A view resolving against mirrors, the tape and the tables in one pool.
|
| |
| Domain | rebasedView (const Pool &a_tapePool, const Pool &a_tablesPool) const |
| | A view resolving against mirrors, the tape and the tables in two pools.
|
| |
Public Member Functions inherited from EBGeometry::PoolHandle |
| PoolLocation | location () const noexcept |
| | Where this handle's arrays live.
|
| |
| bool | isAttachedTo (const Pool &a_pool) const noexcept |
| | Check whether this handle's arrays were reserved from a_pool.
|
| |
|
Protected Member Functions inherited from EBGeometry::PoolHandle |
|
| PoolHandle () noexcept=default |
| | An unset location; the first reservation attaches it.
|
| |
| | PoolHandle (const PoolLocation &a_location) noexcept |
| | Adopt a location, as a handle rebuilt from a stored layout does.
|
| |
| | PoolHandle (const PoolHandle &) noexcept=default |
| | Copy a handle, as a derived handle's copy does.
|
| |
|
| PoolHandle (PoolHandle &&) noexcept=default |
| | Move a handle; the same as a copy.
|
| |
| PoolHandle & | operator= (const PoolHandle &) noexcept=default |
| | Copy-assign a handle, as a derived handle's assignment does.
|
| |
| PoolHandle & | operator= (PoolHandle &&) noexcept=default |
| | Move-assign a handle; the same as a copy.
|
| |
|
| ~PoolHandle () noexcept=default |
| | Destructor; protected, since a PoolHandle exists only as the base of a handle.
|
| |
| void * | base () noexcept |
| | The base address this handle's offsets resolve against; see PoolLocation::base().
|
| |
| const void * | base () const noexcept |
| | The base address this handle's offsets resolve against, for read-only access.
|
| |
| void | attach (const Pool &a_pool, const char *a_who, const bool a_deviceWritten=false) noexcept |
| | Follow a_pool, as the first reservation does; see PoolLocation::attach().
|
| |
| PoolLocation | rebasedLocation (const Pool &a_pool, uint64_t a_endByte, const char *a_who) const noexcept |
| | The location of this handle's arrays in another pool of its mirror chain; see PoolLocation::rebasedOnto().
|
| |
| void | setLocation (const PoolLocation &a_location) noexcept |
| | Replace the location, for a view or a copy made by a derived handle.
|
| |
template<class T, class... UserPrimitives>
class EBGeometry::Domain< T, UserPrimitives >
A computational domain over a tape, for a downstream code (a solver EBGeometry does not provide): the regions it computes in (its subdomains) and its surface groups (each a set of surfaces the caller gives one meaning, a boundary condition say: named by the caller, numbered here), with the queries a cut-cell code makes.
Built on the host from a DomainSetup, for one tape, which it holds: its queries take no tape, so a domain cannot be used with a tape it was not built for. Its tables, a subdomain per region of the tape and the selectors with their surface groups, live in a pool (the tables pool); there is no limit on subdomains, surface groups or selectors. A trivially copyable handle (see PoolHandle): rebasedView() moves it to a device, where every query is callable.
The tables pool is usually the tape's own: one mirror, one lifetime. It may be another one, so that a domain built after the tape's pool was mirrored (a viewer's edited surface groups, a solver changing its setup) costs a copy of the small tables only, never the geometry. That is why a domain holds its tape as a handle, with the tape's own location, beside the location of its tables: the one pool-resident class holding a second handle rather than the layouts of its parts, so that several domains can share one tape whose pool is frozen.
The domain divides space among its subdomains and Excluded, the regions in none (where it does not compute). Every point is in one of them (subdomainAt()), and each has a function negative exactly in it (signedDistance()), so that at a point, off the surfaces, exactly one is negative. A cut-cell code samples them all at a node (signedDistances()): an edge whose ends are in different subdomains (or Excluded) crosses a surface, an interface between two subdomains (where their two functions are zero, with opposite signs) or a subdomain's boundary with the excluded regions (where its function is zero); its root along the edge is the crossing. Excluded's function is the negative of the function of all the subdomains together. Materials and their properties are the regions' (MaterialLabel()).
A domain and every copy and view of it need the tape's pool and the tables pool (or their mirrors) to outlive them.
- Template Parameters
-
| T | Floating-point precision, the tape's. |
| UserPrimitives | The tape's user primitive types and features. Both deduced from the constructor. |