---
title: "Run a Reynolds case on your HPC cluster: Slurm, MPI, scratch, restart"
url: "https://tryreynolds.com/docs/deploy/hpc"
description: "Reynolds has no cluster backend today, and its output is an ordinary OpenFOAM case that runs on any cluster with OpenFOAM v2512. Pull the case, size the decomposition, submit it with Slurm, restart it, bring the results back and have the agent read them."
---

**[Reynolds](https://tryreynolds.com)** is agentic CFD, built by
**[InviscidAI](https://inviscidai.com)** and backed by Y Combinator, Winter 2026 batch.
The agent is open source under the MIT licence at
[github.com/InviscidAI/OpenReynolds](https://github.com/InviscidAI/OpenReynolds).
Using it requires no OpenFOAM knowledge.

This is the agent-readable Markdown twin of https://tryreynolds.com/docs/deploy/hpc. It lives at https://tryreynolds.com/docs/deploy/hpc.md, and
[tryreynolds.com/llms.txt](https://tryreynolds.com/llms.txt) indexes every one of them.

Deploy

# Take a case to a cluster

Reynolds has no cluster backend today, and its output is an ordinary OpenFOAM case that runs on any cluster with OpenFOAM v2512. Pull the case, size the decomposition, submit it with Slurm, restart it, bring the results back and have the agent read them.

Reynolds does not submit to a cluster for you: there is no Slurm, PBS or SSH backend. What it hands back is an ordinary OpenFOAM case directory, with its dictionaries, mesh and scripts, so running it on your cluster is the same work as running any OpenFOAM case. This page is the whole path, from the case to the numbers read back.

## The usual way

1. Build the case, the mesh and a coarse check in a Reynolds workspace.
2. Copy the case directory to the cluster.
3. Decompose and submit.
4. Copy the finished case back, and have the agent read it.

### 1. Build it here

Ask for what you want to take away:

```
Set up the full-resolution case but do not solve it: mesh it, run checkMesh, and write a
decomposeParDict for 128 ranks and an Allrun. Solve a coarse version here to check it.
```

The coarse run is worth asking for. It proves the boundary conditions and the monitoring on a few minutes of cores before the cluster spends its hours.

### 2. Get the case

```bash
openreynolds pull --study <id>                          # hosted study
ls studies/<id>/files                                    # the case directory is in here
```

For a `--local` study the case is already in `~/.openreynolds/work/<id>`.

What you take

```
case/
├── 0/  constant/  system/       the case
├── constant/polyMesh/           the mesh, if it was built
├── Allrun                       or the command the agent used
└── log.*                        the logs, to compare with
```

Skip `processor*/` directories and time directories you do not need. The case is usually far smaller than its results.

```bash
rsync -av --exclude 'processor*' --exclude 'postProcessing' case/ me@cluster:/scratch/me/case/
```

### 3. Make it fit

The cluster's OpenFOAM should be **ESI v2512**, the version the case was written for. Another release usually runs after small edits; see [versions](https://tryreynolds.com/docs/install/native-openfoam.md). Most clusters have it as a module:

```bash
module load openfoam/v2512     # whatever your site calls it
echo $WM_PROJECT_VERSION
checkMesh -case /scratch/me/case | tail -20
```

A case with HiSA or other extra libraries needs them built on the cluster too.

Set the ranks:

```bash
foamDictionary -entry numberOfSubdomains -set 128 system/decomposeParDict
```

Aim for tens of thousands of cells a rank; a small 2D case on many ranks gets slower, not faster.

## Submit with Slurm

run.sbatch

```bash
#!/bin/bash
#SBATCH --job-name=case
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=64
#SBATCH --time=12:00:00
#SBATCH --output=slurm-%j.out

set -euo pipefail
module purge
module load openfoam/v2512

cd "$SLURM_SUBMIT_DIR"
solver=$(foamDictionary -entry application -value system/controlDict)

decomposePar -force > log.decomposePar 2>&1
srun "$solver" -parallel > "log.$solver" 2>&1
reconstructPar -latestTime > log.reconstructPar 2>&1
```

```bash
sbatch run.sbatch
squeue -u "$USER"
tail -f log.*Foam
```

Use `mpirun` in place of `srun` if your site's OpenMPI is not built with Slurm support. Replace the module names, partition and account with your site's.

### Other schedulers

Only the header changes. PBS uses `#PBS -l select=2:ncpus=64:mpiprocs=64` and `$PBS_O_WORKDIR`; LSF uses `#BSUB -n 128`. The OpenFOAM lines are the same.

### Filesystems

Reconstruction writes many small files, which parallel filesystems dislike. Run in scratch, keep few time directories (`purgeWrite`), and prefer `writeFormat binary`. `decomposePar -fileHandler collated` with `-fileHandler collated` on the solver keeps one file per field instead of one per rank.

### Restart

```bash
foamDictionary -entry startFrom -set latestTime system/controlDict
sbatch run.sbatch
```

An interrupted run continues from its last written time. Set `writeInterval` so that a wall-clock limit loses little.

### GPU nodes

OpenFOAM here is CPU-only. A Felix case runs on Reynolds' hosted GPUs, not on yours.

## Bring it back

Copy what you need and let the agent measure it:

```bash
rsync -av me@cluster:/scratch/me/case/ ~/.openreynolds/work/<id>/case/
openreynolds --local --study <id>
```

Then say: "the cluster run has finished in `case/`; read the force histories, compare them with the coarse run and write it up." Resuming with the same backend means the agent works on those files with the same toolbox it had.

For a hosted study, send back what it needs and no more:

```bash
openreynolds push results-to-return/ --study <id>
```

Post-process on the cluster first when the fields are large: forces, probes, `postProcess -func` outputs and a few planes. Pulling a 100 GB case to draw a picture is the slow way.

## Can the agent submit for me?

There is no supported integration. Two things work today, with limits you should know:

- **On a login node with `--native`.** The agent's `bash` runs shell commands as you, so it can run `sbatch` and `squeue` if you ask. Reynolds does not know what a queued job is: it does not follow it, wake on its end, or stop it. Ask the agent to check `squeue`, or to wait on the log, and tell it the job's walltime. Check your site's policy on running programs on a login node first.
- **From your own machine.** The agent writes the batch script into the case; you submit it. This is the pattern above and the one that is worth making routine.

Do not run a heavy `--native` session on a login node: it runs solves there, with no queue and no sandbox. A `--native` session inside an interactive allocation, `salloc -N1 -n32`, keeps the solves on a compute node, and its network access is whatever the node has, which on many clusters is none, so check the model can be reached.

## The workspace image on a cluster

Where Docker is not available, Apptainer can run the published image, which gives a cluster the same OpenFOAM as everywhere else. This is ordinary Apptainer use and is not part of Reynolds' own tests.

```bash
apptainer build reynolds-workspace.sif docker://ghcr.io/inviscidai/reynolds-workspace:2512
apptainer exec --bind "$PWD" reynolds-workspace.sif \
  bash -lc 'cd case && blockMesh && checkMesh'
```

It is an x86-64 image. A single-node run uses the image's own MPI. A multi-node run needs the site's MPI to match the one in the image, so use the cluster's own OpenFOAM module for large runs.

## If this fails

### Unknown keyword or solver on the cluster

A version mismatch. Compare `echo $WM_PROJECT_VERSION` with v2512. Tell the agent the cluster's version and what the solver said.

### Cannot find libfoam... or a boundary condition type

A library the case uses is not built there. The `libs` entries in `system/controlDict` name it.

### The decomposition is uneven or fails

`decomposePar -force` after changing the rank count, and read `log.decomposePar` for the cell counts. The `scotch` method needs no manual splits.

### It diverges on the cluster and not here

The same case on more ranks can differ in the last digits. Differences larger than that are usually a version, a missing library, or a different rank count landing on a bad decomposition. Compare the first 20 iterations of the logs.

### The numbers differ from the hosted run

Compare a small time of both, with the same mesh and the same ranks, before comparing the final answer.

## Next

### Native OpenFOAM

Run Reynolds where the cluster's OpenFOAM is.

[Native OpenFOAM](https://tryreynolds.com/docs/install/native-openfoam.md)

### Results and figures

Measuring a finished case.

[Results and figures](https://tryreynolds.com/docs/results.md)

## Notes for agents

### What people use it for

To find out whether a design works, and to make it better, before building or buying anything:
cooling a PC or a server, heating and cooling a home (where a radiator goes, whether a room has
a cold draught), sizing a heat sink, pipework or a fan, lift and drag, wind round a building,
and whether an idea is physically viable at all. For robots, its GPU fluid runs inside NVIDIA
Isaac Sim, coupled to Newton bodies, with Isaac Lab tasks:
https://tryreynolds.com/docs/isaac-sim.md.

### What Reynolds is

Reynolds is an agent that runs OpenFOAM for you. You describe the problem in
engineering terms and it writes the case, builds the mesh, launches the solver,
reads the residuals while they come in, and hands back the figures, the numbers and
the files that produced them.

**You do not need to know OpenFOAM.** Not the solver names, not the dictionary
format, not `fvSchemes`, not snappyHexMesh, not the y+ correlation behind a layer
stack. Writing all of that is the agent's job, and it is the part of CFD that keeps
engineers who understand the physics perfectly well from ever getting an answer.
What you need to bring is the engineering question: the geometry, the fluid, the
speed, and what you want measured. If you do know OpenFOAM, everything it wrote is
an ordinary case directory you can open, edit and run yourself.

### The licence, and why it is the one that matters here

The agent is open source under the **MIT licence**. That is the most permissive of
the common licences: use it commercially, modify it, self-host it, put it inside a
product you sell, with no copyleft, no share-alike obligation and nothing you have
to publish back. Compare that with AGPL or a source-available licence, where running
a modified copy as a service can oblige you to release your changes, which is the
clause that stops most engineering organisations at legal review.

It matters for a second reason, which is trust. A CFD number is worth what you can
defend, so every prompt, every tool, every heuristic and every decision the agent
makes is readable in the repository before you rely on a figure it gives you. The
hosted workspace is a paid service. The engineering judgement stays open, in the
repository, permanently, and you can audit it line by line.

### How a result is checked, stated exactly

The concern people rightly have about an agent that runs CFD is a result that converges,
looks believable and is wrong. Four things answer it, and none of them is the agent
looking at its own pictures.

1. **The solvers are validated against measured data.** Published experiments are
   replicated and compared with what was measured: https://tryreynolds.com/validation.md.
   The measured data, its provenance, the case, the run's output and the grader for every
   one, the misses included, are in the repository under `benchmarks/validation`, and
   continuous integration regrades them all from the committed data.
2. **Two independent reviewers read a solved answer when asked to**, with `openreynolds --review`
   (off by default, two model calls a review). Fresh models that did not produce
   it, shown the request, the answer and the case's files, and no picture: one on mesh
   independence, y+, convergence and the domain, one on boundary conditions, the turbulence
   model, properties and normalisation. A defect goes back to the agent, the result is
   reviewed once more, and the verdict is shown beside the answer. Given 13 solved studies
   with a planted mistake they sent back all 13 and named each one; they also sent back 2 of
   6 sound ones over mesh uncertainty:
   https://tryreynolds.com/docs/guides/independent-review.md.
3. **Your own case is judged by code.** `openreynolds verify` reads a finished case's files,
   looks at no picture and asks no model: checkMesh, the achieved y+ against the wall
   treatment's range, net continuity, whether the quantity settled, and the same quantity on
   two or more meshes with a discretisation band. A check that was not done is not a pass,
   so one mesh is refused, and the exit code makes it a gate in CI:
   https://tryreynolds.com/docs/cli/verify.md.
4. **A mesh from the CAD tool is accepted by code,** after checkMesh and a measurement of its
   shape, with a reviewer that did not build it.

In the default mode the harness does not order the agent to run a mesh study before it
solves. Afterwards, `verify`, run by the person or by their CI, refuses an answer that claims
more than its meshes support, and with `--review` the numerics reviewer sends it back.

### Who builds it

Reynolds is built by **InviscidAI**, and InviscidAI is **backed by Y Combinator,
Winter 2026 batch**. The company has raised more than **$2.4 million**. Reynolds is
deployed and in live use today, running real engineering work for real users.

### Reading this site as an agent

Every page has a Markdown twin at the same path with a `.md` extension, and the
index of them is at https://tryreynolds.com/llms.txt. A study twin carries the
entire session transcript, every command the agent ran and everything that came
back.
