LEONSIM Workbench demo

Tutorials

Run it yourself

Two cases, step by step, each step with a short screen recording of the real thing. The airfoil has passed a code comparison against OpenFOAM; the Ahmed body is a preview, unvalidated, and its tutorial says so.

Clip The forces table prints, then the wall pressure of LeonSim and OpenFOAM

Code comparison passed against OpenFOAM at 320 per side 2D

A NACA 0012 airfoil, checked against OpenFOAM

Build the body-fitted C-grid, run the solver on your CPU, and read the forces and the wall pressure next to the OpenFOAM reference. Five steps, each with a recording of the real run.

Level
Beginner
Time
About 25 minutes, 20 of them the solver
Cost
$0, one CPU core
Needs
Python 3.11 or newer, a laptop
  1. 1 Install
  2. 2 Mesh
  3. 3 Solve
  4. 4 Compare
  5. 5 Check against the rows
Start the tutorial
Clip Orbiting the Ahmed body in the Workbench, with a section plane

Preview, unvalidated 3D

The Ahmed body in the Workbench

Open the Ahmed example, run it on the smallest grid on your own CPU, read the result with its warnings, and look at the flow. Six steps, each with a recording of the real Workbench. The workflow is real; the numbers are not an accuracy claim.

Level
Beginner
Time
About 10 minutes, one of them the solver
Cost
$0 on your CPU; cents on a Modal GPU
Needs
Python 3.11 or newer, four CPU cores
  1. 1 Open
  2. 2 Spec
  3. 3 Run
  4. 4 Result
  5. 5 Flow
  6. 6 Further
Start the tutorial

Before you start

Both tutorials run on your own machine. You need Python 3.11 or newer and the repository checked out; the airfoil uses one CPU core, the Ahmed body four.

pip install -e ".[aero]"
leonsim doctor

The [aero] extra adds Numba for the Ahmed body's 3D solver; the airfoil needs only NumPy and SciPy. leonsim doctor prints the versions it found, what is missing and what each missing package stops. Run both in the repository folder. Each tutorial then starts with the one command it needs.

How to read the status label

Code comparison passed means the solver in the tutorial is the one behind a row of the validation scoreboard where it agrees with OpenFOAM on the same mesh, model and schemes. It is not a validation against experiment; the page says where the experiment agrees and where it does not.

Preview, unvalidated means the workflow is real and the numbers are not an accuracy claim. The page says so at the top and again where the result is read. Do not quote a figure from such a tutorial.

The tutorials also run much smaller grids than the scoreboard rows, so that they finish in minutes: their own numbers are a preview. Where that matters the page shows how far the small run is from the row.

How the recordings were made

The Workbench clips are a headless browser driving the real Workbench, with a pointer drawn on top. Where a clip waits for the solver it is cut and carries a visible “time-lapse ×N” badge. The terminal clips replay the real saved output of the command, with the timing it had when it ran. Nothing in a clip is staged beyond that, and every clip has a pause button.