Quick Start
Install Elodin and start simulating.
Install
The Elodin SDK and CLI are supported on macOS and Linux distributions with glibc 2.35+ (Ubuntu 22.04+, Debian 12+, Fedora 35+, NixOS 21.11+). Windows users run the simulation in Windows Subsystem for Linux (install WSL) and the Editor natively on Windows.
The Elodin toolkit has two parts: the Elodin CLI (which bundles the editor, headless runner, and elodin-db) and the Python SDK (used to author simulations).
Install the Elodin CLI
On macOS, Linux, or WSL:
|
|
On Windows, download and run the latest elodin-x86_64-pc-windows-msvc.msi from the releases page.
Verify the install:
Install the Elodin Python SDK
Install uv if you don't already have it:
|
Then create a virtual environment and install the SDK:
&&
Upgrading?
If upgrading from an older Elodin version, consult the migration guides.
Start Simulating
The examples below use examples/three-body/main.py. Clone the elodin repo to follow along:
&&
macOS / Linux
Run the simulation and open the Editor in one command:
Windows (WSL)
Windows users run the simulation in WSL and connect the natively-installed Editor over localhost.
WSL needs mirrored networking so the Editor on Windows can reach the simulation on 127.0.0.1. In an admin PowerShell, create %USERPROFILE%\.wslconfig containing the snippet below, then run wsl --shutdown to apply.
[wsl2]
mirrored
In a WSL terminal, start the simulation:
In a Windows PowerShell terminal, launch the Editor and connect:
elodin.exe editor 127.0.0.1:2240
Perform Analysis
To analyze simulation data, use the Exec API to run the simulation for some number of ticks and collect the historical component data as a [Polars DataFrame].
The DataFrame can then be used to generate plots or perform other methods of data analysis.
Run the bouncing ball example code to see this in action:
The ball/plot.py example depends on matplotlib. Install it with uv:
Then run the ball plot example (inside the same activated .venv):
For more information on data frames check out Polars DataFrame
Next Steps
Try out the following tutorials to learn how to build simulations using Elodin:
Three-Body Orbit Tutorial
Learn how to model a basic stable three-body problem