Skip to content

3D electromagnetic time-domain solver, specialized in wake potential and beam-coupling impedance computation for particle accelerators

License

Notifications You must be signed in to change notification settings

ImpedanCEI/wakis

Repository files navigation

wakis

Wake and Impedance Solver

Documentation Status

wakis is a 3D Time-domain Electromagnetic solver that solves the Integral form of Maxwell's equations using the Finite Integration Technique (FIT) numerical method. It computes the longitudinal and transverse wake potential and beam-coupling impedance from the simulated electric and magnetic fields. It is also a multi-purpose solver, capable of simulating planewaves interaction with nano-structures, optical diffraction, and much more!

About

🚀 Some of wakis features:

  • Material tensors: permittivity $\varepsilon$, permeability $\mu$, conductivity $\sigma$. Possibility of anisotropy.
  • CAD geometry importer (.stl format) for definition of embedded boundaries and material regions, based on pyvista
  • Boundary conditions: PEC, PMC, Periodic, ABC-FOEXTRAP
  • Different time-domain sources: particle beam, planewave, gaussian wavepacket
  • 100% python, fully exposed API (material tensors, fields $E$, $H$, $J$). Matrix operators based on numpy and scipy.sparse routines ensure fast calculations.
  • 1d, 2d, 3d built-in plotting on-the-fly
  • Optimized memory consumption
  • GPU acceleration: coming soon

How to use

📖 Documentation, powered by sphinx, is available at wakis.readthedocs.io

Check 📁 benchmarks/ for beam-coupling impedance calculations & comparisons to the commercial tool CST® Wakefield solver:

  • PEC cubic cavity below cutoff (mm) and above cutoff (cm)
  • Conductive cubic cavity below cutoff
  • Lossy pillbox cavity (cylindrical) above cutoff
  • Simulations using beams with different relativistic $\beta$

Check 📁 examples/ for different physical applications

  • Planewave interacting with a PEC or dielectric sphere
  • Gaussian wavepacket travelling through vacuum / dielectric
  • Custom perturbation interacting with PEC geometry

For specific needs, please contact the developer 👩‍💻 👋

Motivation

The determination of electromagnetic wakefields and their impact on accelerator performance is a significant issue in current accelerator components. These wakefields, which are generated within the accelerator vacuum chamber as a result of the interaction between the structure and a passing beam, can have significant effects on the machine. These effects can be characterized through the beam coupling impedance in the frequency domain and wake potential in the time domain. Accurate evaluation of these properties is essential for predicting dissipated power and maintaining beam stability. wakis is an open-source tool that can compute wake potential and impedance for both longitudinal and transverse planes for general 3D structures. wakis was first presented at IPAC23 conference as a post-processing tool:

It has now evolved from a post-processing tool to a full 3D electromagnetic, time domain solver.

Installation

This section explains how to set up the environment to start using wakis 3d electromagnetic time domain simulations, and beam-coupling impedance computations

Developers: Download wakis repository from Github

# SSH:
git clone git@github.com:ImpedanCEI/FITwakis.git

# or HTTPS:
git clone https://github.com/ImpedanCEI/FITwakis.git

Users: pip install from PyPI

Coming soon

About

3D electromagnetic time-domain solver, specialized in wake potential and beam-coupling impedance computation for particle accelerators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages