r/OpenFOAM • • 41m ago

[v2606] Running the variants of an OpenFOAM study side by side on several machines

1 Upvotes

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.


r/OpenFOAM • • 1d ago

Airbox Simulation

Post image
7 Upvotes

Hey guys! Is OpenFOAM enough to use if I need to simulate how a custom airbox will perform on an NA bike? Especially the pulse of the engine. Any suggestions, please? Thank you!


r/OpenFOAM • • 3d ago

Stokes update: live GPU flow preview, in-app implicit CAD, and a gyroid heat exchanger case

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/OpenFOAM • • 3d ago

Help compiling openfoam-com arch linux

1 Upvotes

[SOLVED] I'm trying to install openfoam-com v2606 from this AUR repository: https://aur.archlinux.org/packages/openfoam-com, but every time it tries to compile OpenFoam I get an error. I've even tried manually downloading/compiling older versions of OpenFoam but they give the exact same error. Here is the error output from the AUR compilation:

g++ -std=c++17 -m64 -pthread -DOPENFOAM=2606 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth=1000 -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/finiteVolume/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/meshTools/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/transportModels/compressible/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/thermophysicalModels/basic/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/thermophysicalModels/specie/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/thermophysicalModels/solidSpecie/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/thermophysicalModels/thermophysicalProperties/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/functionObjects/field/lnInclude -iquote. -IlnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/OpenFOAM/lnInclude -I/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/src/OSspecific/POSIX/lnInclude -fPIC -c derivedFvPatchFields/speciesSorption/speciesSorptionFvPatchScalarField.C -o /home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/build/linux64GccDPInt32Opt/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/speciesSorption/speciesSorptionFvPatchScalarField.o

chemistryReaders/chemkinReader/chemkinLexer.L:49:38: error: ‘YY_BUF_SIZE’ was not declared in this scope

49 | int Foam::chemkinReader::yyBufSize = YY_BUF_SIZE;

| ^~~~~~~~~~~

chemistryReaders/chemkinReader/chemkinLexer.L:49:38: note: the macro ‘YY_BUF_SIZE’ had not yet been defined

/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/build/linux64GccDPInt32Opt/src/thermophysicalModels/reactionThermo/chemistryReaders/chemkinReader/chemkinLexer.L.cc:33791:9: note: it was later defined here

33791 | #define YY_BUF_SIZE (2 * YY_READ_BUF_SIZE)

| ^~~~~~~~~~~

make: *** [/home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/wmake/rules/General/transform:42: /home/sandwich/.cache/yay/openfoam-com/src/OpenFOAM-v2606/build/linux64GccDPInt32Opt/src/thermophysicalModels/reactionThermo/chemistryReaders/chemkinReader/chemkinLexer.o] Error 1

make: *** Waiting for unfinished jobs....

I have no idea what is causing this and can't find anyone else with this problem. If anyone has ideas I would be so thankful!!!


r/OpenFOAM • • 6d ago

Open source FEA Software - thermal /Vibration /CFD /structural

Enable HLS to view with audio, or disable this notification

27 Upvotes

r/OpenFOAM • • 7d ago

Dear experts, please evaluate my humble project.

Post image
14 Upvotes

r/OpenFOAM • • 8d ago

Advice for affordable/free computational resources for 3D CFD simulations (SITVC research)

Thumbnail reddit.com
1 Upvotes

r/OpenFOAM • • 9d ago

Took an OpenFOAM Class Taught by Greenshields and Saw the OG Simulation From his Book Cover

Post image
50 Upvotes

Evidently it's not a velocity field but a temperature field where the bottom wall is heated, left boundary is the inlet and top boundary is outlet. If you take a CFD Direct class you should ask him to see the simulation!


r/OpenFOAM • • 9d ago

Undergrad ML researcher learning CFD: tried predicting full flow fields from a few OpenFOAM runs. Would love a reality check from people who do this for real

Post image
2 Upvotes

r/OpenFOAM • • 10d ago

What AI Model and setup is best for OpenFOAM Simulations

Post image
45 Upvotes

I was able to put together in a couple of weekends models that would take me months to setup previously. I have a macmini pro where I run OpenFOAM and host dashboards I ask the LLMs to setup based on the CfdOF/FreeCAD dashboard. My best success has been using Fable5.1/Opus5.5/GPT6.1Sol (not sure if there is an overall best) and asking them to search for similar situations/examples and a lot of handholding. Is there a setup/available skill that anyone has been able to use ?


