|
core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
Owns everything a SceneQueryView needs on ONE memory space: the DeviceScene, the extracted sphere-union arrays when the scene is a plain sphere union (mode selected ONCE, here), the candidate-grid CSR, and the periodicity. More...
#include <device_scene.hpp>
Public Member Functions | |
| SceneQueryDevice ()=default | |
| SceneQueryView< Real > | view () const |
| POD view for kernels; valid while this object lives. | |
| bool | sphereFast () const |
| bool | accelerated () const |
| const DeviceScene< Real, MemSpace > & | scene () const |
Static Public Member Functions | |
| static SceneQueryDevice | build (const SceneBuilder< Real > &b, Vec3< Real > origin, Vec3< Real > extent, PeriodicBox< Real > box, bool accelerate=true, int nbHint=0) |
| Build from a host SceneBuilder. | |
Owns everything a SceneQueryView needs on ONE memory space: the DeviceScene, the extracted sphere-union arrays when the scene is a plain sphere union (mode selected ONCE, here), the candidate-grid CSR, and the periodicity.
flow's set_scene, the resolved-CFD-DEM coupling and the AMR device builders are meant to hold one of these instead of private uploads.
Definition at line 165 of file device_scene.hpp.
|
default |
|
inlinestatic |
Build from a host SceneBuilder.
origin/extent bound the candidate grid's coverage (queries outside fall back to full scans — exact); accelerate=false skips the grid (right for a handful of instances, e.g. a single stirrer).
Definition at line 172 of file device_scene.hpp.
References peclet::core::geom::buildSceneCandidateGrid(), peclet::core::geom::buildSphereCandidateGrid(), peclet::core::geom::extractSphereUnion(), peclet::core::geom::DeviceScene< Real, MemSpace >::from(), and peclet::core::geom::SceneBuilder< Real >::view().
|
inline |
POD view for kernels; valid while this object lives.
Definition at line 204 of file device_scene.hpp.
References peclet::core::geom::SceneQueryView< Real >::box, peclet::core::geom::SceneQueryView< Real >::grid, peclet::core::geom::SceneQueryView< Real >::scene, and peclet::core::geom::SceneQueryView< Real >::u.
|
inline |
Definition at line 225 of file device_scene.hpp.
|
inline |
Definition at line 226 of file device_scene.hpp.
|
inline |
Definition at line 227 of file device_scene.hpp.