SPARTA Documentation
27 Aug 2026 version
Version info:
The SPARTA "version" is the date when it was released, such as 3 Mar 2014. SPARTA is updated continuously. Whenever we fix a bug or add a feature, we release it immediately, and post a notice on this page of the WWW site. Each dated copy of SPARTA contains all the features and bug-fixes up to and including that version date. The version date is printed to the screen and logfile every time you run SPARTA. It is also in the file src/version.h and in the SPARTA directory name created when you unpack a tarball, and at the top of the first page of the manual (this page).
If you browse the HTML doc pages on the SPARTA WWW site, they always describe the most current version of SPARTA.
The doc pages are not shipped built. They are generated from the reStructuredText sources in doc/src, so they always describe the version you have. "make -C doc html" builds them into doc/html, and "make -C doc pdf" builds the PDF file of the whole manual beside them. "make -C doc" on its own lists the targets.
At some point, there also will be a Developer.pdf file in the doc directory, which describes the internal structure and algorithms of SPARTA.
SPARTA stands for Stochastic PArallel Rarefied-gas Time-accurate Analyzer.
SPARTA is a Direct Simulation Monte Carlo (DSMC) simulator designed to run efficiently on parallel computers. It was developed at Sandia National Laboratories, a US Department of Energy facility, with funding from the DOE. It is an open-source code, distributed freely under the terms of the GNU Public License (GPL), or sometimes by request under the terms of the GNU Lesser General Public License (LGPL).
The primary developers of SPARTA are Steve Plimpton, and Michael Gallis who can be contacted at sjplimp at gmail.com and magalli at sandia.gov. The SPARTA WWW Site at https://sparta.github.io has more information about the code and its uses.
The SPARTA documentation is organized into the following sections. If you find errors or omissions in this manual or have suggestions for useful information to add, please send an email to the developers so we can improve the SPARTA documentation.
Once you are familiar with SPARTA, you may want to bookmark this page at Section_commands.html#comm since it gives quick access to documentation for all SPARTA commands.
PDF file of the entire manual, built by "make -C doc pdf"
Introduction 1.1 What is SPARTA 1.2 SPARTA features 1.3 Grids and surfaces in SPARTA 1.4 Open source distribution 1.5 Acknowledgments and citations
Getting started 2.1 What's in the SPARTA distribution 2.2 Making SPARTA 2.3 Building SPARTA with optional packages 2.4 Building SPARTA as a library 2.5 Testing SPARTA 2.6 Running SPARTA 2.7 Command-line options 2.8 Screen output
Commands 3.1 SPARTA input script 3.2 Parsing rules 3.3 Input script structure 3.4 Commands listed by category 3.5 Commands listed alphabetically
Accelerating SPARTA performance 5.1 Measuring performance 5.2 Packages with optimized styles 5.3 KOKKOS package
How-to discussions 6.1 2d simulations 6.2 Axisymmetric simulations 6.3 Running multiple simulations from one input script 6.4 Output from SPARTA 6.5 Visualizing SPARTA snapshots 6.6 Library interface to SPARTA 6.7 Coupling SPARTA to other codes 6.8 Details of grid geometry in SPARTA 6.9 Details of surfaces in SPARTA 6.10 Restarting a simulation 6.11 Using the ambipolar approximation 6.12 Using multiple vibrational energy levels 6.13 Surface elements: explicit, implicit, distributed 6.14 Implicit surface ablation 6.15 Transparent surface elements 6.16 Visualizing SPARTA output with ParaView 6.17 Custom per-particle, per-grid, per-surf attributes 6.18 Variable timestep simulations 6.19 Details of particles in SPARTA
Modifying & extending SPARTA 10.1 Compute styles 10.2 Fix styles 10.3 Region styles 10.4 Collision styles 10.5 Surface collision styles 10.6 Chemistry styles 10.7 Dump styles 10.8 Input script commands
Python interface 11.1 Creating a shared MPI library 11.2 Extending Python with a parallel version of SPARTA 11.3 Extending Python with MPI 11.4 Testing the Python-SPARTA interface 11.5 Using SPARTA from Python 11.6 Example Python scripts that use SPARTA
Errors 12.1 Common problems 12.2 Reporting bugs 12.3 Error & warning messages
Future and history 13.1 Coming attractions 13.2 Past versions