Repository navigation
Update highlights:
- GPU runtime is identical to CPU with RK4, not just Euler.
- GPU supports temperature tracking.
- Test suite for various scenarios and GPU.
- Deep refactoring for better architecture and maintainability.
- Fixed semi-surface supported diffusion yielding inaccurate results for some geometries.
- Fixed a rare IndexError stemming from the Monte Carlo module.
GPU Acceleration
- GPU precursor calculation kernel now implements the RK4 + FTCS solution scheme that is identical to the CPU implementation, yielding identical results.
- GPU computation path now has kernels that accept arrays of residence time and diffusion coefficient, enabling support for thermally-activated process.
- Cellular automata remains CPU-only.
Semi-surface fix
The bug was causing artificial precursor depletion in semi-surface cells due to inclusion of semi-surface cells in the RDE, which was especially pronounced with higher beam currents.
- New solution algorithm clearly divides cells according to their usage: surface+semi-surface for diffusion, surface for RDE.
Refactoring
Improvements are introducing a dedicated architecture, clearer abstractions, transparent pipelines, better modularity, extensibility and significantly easier debugging.
- Process class refactored into 7 smaller dedicated classes.
- The simulation launch pipeline is segmented into reasonable and clear stages, represented by a dedicated class.
- MainPanel class refactored and its functionality distributed.
- Introduced application-wide logging.
- Introduced a dedicated time-stepper for intrinsic time tracking, thread sync and orchestration.
- Most cell configuration defining functions moved from Structure class to MLCCA class for clearer separation of concerns.
Testing
Added various testing scenarios:
- Deposition with and without CA
- Analytical vs numerical solution
- GPU vs CPU
- Flat substrate vs a single deposit layer
- Varying diffusion coefficients
- Added a sample Gaussian beam flux