Searcharxiv⌕ Search

arXiv · 2610.16910

QUARZ: a quasi-static particle-in-cell code with non-uniform radial grids for plasma wakefields

Abstract

We present a quasi-static particle-in-cell scheme for beam-driven plasma wakefields in cylindrical geometry that works on an arbitrary non-uniform radial grid. The field equations are discretized with hat-function finite elements and conservative finite volumes on any monotone set of radial nodes, and the transverse magnetic field is obtained explicitly, without iterations, following Baxevanis and Stupakov. An optional azimuthal mode $m=1$ describes beam offsets, tilts and hosing. The discretization keeps the discrete Gauss law exact, deposits a uniform plasma exactly on every node including the axis, and remains second-order accurate on smoothly stretched grids. Resolution can therefore be placed where the physics needs it. For a tightly focused witness beam that pulls the plasma ions onto the axis, a grid that is fine only near the axis gives the same near-axis fields as a uniform grid with the same axis resolution, with thirty times fewer cells and in thirty times less computing time. Such a grid also resolves the singular closure of a cold-plasma bubble, which a uniform grid hides by smoothing it over one cell; smoothing the plasma sources over a fixed length, chosen independently of the grid, regularizes the closure and makes the wake behind it converge. The scheme is implemented in the open-source C++/Kokkos code QUARZ (Quasistatic Arbitrary-resolution RZ), which runs on CPUs and GPUs and uses MPI with a pipelined decomposition along the co-moving coordinate. Simulations of the self-modulation of the AWAKE proton bunch agree with the three-dimensional code HiPACE++. QUARZ is, to our knowledge, the first production-grade simulation code in plasma physics that is \emph{zero-touch}: all of its source code, tests and documentation were written by an AI agent directed by a physicist who did not write a single line of the code.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Alexander Pukhov, Thomas C. Wilson. 2026-10-12. QUARZ: a quasi-static particle-in-cell code with non-uniform radial grids for plasma wakefields. https://arxiv.org/abs/2610.16910

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Effects of Coulomb Collisions on the Structures of Fast Magnetosonic Shocks

We present fully kinetic particle-in-cell simulations to demonstrate qualitative effects of binary Coulomb collisions on fast magnetosonic shocks. We find that with sufficiently high collisional frequencies, shock rippling and reformation can be inhibited, leading to stationary, laminar shock fronts. We observe that ion-ion collisions disrupt the motion of particles reflected back upstream that is the key for cyclical reformation. Meanwhile, the electron-ion collisions provide a Spitzer resistivity that can dissipate energy from the instability that causes shock rippling. This result helps us understand the role of collisions in laboratory shocks and possibly the outer heliosphere.

physics.plasm-ph↗

Validation of geometric proxies using negative and positive triangularity plasmas with varying elongation on TCV and multi-machine gyrokinetic simulations

Negative Triangularity (NT) tokamak plasmas can achieve H-mode-like confinement while avoiding Edge Localized Modes, making them an attractive reactor scenario. Predicting in which configuration this benefit occurs requires understanding how magnetic geometry controls turbulent transport. Using a set of geometric proxies based on the poloidally averaged magnetic drift velocity, its poloidal variation, and Finite Larmor Radius (FLR) effects, this work validates their predictive power against gyrokinetic simulations and experiments. First, the proxies are used to predict how the relative benefit of NT over Positive Triangularity (PT) evolves with elongation $κ$, forecasting a detrimental effect of NT below $κ\sim0.75$--$0.8$. This prediction is confirmed by linear and nonlinear GENE simulations in both ITG- and TEM-dominated regimes. Additionally, a dedicated experimental elongation scan on TCV shows that NT plasmas at $κ^{\rm LCFS}=1.5$ have $β_N$ and $H_{98y2}$ roughly 1.5 times larger than PT counterparts, while no difference is observed at $κ^{\rm LCFS}=0.95$. The analysis is then extended to realistic ITG-dominated scenarios from DIII-D, AUG, and JET, including up-down asymmetric equilibria where conventional triangularity-based descriptions break down. In all three devices, simulations of NT equilibria exhibit substantially reduced nonlinear heat fluxes relative to PT (factors of 1.8, 1.6, and 2.1, respectively). A systematic swap of geometric coefficients between NT and PT equilibria shows that magnetic drifts and FLR effects are the dominant stabilizing mechanisms across all machines, with parallel dynamics playing a secondary role. These results establish the geometric proxies as reliable, computationally inexpensive predictors of NT transport benefits across diverse shapes and turbulence regimes.

physics.plasm-ph↗

Controlling writhe in stellarator optimization

The writhe of a closed curve measures its coiling, and for a ribbon along it, writhe is the contribution to the linking number not due to twist. In stellarators, large writhe implies large helical excursion and has previously been either an uncontrolled outcome in optimization, or fixed beforehand by the choice of the coordinate system. We present a simple method to target the underlying writhe of the plasma boundary during optimization. Our method calculates writhe and linking number directly from the underlying elliptical boundary of the stellarator. It therefore does not require any properties of the MHD equilibrium solve, such as the true magnetic axis, making it fast to evaluate and smooth to differentiate. Examples for quasi-helically symmetric stellarators show that this target works well in practice.

physics.plasm-ph↗