r/OpenFOAM

Problems installing OpenFoam v2606 on Arch from AUR

Problems installing OpenFoam v2606 on Arch from AUR

Hi, I'm trying to install OpenFoam v2606 on my Arch system from user repositories (AUR). I'm neither a Linux nor OpenFoam expert, so I'm not sure if my question is better suited for this subreddit or an arch/linux one.

What I've done so far on:

- manually installed all dependencies,
- cloned openfoam-com repo,
- run makepkg -s in the cloned repo directory.

My build seems to be done. It ends with "Build failed with 0 executables and libraries". Which I believe means that it has succeeded. Now the folder contains the following files:

Finished build

Normally I would just run:

pacman -U package_name-version-architecture.pkg.tar.zst

As per arch wiki but unfortunately there is no file with the .pkg.tar.zst extension.

If nothing works out, I might try building from source, though I doubt I will be successful since I've never tried that before.

Did anyone go through the process recently and can point me in the right direction?

reddit.com
u/piotrekdoro1 — 13 hours ago
▲ 3 r/OpenFOAM+1 crossposts

Help with cavity tutorial in OpenFoam

I tried to do the cavity tutorial by following the guide on openfoam.com, documentation/tutorial-guide/2-incompressible-flow. I did blockMesh, then icoFoam for solving but when i try to use the paraFoam command i get an error(in the picture), there is no Mesh parts only Mesh regions and the file is .foam instead of .OpenFOAM. I also added the picture of what it looks like in paraview. What am i doing wrong
openfoam2412, ParaView6.0.1, Ubuntu26.04

u/DistributionShort649 — 19 hours ago
▲ 27 r/OpenFOAM+2 crossposts

AI/ML Implications in CFD for Aircraft Design

Hey guys, I've got about a year of experience with OpenFOAM. I've run different types of simulations — SIMPLE, PIMPLE, incompressible, compressible, laminar, turbulent — on 2D airfoils and 3D aircraft, like the NASA N2A HWB model, with decent mesh quality and case setup. The post-processed results matched the reference data pretty well. Just sharing this to give some context on where I'm at with OpenFOAM, but I'm still learning and exploring more of it.

Lately I've been seeing AI/ML being used in CFD, and since I come from a non-coding background (I'm a Mechanical Engineer), AI/ML and neural networks still feel like a black box to me. I don't really know how they work under the hood.

So I wanted to ask — how can I actually use AI/ML and neural networks in aviation-related CFD work?

For context, my future work will mostly revolve around optimization studies, detailed aircraft analysis, and static/dynamic stability analysis of aircraft. So I'm hoping to understand how AI/ML can help speed things up, and ideally how to align with whatever the industry is currently doing in this space.

reddit.com
u/Life_Calligrapher330 — 3 days ago
▲ 0 r/OpenFOAM+1 crossposts

I am writing this tool to organise / explain a CFD workspace (at least trying to)

Hey, I’m working on a small local tool for CFD folders. In a previous project, the shared drive gradually filled up with copied and renamed cases, different meshes, logs and results. After a while, it was hard to tell which case was used, what changed, or why one version was kept.

The idea is simple: point the tool at an existing folder, and it scans everything without modifying the files. It builds a small local database so the cases and their context can be viewed together.

At the moment, you can:

  • Browse the openfoam cases it found.
  • See basic solver, mesh, boundary, numerical and run information.
  • Select two cases and see what changed.
  • Group cases that belong to the same experiment or investigation.
  • Add labels and short notes, such as why a case was kept or abandoned.

I’m currently testing OpenFOAM Foundation 9, Foundation 14 and OpenCFD v2512. I may look at Fluent later (pyfluent), and possibly add some simple orchestration (run sims or like mesh, etc).

I attached screenshots of the case list and group view. It’s still very early, though. I am trying to make it like an additional "why? where? and how?" tracker kinda thing.

u/New-Pay1536 — 3 days ago

How do you handle cases where simulation and physical test results don't match?

I'm interested in how FEA/CFD teams deal with the gap between simulation results and real-world test results.

For example, if a simulation predicts one result but the physical test gives something noticeably different:

  • How do you determine what caused the discrepancy?
  • Do you have a systematic process for correlating the simulation to the test?
  • What data/tools do you normally use?
  • Is this usually handled manually by the engineer?
  • How much time can this investigation take?
  • Are there particular parts of this process that are consistently painful?

