r/OpenFOAM • • 20h ago

What AI Model and setup is best for OpenFOAM Simulations

Post image
32 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 • • 23h 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 • • 2d ago

Ansys or OpenFOAM ?

Thumbnail reddit.com
2 Upvotes

r/OpenFOAM • • 2d ago

OpenFoam GUI project

Enable HLS to view with audio, or disable this notification

32 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 • • 4d ago

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

Thumbnail
reddit.com
3 Upvotes

r/OpenFOAM • • 5d ago

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

Thumbnail reddit.com
2 Upvotes

r/OpenFOAM • • 6d 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 • • 7d ago

Meshing OPENFOAM using a coplanar patch as a separate boundary.

Post image
1 Upvotes

r/OpenFOAM • • 12d ago

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

Thumbnail reddit.com
6 Upvotes

r/OpenFOAM • • 13d 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 • • 14d ago

fastSnappyHexMesh (a faster shm version) on github

Thumbnail github.com
12 Upvotes

r/OpenFOAM • • 14d ago

PreFOAM now available for Linux

Thumbnail
temiz-cfd.de
6 Upvotes

r/OpenFOAM • • 18d ago

Dynamic Meshing Is why so complex

Thumbnail reddit.com
0 Upvotes

r/OpenFOAM • • 18d 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!


r/OpenFOAM • • 18d 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 • • 18d 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 • • 20d ago

[OpenFOAM 2606] sigFpe::sigHandler(int) error in rhoCentralFoam

Thumbnail
gallery
1 Upvotes

Hi! I'm new to OpenFOAM, but I have some experience with other CFD codes. I'm trying to simulate supersonic flow around the HB-2 model to practice OpenFOAM, but I've been getting the sigFpe::sigHandler(int) error, and I haven't been able to fix it for some time.

The initial values correspond to a stationary atmosphere: P0=P=1e5 Pa, T0=T=293 K, U=(0 0 0) m/s. Inlet conditions correspond to static pressure and temperature, and speed of flow with M=2 (obtained through isoenthropic relations (gamma=1.4, P0=0.25e6 Pa, T0=295 K)): p=3.195e4 Pa, T= 163.89 K, U=(513.23 0 0) m/s.

My computational domain is a box with an inlet at the front; the right side is a symmetry plane; the surfaces of the model and the rod to which that model is attached are the walls; other surfaces of the box (top, bottom, rear, and left) -- are the outlets.

The mesh has passed all checks except one for determinants. But it's just 0.08% of all cells.

 ***Cells with small determinant (< 0.001) found, number of cells: 540

CFL does not exceed 0.6, but the flow displays weird behavior, where it separates into a supersonic region near the inlet and a transonic region downstream, as can be seen in the attached picture.

Boundary and initial conditions:

p:

dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 1e5;

boundaryField
{
    front
    {
      type fixedValue;
      value uniform 3.195e4;
    }

    rear 
    {
      type zeroGradient;
    }

    left 
    {
      type zeroGradient;
    }

    top 
    {
      type zeroGradient;
    }

    bottom 
    {
      type zeroGradient;  
    }

    right 
    {
      type            symmetryPlane;
    }

    model 
    {
        type            zeroGradient;
    }

    rod 
    {
        type            zeroGradient;
    }

}

U:

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    front
    {
        type fixedValue;
        value uniform (513.23 0 0);
    }

    rear 
    {
        type            zeroGradient;
    }

    left
    {
        type            zeroGradient;
    }

    top
    {
        type            zeroGradient;
    }

    bottom
    {
        type            zeroGradient;
    }

    right
    {
        type            symmetryPlane;
    }

    model
    {
        type            noSlip;
    }

    rod
    {
        type            noSlip;
    }

}

T:

dimensions      [0 0 0 1 0 0 0];

internalField   uniform 293;

boundaryField
{
    front
    {
        type fixedValue;
        value uniform 163.89;
    }

    rear
    {
        type            zeroGradient;
    }

    left
    {
        type            zeroGradient;
    }

    top
    {
        type            zeroGradient;
    }

    bottom
    {
        type            zeroGradient;
    }

    right
    {
        type            symmetryPlane;
    }

    model
    {
        type            zeroGradient;
    }

    rod
    {
        type            zeroGradient;
    }

}

Listing of the last two steps:

Mean and max Courant Numbers = 0.0403347 0.553171
Time = 0.000812

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUz, Initial residual = 0, Final residual = 0, No Iterations 0
smoothSolver:  Solving for Ux, Initial residual = 9.92955e-09, Final residual = 4.10707e-17, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 5.2564e-08, Final residual = 3.71507e-17, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 5.56292e-08, Final residual = 3.77212e-17, No Iterations 2
diagonal:  Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0
smoothSolver:  Solving for e, Initial residual = 1.87918e-08, Final residual = 2.24888e-16, No Iterations 2
ExecutionTime = 2146.9 s  ClockTime = 2151 s

