Skip to main content

Module heat_kernel

Module heat_kernel 

Source
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§

HeatGrid
Heat-diffusion grid and time-step description.
HeatKernelDispatcher
GPU-accelerated heat diffusion dispatcher.
HeatStepOutput
Result of a multi-step heat-diffusion run.