I'm especially interested in how this works in industry rather than academic/research settings.

I'm trying to understand whether this is actually a significant engineering problem or just something that looks more painful from the outside.

reddit.com
u/DragaClaw — 5 days ago

Facing a problem in my college project as a beginner, can ya'll help me out…😭🤧

Hi. I'm working on a stratified domain with a temperature difference of 20K while using buoyantBourssinesqPimpleFoam solver and LES WALE model on openFOAM v2412.

My domain configuration is 5 X 1 X 1m. My Flow is along +ve X direction with Z being the vertical direction along height. There are 2 hills inside my domain, both being 1.5m and 2.5m away from inlet.
Internal field is linearly stratified from bottom to top using python file (T=290+20*z; as z varies from 0 to 1m, the value of temp changes). Inlet has continuous stratified flow entering with 0.0767m/s to satisfy Froude No.=0.5.

I got significant negative Ux at the outlet almost immediately. At around 0.2-0.6s, I see spatially organized bands at the outlet and sometimes flow apparently entering the domain through the outlet.
What's confusing is that the hill is nowhere near the outlet at this point. At 0.0767 m/s (inlet velocity) the 5 m advective travel time is ~65 s. At 1 m/s, however, the outlet behaviour looks much more reasonable. This makes me suspect either a low-Froude/stratification effect or a numerical/BC issue.

I'm providing some pictures and boundary conditions hoping someone helps me get out of this mess. I've tried changing BCs but it didn't work out at all. My doubt is on outlet boundary conditions causing initial Pressure-Velocity coupling misconfiguration and severe backflow throughout 100 seconds...

u/OkPublic2232 — 5 days ago

How do you manage and compare large numbers of CFD/FEA simulation runs?

I'm researching the workflow engineers use to manage CFD/FEA simulations, particularly when you have dozens or hundreds of runs with different meshes, solver settings, boundary conditions, models, etc.

I'm considering building a tool that would:

  • track each simulation run and its settings
  • keep runs organized/versioned
  • compare results between runs
  • automatically check things like convergence and mesh independence
  • generate verification/validation reports

Before building anything, I want to understand how people actually handle this today.

For those of you who regularly use Fluent, ANSYS, OpenFOAM, Abaqus, etc.:

  1. How do you currently organize your simulation runs?
  2. Do you use folders, Excel, scripts, Git, a PLM system, or something else?
  3. How do you compare a large number of runs?
  4. How much of your verification/convergence/mesh-independence analysis is manual?
  5. Do you have to manually create reports documenting your simulation methodology and results?
  6. What's the most annoying part of this workflow?
  7. If a tool automated some of this, what would it need to do for you to actually use it?
  8. Would this be something you'd pay for? If so, what pricing model would make sense?

I'm particularly interested in hearing from people who have dealt with 20–100+ simulation runs rather than just a few cases.

I'm not trying to sell anything here — I'm trying to find out whether this is actually a problem worth solving before I spend months building it.

reddit.com
u/DragaClaw — 8 days ago

I made a small CLI tool for plotting OpenFOAM results – OFGS

I've been working on a small open-source tool called OFGS (OpenFOAM Gnuplot Suite) to make some of the routine plotting/monitoring around OpenFOAM cases a bit easier.

It detects supported data in a case and can generate graphs, open individual plots or a dashboard, and live-monitor results while a simulation is running. There's also a doctorcommand for checking the OFGS/OpenFOAM environment.

It's deliberately pretty lightweight, essentially a CLI built around gnuplot rather than a replacement for ParaView or proper post-processing tools. There are definitely limitations to what data/plots it understands, and I'm sure there are OpenFOAM workflows I haven't accounted for.

I'm also not an OpenFOAM or engineering expert, I'm a humble HPC sysadmin who spends a lot of time around OpenFOAM users and wanted to streamline some of the repetitive workflow.
It's packaged for Debian 12 and Rocky Linux 9, or you can install/use it from source.

Would genuinely appreciate feedback from people who use OpenFOAM properly, especially anything OFGS gets wrong or could handle better.

github.com
u/MNZRAHMD — 9 days ago

Am I doing it wrong

Well, I decided to simulate free vortex (same as performed in our lab) using openfoam. I used ai to write the code but decided on Reynolds and some other values myself is it the correct way am I supposed to write the code on my own ?? Please I need guidance on what to learn in the code

reddit.com
u/sxi_21 — 11 days ago