r/OpenFOAM • u/dmitrat • 41m ago
[v2606] Running the variants of an OpenFOAM study side by side on several machines
A note first: I am the developer of the tool this post describes.
A parameter study in OpenFOAM is usually one case run several times with a few numbers changed: a range of inlet speeds, or the same case on four meshes. The runs can take hours each and none depends on another, yet they often wait for each other on one workstation.
WitSweep, our desktop application for such studies, sends each variant to a machine of its own. The machines come from OmnibusCloud. If the name is new to you: the idea is close to BOINC or Folding@home, where work goes to ordinary computers in the hours they would otherwise sit idle. Here the work is your own, and you decide whose computers take it: your own machines, or those of colleagues you invite into a private group.
WitSweep opens the case folder as it is and reads the case's own Allrun as the recipe. Every line it reads differently is listed as a note. The values that can vary are highlighted in the dictionaries; you click one and give it a list or a range.
Each variant runs whole on one machine, meshing included. Nothing is split between machines, so a single run is as fast as the machine it lands on and needs a machine with enough memory.
What comes back is one table with a row per variant: the responses you named, the cell count, checkMesh's verdict and the iterations. The postProcessing folder comes back on request, and any variant opens in ParaView.
About the OpenFOAM on those machines. It comes to the OmnibusCloud client with the controller that runs it, and an OpenFOAM already installed on a machine is never used. It is v2606, the openfoam.com line, built for Linux x86-64, macOS arm64 and Windows x86-64. The upstream source pack is in the repository unmodified, and the patches folder is empty. Open MPI comes with the kit on Linux and macOS; a Windows machine runs in parallel when MS-MPI is installed on it and serially without it. Source and build pipeline: https://github.com/OmnibusCloud/OpenFOAM
What it does not do. A case written for a Foundation release or another version needs a check first. A recipe is made of the solvers and utilities of that build: there is no shell step and no custom command, and a solver you compiled yourself is outside it. The machines have no compiler, so codeStream is refused, with the file and the line, before anything is uploaded. The kit is built without METIS, kahip, CGAL, ADIOS2 and HDF5. There is no optimiser in it: it runs the plan you give it.
The controller is open source, in the same place as our other public controllers: https://github.com/OmnibusCloud/Controllers
WitSweep itself is a closed application for Windows, macOS and Linux.
A first study, step by step, on OpenFOAM's own tutorial cases: https://omnibuscloud.io/getting-started/witsweep/
The same on video, under two minutes: the motorBike tutorial at three speeds, run by its own Allrun: https://youtu.be/YytKY6-MIEQ
How do you run such series today? I am curious where the time goes: into the runs themselves, or into setting up each case and collecting the results.