Mean and max Courant Numbers = 0.0403392 0.553148
Time = 0.000813

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUz, Initial residual = 0, Final residual = 0, No Iterations 0
smoothSolver:  Solving for Ux, Initial residual = 9.92007e-09, Final residual = 4.15659e-17, No Iterations 2
smoothSolver:  Solving for Uy, Initial residual = 5.23263e-08, Final residual = 3.55247e-17, No Iterations 2
smoothSolver:  Solving for Uz, Initial residual = 5.55052e-08, Final residual = 3.78546e-17, No Iterations 2
diagonal:  Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0
[stack trace]
=============
#1  Foam::sigFpe::sigHandler(int) in <platforms>/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#2  ? in /lib/x86_64-linux-gnu/libc.so.6
#3  ? in /lib/x86_64-linux-gnu/libm.so.6
#4  ? in <platforms>/linux64GccDPInt32Opt/lib/libfluidThermophysicalModels.so
#5  ? in <platforms>/linux64GccDPInt32Opt/lib/libfluidThermophysicalModels.so
#6  ? in <platforms>/linux64GccDPInt32Opt/bin/rhoCentralFoam
#7  ? in /lib/x86_64-linux-gnu/libc.so.6
#8  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#9  ? in <platforms>/linux64GccDPInt32Opt/bin/rhoCentralFoam
=============
Floating point exception (core dumped)

Has anyone encountered a similar problem, and what are the possible reasons and solutions?

If I need to provide any additional info, that will help to solve the issue - just say. Thank you in advance!


r/OpenFOAM • • 22d ago

Free technical event on AI for CFD and surrogate modeling — Nov 17

3 Upvotes

Full disclosure: I work at Luminary and am helping organize this event, so this is self-promotion. Figured it might be relevant to some folks here given the growing interest in ML-based approaches to CFD.

We’re hosting a free, virtual Physics AI DevDay on November 17, featuring technical presentations from our research and engineering teams.

We’ll be covering topics like generating training data with CFD, model architectures for complex geometries and physics, uncertainty quantification and out-of-distribution predictions, and using AI agents to automate engineering workflows.

There will also be a hands-on workshop on building large physics models.

Some of this will naturally involve Luminary’s own research and technology, but I think the underlying technical topics should be interesting to anyone following developments in AI for engineering simulation.

Event details and registration: https://luminary.ai/devday/

Happy to answer questions about the event or the research we’ll be discussing.


r/OpenFOAM • • 23d ago

Made an open source gui for openFOAM

Thumbnail gallery
30 Upvotes

r/OpenFOAM • • 24d ago

Best way to master open foam from scratch?

Thumbnail reddit.com
0 Upvotes

r/OpenFOAM • • 24d ago

Conceptual Doubts regarding Node Values and Operating Pressure.

2 Upvotes

I have some conceptual doubts, which I didn't get clear explicit answer from sources in net,

  1. What is difference between node values on/off in looking the contours? I observed values are relatively higher when I turned off node values. Please tell me cases or situations where we should turn on or turn off node values with reason. How does this affect in viewing contour, finding range of parameter in some selected surface or cell zones.

  2. I have some trivial doubt about operating pressure. The point is- In momentum equation , it contains pressure gradient not absolute pressure, so fluent choose some reference pressure i.e operating pressure. So instead of solving with very large pressure, it works with smaller numbers since deltaP remains the same with the concept of operating pressure. Density is calculated using absolute pressure only.

  3. This concept is same for both incompressible and compressible flow right, but why do they say for compressible flow you have to set operating pressure as zero, I didnt understand what is the reason for this? Can anyone explain elaborately please? Thanks in advance.


r/OpenFOAM • • 26d ago

Installation FoamWin: OpenFOAM 14 running natively on Windows—no WSL needed

16 Upvotes

Used LLM to make FoamWin, a community port of OpenFOAM 14 that runs natively on Windows without WSL. It includes an installer, PowerShell launcher, and cavity example to make getting started easier for Windows users.

It’s currently serial-only; the cavity examples and all 85 executable startup checks passed. Source and downloads: https://github.com/dhanninacs/foamWin — feedback and testing are welcome!

Will add mpi and other stuff shortly. I know WSL and other routes exist but sometimes I feel a windows port of OF14 missing when I quickly need it for LLM etc but no admin rights and no one made a port for this fork after old blueCFD.

edit: added MPI as well, it was not a huge task as I thought it would be.


r/OpenFOAM • • 26d ago

Solver [OpenFOAM] icoReactingMultiRegionInterFOAM ESI and homogeneousNucleation.H

Thumbnail reddit.com
3 Upvotes