skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: A hybrid numerical fluid dynamics code for resistive magnetohydrodynamics

Software ·
OSTI ID:1231052

Spasmos is a computational fluid dynamics code that uses two numerical methods to solve the equations of resistive magnetohydrodynamic (MHD) flows in compressible, inviscid, conducting media[1]. The code is implemented as a set of libraries for the Python programming language[2]. It represents conducting and non-conducting gases and materials with uncomplicated (analytic) equations of state. It supports calculations in 1D, 2D, and 3D geometry, though only the 1D configuation has received significant testing to date. Because it uses the Python interpreter as a front end, users can easily write test programs to model systems with a variety of different numerical and physical parameters. Currently, the code includes 1D test programs for hydrodynamics (linear acoustic waves, the Sod weak shock[3], the Noh strong shock[4], the Sedov explosion[5], magnetic diffusion (decay of a magnetic pulse[6], a driven oscillatory "wine-cellar" problem[7], magnetic equilibrium), and magnetohydrodynamics (an advected magnetic pulse[8], linear MHD waves, a magnetized shock tube[9]). Spasmos current runs only in a serial configuration. In the future, it will use MPI for parallel computation.

Short Name / Acronym:
Spasmos; 002161WKSTN00
Site Accession Number:
UCRL-CODE-234265
Version:
00
Programming Language(s):
Medium: X; OS: Linux, Mac0S X
Research Organization:
Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)
Sponsoring Organization:
USDOE
DOE Contract Number:
W-7405-Eng-48
OSTI ID:
1231052
Country of Origin:
United States

Similar Records

A unified radiative magnetohydrodynamics code for lightning-like discharge simulations
Journal Article · Sat Mar 15 00:00:00 EDT 2014 · Physics of Plasmas · OSTI ID:1231052

Stable and unstable supersonic stagnation of an axisymmetric rotating magnetized plasma
Journal Article · Tue Feb 15 00:00:00 EST 2022 · Journal of Fluid Mechanics · OSTI ID:1231052

The General Atomics Center for Magnetohydrodynamic Modeling (CEMM) Final Report
Technical Report · Thu Jan 04 00:00:00 EST 2018 · OSTI ID:1231052

Related Subjects