r/OpenFOAM • • 11d ago

Does rhoCentralFoam need normalized values?

2 Upvotes

I'm trying to make a modified version of the tutorial rhoCentralFoam/wedge15Ma5 case, but when I change the thermophysicalProperties and initial conditions to be no longer normalized, it refuses to run. I get the error

```--> FOAM FATAL IO ERROR: (openfoam-2512)

Entry 'e' not found in dictionary "system/fvSolution/solvers"```

despite the minimal changes. It isn't related to the timestep either, as dropping the timestep had no effect and encountered the same error. Does rhoCentralFoam not support regular SI values, or am I missing something I needed to change? This is in v2512.

My attempted conditions are T=300K, p=100,000Pa, U=650m/s.


r/OpenFOAM • • 12d ago

OpenFoam GUI project

Enable HLS to view with audio, or disable this notification

37 Upvotes

This is an OpenFoam GUI I am working on. Most of it is AI-generated.

I'd be happy to receive your suggestions for improvements or ideas for additional features the GUI should include, since I'm considering publishing this small project on GitHub.

foamCaseGUI is a graphical interface that generates, runs and evaluates complete, ready-to-run OpenFOAM-14 cases, so no dictionaries have to be written by hand. It guides the user step by step from the geometry (any STL file or a template) through patches, meshing with snappyHexMesh or blockMesh, physics, boundary conditions and numerics to the solver run with live convergence monitoring. It is designed for a wide range of flow problems:

- Flow regimes: incompressible and compressible, steady and transient, laminar, RANS and LES flows.

- Heat: heat transfer.

- Multiphase: volume-of-fluid (VoF) and Euler–Euler multiphase flows.

- Viscosity models: Newtonian and non-Newtonian fluids, including custom temperature-dependent models.

Typical applications are internal flows in pipes, ducts, nozzles and manifolds as well as external aerodynamics, with NACA aerofoil templates and a one-click wind tunnel around arbitrary STL bodies.

The results page reports the key engineering quantities: pressure drop, flow distribution across multiple outlets, residence time, shear rates, viscosities, temperatures and force coefficients (lift, drag, moment). Mesh studies and dimensionless numbers help with analytical plausibility checks. This makes the tool well suited to setting up and comparing design variants quickly and reproducibly with consistent settings.


r/OpenFOAM • • 12d ago

Ansys or OpenFOAM ?

Thumbnail reddit.com
4 Upvotes

r/OpenFOAM • • 14d ago

I made an OpenFOAM → SU2 mesh converter that handles snappyHexMesh polyhedra (of2su2, pip install of2su2)

Thumbnail
reddit.com
4 Upvotes

r/OpenFOAM • • 16d ago

Stokes - A modern GUI with all meshing options

47 Upvotes

Stokes, an OpenFOAM GUI for Windows and Linux | Stokes

Hi all,

This was sitting in my folders for too long, few years back I made a custom pre/post processor for my previous employer with all bells and whistles namely

- blockMesh, snappyHexMesh, cfmesh and poly hexcore

- geometry import to results under single window

- Ubuntu, WSL and native Windows support

- support for remote cluster or local etc.

Recently got access to Claude and Deepseek which gave me the idea to revisit old stuff, rewrite most of it to remove any licensing issue and update it to support OpenFOAM 14.

This is my attempt at it. It's fully opensource and can be downloaded here. I intend to keep it free for personal and business use cases other than reselling etc as SaaS or something. So, haven't figured out exact licensing but that's a later problem as I don't intend to monetize and keep a gate on any features.

Give it a try here available for both Linus and Windows - dhanninacs/stokes-cfd: Stokes: a desktop CFD workbench on OpenFOAM. CAD in, results out, every action available as a tool call.

Haven't built full installers but using my other repo dhanninacs/foamWin: FoamWin brings OpenFOAM 14 to native Windows, with a PowerShell launcher, installer, and validated cavity examples. you should be able to run on Windows without the need for any installations etc. Of course, Linux version with installed OpenFoam 14 natively will be the fastest option (mostly tested on Ubuntu only)

