Repository navigation
Wakis v0.6.0
Wakis v0.6.0
π New Features
-
πΌοΈ Plotting
- Unified plotting tools for both MPI and non-MPI simulations.
plot1Dnow supports field visualization independently of MPI use.Plot2Dsupports parallel execution.- Error handling added for
plot3Dandplot3DonSTLwhenuse_mpi = True. - Support for
dpiandreturn_handlesin plot utilities to further customize plots. - Enhanced examples and notebook suite visualization cells.
-
π§± GridFIT3D
- Added
mpi_initialize()to handle domain decomposition (Z-slicing). - New method
mpi_gather_asGrid()to retrieve the full global grid from distributed subdomains. - Full support for multi-GPU domain decomposition through
cupy(CUDA-aware, Linux only). - Improved communication layer for subdomain synchronization via ghost cells.
- Added
-
β‘ SolverFIT3D
- MPI-compatible time-stepping routine
mpi_one_step()using a leapfrog scheme. mpi_communicate()to send/receive boundary field values between subdomains.mpi_gather()to retrieve field data as a NumPy array andmpi_gather_asField()to reconstruct aFieldobject.- MPI-safe support integrated into
update()and field getter logic. - Introduced
save_state()method for checkpointing during MPI runs together withload_state(). Added support for MPI save state too. - Feature in progress: multiGPU support (
use_GPU=Truewhenuse_MPI=True) for distributed simulations (Linux only!). - Added missing docstrings (Numpy-style)
- MPI-compatible time-stepping routine
-
π₯ Sources
- Beam:
- Added
plot(t)to visualize beam current evolution. - Generalized
update()to work with or without MPI. - Enhanced support for time-aligned injection with beta and MPI shifts.
- New example for MPI+GPU simulation (topic in progress).
- Added
- Beam:
-
π WakeSolver
- Refactored to internally store the full longitudinal domain.
skip_cellsnow acts only at analysis level, preserving resolution.add_spaceanduse_edtretained for compatibility, butadd_spaceis deprecated for new parameterskip_cells, more adequate to its utility (i.e. skip cells in the integration path).
- Future-ready structure for distributed wake solving with MPI-aware GPU.
- Improved numerical robustness by preventing indexing errors in
WakePotentialintegration -> solves issue #12 - Enhanced extrapolation method with
iddefix. - New example
004for wakefield simulation with MPI+GPU configuration.
-
π‘οΈ Security & Documentation
- Added
SECURITY.mdto describe supported versions and vulnerability reporting. - Improved installation guide with Miniforge (supports both Windows/Linux) and MPI setup instructions.
- Added new issue templates for Bug Report and Feature Request with markdown formatting and emojis for readability.
- Addition of the Physics Guide, with detailed physics models and numerical methods explanations.
- User's guide updated to include Wake extrapolation with
iddefix, Wake function calculation withneffint, and power loss calculation withBIHC. - Added a Table of Contents (ToC) to the documentation for easier navigation.
- Expanded installation guide with multiGPU configuration and MPI-aware domain partitioning.
- Added
π Other Tag highlights
-
π Nightly tests with GitHub Actions:
- Enabled infrastructure for MPI-based test cases (
test_003,test_005). - Improved test coverage for MPI and GPU simulations.
- MultiGPU end-to-end tests for distributed domain synchronization.
- Enabled infrastructure for MPI-based test cases (
-
π Examples:
- notebook
003β MPI wakefield simulation usingmpi4py. - notebook
005β Full MPI simulation inside Jupyter usingipyparallel+mpi4py. - New example
003with MPI + GPU configuration for large-scale simulations.
- notebook
-
π Notebooks:
005β Full MPI simulation inside Jupyter usingipyparallel+mpi4py.- New Jupyter notebook showcasing multiGPU configuration.
π Bugfixes
- Fixed crash in
plot3Dandplot3DonSTLwhenuse_mpi=True. - Fixed default
use_mpi=Trueto now default toFalsefor general usage. - Fixed a typo in beam injection routine
solver.z.min(). - Fixed potential rounding error in wake potential integration with negligible performance impact (~0.1ns) -> solves issue #12
- Corrected default beam injection time to align with CST Wakefield Solver reference in beta<1 cases.
- Fixed minor typos in the documentation.
- Fixed synchronization issues with MPI runs when saving states.
- Resolved encoding issues when installing in Windows editable mode.
- Corrected result folder naming in GPU example
002.
ππ©βπ» New Contributors
π Full changelog
| 78 commits | π Docs | π§ͺ Tests | π Fixes | π¨ Style | β¨ Features | Other |
|---|---|---|---|---|---|---|
| % of Commits | 30.3% | 10.5% | 9.2% | 10.5% | 22.4% | 17.1 |
Full Changelog: v0.5.1...v0.6.0