Saved in:
Bibliographic Details
Main Author: Diemer, Benedikt
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.20399
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918035120455680
author Diemer, Benedikt
author_facet Diemer, Benedikt
contents Hydrodynamics is a difficult subject to teach in the classroom because most relevant problems must be solved numerically rather than analytically. While there are numerous public hydrodynamics codes, the complexity of production-level software obscures the underlying physics and can be overwhelming to first-time users. Here we present ULULA, an ultra-lightweight python code to solve hydrodynamics and gravity in 2D. The main goal is for the code to be easy to understand, extend, and experiment with. The simulation framework consists of fewer than 800 active lines of pure python code, but it includes a robust MUSCL-Hancock scheme with exchangeable components such as Riemann solvers, reconstruction schemes, boundary conditions, and equations of state. Numerous well-known hydrodynamics problems are provided and can be run in a few minutes on a laptop. The code is open-source, generously commented, and extensively documented.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20399
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ULULA: An ultra-lightweight 2D hydrodynamics code for teaching and experimentation
Diemer, Benedikt
Instrumentation and Methods for Astrophysics
Hydrodynamics is a difficult subject to teach in the classroom because most relevant problems must be solved numerically rather than analytically. While there are numerous public hydrodynamics codes, the complexity of production-level software obscures the underlying physics and can be overwhelming to first-time users. Here we present ULULA, an ultra-lightweight python code to solve hydrodynamics and gravity in 2D. The main goal is for the code to be easy to understand, extend, and experiment with. The simulation framework consists of fewer than 800 active lines of pure python code, but it includes a robust MUSCL-Hancock scheme with exchangeable components such as Riemann solvers, reconstruction schemes, boundary conditions, and equations of state. Numerous well-known hydrodynamics problems are provided and can be run in a few minutes on a laptop. The code is open-source, generously commented, and extensively documented.
title ULULA: An ultra-lightweight 2D hydrodynamics code for teaching and experimentation
topic Instrumentation and Methods for Astrophysics
url https://arxiv.org/abs/2505.20399