Skip to content

Wakis v0.6.0

Choose a tag to compare

@elenafuengar elenafuengar released this 27 May 13:26
· 214 commits to main since this release

Wakis v0.6.0

πŸš€ New Features

  • πŸ–ΌοΈ Plotting

    • Unified plotting tools for both MPI and non-MPI simulations.
    • plot1D now supports field visualization independently of MPI use.
    • Plot2D supports parallel execution.
    • Error handling added for plot3D and plot3DonSTL when use_mpi = True.
    • Support for dpi and return_handles in 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.
  • ⚑ 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 and mpi_gather_asField() to reconstruct a Field object.
    • MPI-safe support integrated into update() and field getter logic.
    • Introduced save_state() method for checkpointing during MPI runs together with load_state(). Added support for MPI save state too.
    • Feature in progress: multiGPU support (use_GPU=True when use_MPI=True) for distributed simulations (Linux only!).
    • Added missing docstrings (Numpy-style)
  • πŸ“₯ 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).
  • 🌊 WakeSolver

    • Refactored to internally store the full longitudinal domain.
    • skip_cells now acts only at analysis level, preserving resolution.
      • add_space and use_edt retained for compatibility, but add_space is deprecated for new parameter skip_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 WakePotential integration -> solves issue #12
    • Enhanced extrapolation method with iddefix.
    • New example 004 for wakefield simulation with MPI+GPU configuration.
  • πŸ›‘οΈ Security & Documentation

    • Added SECURITY.md to 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 with neffint, and power loss calculation with BIHC.
    • Added a Table of Contents (ToC) to the documentation for easier navigation.
    • Expanded installation guide with multiGPU configuration and MPI-aware domain partitioning.

πŸ’— 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.
  • πŸ“ Examples:

    • notebook 003 β†’ MPI wakefield simulation using mpi4py.
    • notebook 005 β†’ Full MPI simulation inside Jupyter using ipyparallel + mpi4py.
    • New example 003 with MPI + GPU configuration for large-scale simulations.
  • πŸ“ Notebooks:

    • 005 β†’ Full MPI simulation inside Jupyter using ipyparallel + mpi4py.
    • New Jupyter notebook showcasing multiGPU configuration.

πŸ› Bugfixes

  • Fixed crash in plot3D and plot3DonSTL when use_mpi=True.
  • Fixed default use_mpi=True to now default to False for 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

  • @mctfr – PR #11 Contributed improvements to installation instructions in the documentation.

πŸ“ 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