Skip to main content

Module gpu_thermal

Module gpu_thermal 

Source
Expand description

GPU-accelerated thermal computation (CPU mock backend via Rayon).

Implements a parallel finite-difference heat equation solver that mirrors the structure of a GPU compute dispatch. The “GPU” here is simulated via Rayon parallel iterators, making it easy to swap in a real GPU backend later.

Structs§

GpuThermalSolver
GPU-accelerated (CPU mock) thermal solver for 3-D structured grids.
HeatSource
Volumetric heat source specification.

Enums§

ThermalBc
Boundary condition type for thermal simulations.

Functions§

gpu_heat_diffusion
Perform one parallel heat-equation update step (mock GPU dispatch).
gpu_heat_source
Apply volumetric heat sources to the temperature field (mock GPU kernel).
temperature_gradient
Compute the temperature gradient at every interior cell using central differences.
thermal_boundary_apply
Apply boundary conditions to the temperature field.
thermal_equilibration
Check whether the temperature field has reached thermal equilibrium.