Rick's Blog

Font size: +

The Search for an OpenFOAM GUI

Valve CFD Example Photo Credit: https://cfd-freelancing.com/portfolio/valve-simulation/

Out of a nerdy curiosity, I have been interested in visualizations made possible by Computational Fluid Dynamics (CFD) and Finite Element Analysis (FEA) for some time.  It seems that OpenFOAM is a very capable, open-source option.  However, much of the setup and operation is through individual text files and command-line invocations.  For the 'recreational CFD-er', a Graphical User Interface (GUI) seems to be more productive.

 Because I model in Blender, I initially envisioned a workflow something like this:

-Create a model using tools in Blender or other similar 3D modeling program

-Export that model to a program that can put it inside a computational domain

-Generate a mesh and run the CFD/FEA

-Render the model and computational results, either separately or together in Blender (or similar) for distribution.

 Well, I was wrong.  A 3D modeling program is not the proper starting place for Computer Aided Design (CAD) or computational models.  (There are always exceptions...)  To over-simplify, Blender excels at rendering the artist's intent and CFD/FEA excel at coming up with an answer (depending on what the question is, but generally 42) based off engineering assumptions and simplifications.  So after appropriately berating my previous workflow, my new workflow is:

-Create an engineering model in the appropriate program

-Generate the mesh and complete analysis

-Use the engineering model as a starting point, create a 'render model' in Blender

-Output the results of the analysis, as desired, to Blender to render for distribution!

FreeCAD Example-from https://www.freecadweb.org/​

I had tried through strength of character and generally nice thoughts to force various versions of the Salome package to be that 'magic box' I needed, without much success. I recently tried FreeCAD. I'm still new to it, but there are several features, I really enjoy!

  • There are built-in and community addons that provide specific funtionality:
    • Airplane Design Workbench: Quckly create airfoils, ribs and wing sections
    • CfdOF: This provides the GUI for OpenFOAM. As a side-benefit, the model can be created, meshed and OpenFOAM'd all inside the same program
This FreeCAD/CfdOF combination don't expose the full capabilities of OpenFOAM, but I'm hopeful that the full capability of the command line will be there with the comforting knowledge that the GUI will keep the framework in the proper configuration, allowing small (recoverable) changes to the text files and associated command line inputs.  Time will tell! :)
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

OpenFOAM Baby Steps - 2D Flow Over a Cylinder
Large Aircraft Series - CRJ-700

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Thursday, 28 September 2023

Captcha Image

Rick's Blog

Font size: +

The Search for an OpenFOAM GUI

Valve CFD Example Photo Credit: https://cfd-freelancing.com/portfolio/valve-simulation/

Out of a nerdy curiosity, I have been interested in visualizations made possible by Computational Fluid Dynamics (CFD) and Finite Element Analysis (FEA) for some time.  It seems that OpenFOAM is a very capable, open-source option.  However, much of the setup and operation is through individual text files and command-line invocations.  For the 'recreational CFD-er', a Graphical User Interface (GUI) seems to be more productive.

 Because I model in Blender, I initially envisioned a workflow something like this:

-Create a model using tools in Blender or other similar 3D modeling program

-Export that model to a program that can put it inside a computational domain

-Generate a mesh and run the CFD/FEA

-Render the model and computational results, either separately or together in Blender (or similar) for distribution.

 Well, I was wrong.  A 3D modeling program is not the proper starting place for Computer Aided Design (CAD) or computational models.  (There are always exceptions...)  To over-simplify, Blender excels at rendering the artist's intent and CFD/FEA excel at coming up with an answer (depending on what the question is, but generally 42) based off engineering assumptions and simplifications.  So after appropriately berating my previous workflow, my new workflow is:

-Create an engineering model in the appropriate program

-Generate the mesh and complete analysis

-Use the engineering model as a starting point, create a 'render model' in Blender

-Output the results of the analysis, as desired, to Blender to render for distribution!

FreeCAD Example-from https://www.freecadweb.org/​

I had tried through strength of character and generally nice thoughts to force various versions of the Salome package to be that 'magic box' I needed, without much success. I recently tried FreeCAD. I'm still new to it, but there are several features, I really enjoy!

  • There are built-in and community addons that provide specific funtionality:
    • Airplane Design Workbench: Quckly create airfoils, ribs and wing sections
    • CfdOF: This provides the GUI for OpenFOAM. As a side-benefit, the model can be created, meshed and OpenFOAM'd all inside the same program
This FreeCAD/CfdOF combination don't expose the full capabilities of OpenFOAM, but I'm hopeful that the full capability of the command line will be there with the comforting knowledge that the GUI will keep the framework in the proper configuration, allowing small (recoverable) changes to the text files and associated command line inputs.  Time will tell! :)
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

OpenFOAM Baby Steps - 2D Flow Over a Cylinder
Large Aircraft Series - CRJ-700

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Thursday, 28 September 2023

Captcha Image