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§
- GpuThermal
Solver - GPU-accelerated (CPU mock) thermal solver for 3-D structured grids.
- Heat
Source - Volumetric heat source specification.
Enums§
- Thermal
Bc - 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.