I intend to add more features and add tool calls, skills and api in the background so you can completely use it with LLM's with minimal issues. My initial idea is to have an inbuilt local AI doing tool calls, let's see where that ends.

I know another AI slop but it was there in my githib private for too long and may as well release it for everyone.


r/OpenFOAM • • 15d ago

PhD in CFD and Data-Driven Methods / SciML!!

Thumbnail reddit.com
2 Upvotes

r/OpenFOAM • • 17d ago

Meshing OPENFOAM using a coplanar patch as a separate boundary.

Post image
1 Upvotes

r/OpenFOAM • • 22d ago

Has anyone tested the new GPU acceleration in OpenFOAM v2606 for large-scale CFD simulations?

Thumbnail reddit.com
7 Upvotes

r/OpenFOAM • • 23d ago

Very high temperatures in a hypersonic OpenFOAM [v2512] simulation – how should I approach this?

5 Upvotes

Very high temperatures and low density in a hypersonic OpenFOAM simulation – what should I check?

Hi everyone,

I’m running a 2D simulation of an airfoil section under hypersonic re-entry conditions in OpenFOAM v2512. CFD isn’t something we do much at my workplace, so I’d appreciate some help understanding my results.

The case has a high Mach number and a relatively high angle of attack. I’m using rhoCentralFoam with a laminar model, a perfect gas with constant heat capacity, and a prescribed, spatially varying wall temperature.

The simulation didn’t crash, but during the initial part of the run I noticed that the maximum gas temperature became extremely high (19000 K), while pressure and density dropped to very low values in parts of the flow, particularly near the upper surface. I stopped the run early, so the flow had not yet reached a settled state.

Could these values be a consequence of the perfect-gas model and the strong expansion around the airfoil, or are they more likely to indicate a problem with the setup, mesh, boundary conditions, or initialisation?

What would you check first to distinguish a numerical or setup issue from behaviour that is expected under these modelling assumptions?

Thanks for any advice!


r/OpenFOAM • • 24d ago

fastSnappyHexMesh (a faster shm version) on github

Thumbnail github.com
12 Upvotes

r/OpenFOAM • • 24d ago

PreFOAM now available for Linux

Thumbnail
temiz-cfd.de
6 Upvotes

r/OpenFOAM • • 28d ago

PreFOAM update

Thumbnail
gallery
96 Upvotes

Hi all,

A couple of months ago I posted about my software PreFOAM, a GUI for OpenFOAM that includes CAD, meshing utilities, a case builder and a case viewer. I’d like to let you know about a major update.

Subreddit: https://www.reddit.com/r/Prefoam_CFD/
Download page: https://www.temiz-cfd.de/prefoam

I’m looking for users who can test the software and give feedback on the whole toolchain. I’m especially interested in the meshing challenges you face. Any feedback is welcome.

Edit: Linux version is out.


r/OpenFOAM • • 28d ago

Considering learning OpenFOAM in the coming months. Is it worth my time?

14 Upvotes

I am in the midst of designing a pedal-powered ground-effect vehicle, and I have to perform some CFD. The plan was to divide the problem into different drag and lift components from both air and water and over a range of altitude and speed. However, my friends that use STAR-CCM+ have all drifted away from the project due to a lack of time. I tried to compute something by hand, starting from the limited data I got from my ten SimScale trial simulations (only two of which used my final wing profile), but I found that NASA's CL equations for ground-effect flight collapse at small h/c. I think this leaves me to learn CFD myself, which I would very much like, but I hardly find time for anything nowadays.

I've shared this with a naval architect I work with, and they told me that jumping directly into the open-sourced option may prove of some difficulty and that I wouldn't even know if I can trust my results. Of course I've read similar opinions online, but I've also found people arguing this shouldn't be much harder than other programmes. For context, while I am intelligent and determined, I find computer logic and coding challenging. So... is this worth my time?


r/OpenFOAM • • 28d ago

2D simulation of Savonius VAWT

4 Upvotes

Hi guys,

I’m a new user to openfoam but have extensive experience using Ansys tools and some experience with Abaqus and LS-Dyna.

I want to simulate the rotation of a 2D section of a savonius VAWT rotor and assess different dimensions of the blades. Does anyone have an example model file/setup that I could be sent to see how it’s set up please?

Thanks!