Simulating single-particle dynamics in magnetized plasmas: The RMF code

A. H. Glasser, S. A. Cohen

Research output: Contribution to journalArticlepeer-review

2 Scopus citations


The RMF (Rotating Magnetic Field) code is designed to calculate the motion of a charged particle in a given electromagnetic field. It integrates Hamilton's equations in cylindrical coordinates using an adaptive predictor-corrector double-precision variable-coefficient ordinary differential equation solver for speed and accuracy. RMF has multiple capabilities for the field. Particle motion is initialized by specifying the position and velocity vectors. The six-dimensional state vector and derived quantities are saved as functions of time. A post-processing graphics code, XDRAW, is used on the stored output to plot up to 12 windows of any two quantities using different colors to denote successive time intervals. Multiple cases of RMF may be run in parallel and perform data mining on the results. Recent features are a synthetic diagnostic for simulating the observations of charge-exchange-neutral energy distributions and RF grids to explore a Fermi acceleration parallel to static magnetic fields.

Original languageEnglish (US)
Article number083506
JournalReview of Scientific Instruments
Issue number8
StatePublished - Aug 1 2022

All Science Journal Classification (ASJC) codes

  • Instrumentation


Dive into the research topics of 'Simulating single-particle dynamics in magnetized plasmas: The RMF code'. Together they form a unique fingerprint.

Cite this