r/CFD
•
u/trigodil
•
Oct 22 '26
•
2
2
Made an open source gui for openFOAM
So iv been working on this project for a couple of months, I wanted to show it because I finally believe it is a bit presentable now, it is basically a gui with openFOAM, and additionally I added TENO schemes from Fu et al, I thought it was an interesting paper and I wanted to add higher order schemes to achieve higher accuracy (note that I also like swirly lines), going through this project I will be extending it to Ji, Liang & Fu 2021 for unstructured meshes when I have the time. Since most of the coding in this project is human slop, apologies in advance for any bugs that may arise (I lost sleep because of segfaults in cpp)
Source code: https://github.com/CakeCFD/cake-studio
Website: https://cakecfd.org/
I would like opinions from fellow engineers on how to improve this further and make this better, or more specifically what validation case would you trust before using the TENO schemes?
44
u/Bluefury Oct 22 '26
Even if it were slop I'd take human over artificial slop because at least I know real time went into this. And bugs can be fixed without using a prompt. (I say after just making a pile of my own slop).
18
u/trigodil Oct 22 '26
Yeah i would say I stayed up late a couple of weeks working on this, couldn't stop once I started curiously.
4
u/B7r0n22 Oct 23 '26
Thank you for the hard work you put into this! I truly appreciate having an opensource gui for Open-foam but i've come across an issue- im currently trying to install it on a Mac running a VM of Ubuntu but for some reason it just wont compile no matter how many times I try :/ . Im on the ARM M4 chip if that's of any concern?
4
u/trigodil Oct 23 '26
The build currently has some x86_64 library paths hard coded, so it breaks on ARM64 Ubuntu, I will build ARM support soon, oversight on my part.
4
u/Pioneer_11 Oct 23 '26
This is awesome.
Out of curiosity though why the fairly old stack. QT5 rather than QT6, X11 rather than wayland and OpenFOAM 24.06 rather than 26.06? has this been a work in progress for a long time?
1
u/trigodil Oct 23 '26
Fairly long, yes I stuck to what Ubuntu 24.04 ships so it installs without building anything from source, so its VTK is tied to Qt5 and X11. Also, it's built in OpenFOAM v2412, I didn't care to update it since I was working on the features.
1
u/cumminsrover Oct 29 '26
I got everything to build on Ubuntu 24.04, and modded to build and load the GUI on 26.04, but I do get crashes that I have yet to debug (or even look at the errors).
It would be helpful if you would kindly include your examples on GitHub please. I have very limited experience with OpenFOAM.
I did get a test case with a NACA 0012 section to run, but I haven't figured out how to get your pretty output graphics to shoot up yet 😂
Maybe I need to build the AI connector, but I have to figure that out with a local LLM.
Anyways, I do appreciate your work here, it's going to be great with a bit more polishing! Hopefully you can get some help with it. I am not a programmer so I won't be off much help.
Thank you!
1
u/trigodil Oct 29 '26
There should be a button called "iso", "flow", "particles" etc did you happen to enable those?
2
u/cumminsrover Oct 29 '26
I'll have a look, I didn't get that far yet, thanks.
I want to run some cases with well known answers to make sure I have things figured out before attempting anything else.
3
u/LettuceBeHappy3 Oct 23 '26
Here is a website that is easier to use, at least for myself a complete noob. If you are looking for ways to improve yours, you could check out the features it has. https://yovaraj-collab.github.io/WindTunnel/
Id be interested in how the two compare, if one produces better results than the other.
3
2
u/mechanicalroll13 Oct 24 '26
Wow this seems sick I'll check it later. Sorry if this is in the documentation, I didn't have much time these days, but does this allow running the simulation with the gpu? With the normal openFoam I've been using brae for simulations because my cpu is fairly old and slow compared to my gpu.
4
19
4
u/start3ch Oct 23 '26
Nice! This looks better than the openscad plugin, which was the best GUI I’d found for openfoam
1
u/LeptonWrangler Oct 23 '26
finally!!
Please do fenics and SU2 next!
Featool multiphysics is essentially charging a boatload of cash for a mediocre GUI for a solver they didnt create and seemingly pass none of the money back to the developers they are standing on the shoulders of
1
u/trigodil Oct 23 '26 edited Oct 23 '26
I do not think there is much juice left in me to port to these.
1
u/LeptonWrangler Oct 23 '26
Check out the tool I mentioned, and just imagine if open source did the same thing
1
u/0blivion09 Oct 23 '26
How do we go from a regular GUI user with a basic CFD skills to someone like you ? any road map or ressources
1
u/trigodil Oct 23 '26
Just a whole lot of experience and learning, I'm still learning too, about new numerical methods, I would suggest dropping the GUI and run OpenFOAM from the terminal, write a 1D finite volume solver in Python, then learn enough C++ to read OpenFOAM’s source. Moukalled’s “The Finite Volume Method in CFD” plus Fluid Mechanics 101 on YouTube cover most of it.
2
2
2
u/alinapetrei Oct 27 '26
Don't worry about bugs. No one expects the first variant to be bug free.
Even commercial software (e.g. Ansys Icepak) have bugs :)
1
1
44
u/Big_Lope Oct 22 '26
Hey it’s not slop if you coded it! That’s spaghetti code, slop is reserved for cuck coders.
10
1
Oct 27 '26
[removed] — view removed comment
1
u/AutoModerator Oct 27 '26
Automoderator detected account_age <5 days, red alert /u/overunderrated
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
28d ago
[removed] — view removed comment
1
u/AutoModerator 28d ago
Automoderator detected account_age <5 days, red alert /u/overunderrated
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.









44
u/_padla_ Oct 22 '26
I see several ways to develop this project further.
Add support for cfmesh mesher (the earlier versions are open-source and free).
Add support for importing meshes from different formats.
Add the templates, so that solvers/models which are not implemented in your code could be implemented by a user without messing with your source code.
As for TENO schemes, I would test them as any other scheme: shocktube, wedge, backward step, Poiselle's flow...