Expand description
GPU-accelerated heat-diffusion stencil dispatcher.
When the gpu feature is enabled, HeatKernelDispatcher performs an
explicit forward-Euler 2D heat-diffusion stencil update on a uniform grid.
When the feature is disabled, every method short-circuits to
GpuError::BackendUnavailable so the existing CPU heat-diffusion
solver can take over without any conditional compilation at the call
site.
The stencil discretises
∂T/∂t = α (∂²T/∂x² + ∂²T/∂y²)on a 2D grid with explicit forward-Euler time integration. The dispatcher holds Dirichlet boundary cells fixed.
Structs§
- Heat
Grid - Heat-diffusion grid and time-step description.
- Heat
Kernel Dispatcher - GPU-accelerated heat diffusion dispatcher.
- Heat
Step Output - Result of a multi-step heat-diffusion run.