Computational Fluid Dynamics (CFD) workbench using OpenFOAM

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Syres »

It would assist if you could from a Command Prompt run Path to give an output below, it would then prove that the folder containing the mpiexec.exe file is being correctly located (obviously it'll be in a different place to mine).

MPI_Path.jpg
MPI_Path.jpg (116.24 KiB) Viewed 4262 times
MPI_Files.jpg
MPI_Files.jpg (57.25 KiB) Viewed 4262 times

If the correct folder isn't in your path then it would be good to show a screenshot of the installed programs as per:

MPI_Install.jpg
MPI_Install.jpg (138.28 KiB) Viewed 4262 times

Hopefully that'll give everyone confidence that MPI is installed and is being called from the correct location.
User avatar
Crossleyuk
Posts: 165
Joined: Wed Jun 20, 2018 7:47 am
Location: United Kingdom
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Crossleyuk »

Hello Syres

Hope this helps. These are the results of following your images. Sorry, this is all new to me.
Syres - MPI_Path.PNG
Syres - MPI_Path.PNG (13.56 KiB) Viewed 4242 times
Syres -MPI_Files.PNG
Syres -MPI_Files.PNG (21.16 KiB) Viewed 4242 times
Syres_Install. - MPI.PNG
Syres_Install. - MPI.PNG (35.3 KiB) Viewed 4242 times

Many thanks happy to provide more if required.

Michael
thschrader
Veteran
Posts: 3127
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by thschrader »

@Michael
Have you updated the cfdof-wb?
There were several updates in the last months.
https://github.com/jaheyns/CfdOF

Have a look at the potentialFoam output:
Your values are all zero, potentialFoam calculates nothing...
potential_flow.JPG
potential_flow.JPG (102.78 KiB) Viewed 4199 times
User avatar
Crossleyuk
Posts: 165
Joined: Wed Jun 20, 2018 7:47 am
Location: United Kingdom
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Crossleyuk »

I installed the latest version of CfdOF when I reinstalled FreeCAD. Sorry I do not unerstand but I do only get zeros
GAMG Zero.PNG
GAMG Zero.PNG (40.82 KiB) Viewed 4174 times

So what can I do?

Michael
User avatar
Crossleyuk
Posts: 165
Joined: Wed Jun 20, 2018 7:47 am
Location: United Kingdom
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Crossleyuk »

Sorry, finally understood your suggestions and now know how to update the workbench, so that is done for Plot and CfdOF.

Unfortunately, no change niether my own models or your suggested naca2412 finish with Simulation exited with error

During CfdOF run I receive a red error ? statement "openfoam: windows support (mingw64) is runtime only"

Regards,

Michael
thschrader
Veteran
Posts: 3127
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by thschrader »

Crossleyuk wrote: Thu Sep 23, 2021 12:24 pm ...
So what can I do?
...
Can you rerun my testcase, save it under new name and post it?
Maybe I can figure out whats happened.
User avatar
Crossleyuk
Posts: 165
Joined: Wed Jun 20, 2018 7:47 am
Location: United Kingdom
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Crossleyuk »

thschrader wrote: Fri Sep 24, 2021 6:22 am
Crossleyuk wrote: Thu Sep 23, 2021 12:24 pm ...
So what can I do?
...
Can you rerun my testcase, save it under new name and post it?
Maybe I can figure out whats happened.
Hello, thanks again. Please find attached. I have the same problems with my own models.
MJC_naca2412.FCStd
(406.02 KiB) Downloaded 64 times

Hope I can help, please let me know if I can do anything!

Best regards.

Michael
thschrader
Veteran
Posts: 3127
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by thschrader »

Crossleyuk wrote: Fri Sep 24, 2021 11:18 am Hello, thanks again. Please find attached. I have the same problems with my own models.
MJC_naca2412.FCStd
Hope I can help, please let me know if I can do anything!
Best regards.
Michael
Your file runs fine on my machine.
Last try: run simulation in single-mode, not parallel. Does it work?

I am on
blueCFD-Core-2020
and
OS: Windows 10 Version 1909
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git)
Build type: Release
Branch: master
Hash: 37d9757399b4c2ec30318eb88d7cd7c508246345
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)
User avatar
Crossleyuk
Posts: 165
Joined: Wed Jun 20, 2018 7:47 am
Location: United Kingdom
Contact:

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Crossleyuk »

No realy confused, still. Actually tried to run your case again and it worked fine that time. Actually stopped after 100 cycles and could see a result in Paraview. So decide to try again and leave it running. The rerun fails completely because it could not find a mesh so remeshed. This failed and resulted in
naca2412 mesh error.PNG
naca2412 mesh error.PNG (50.23 KiB) Viewed 3819 times

Now giving up and going back to my own cases after a restart, uninstalling and reinstalling FreeCAD and CfdOF etc.

Thanks,

Michael
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by oliveroxtoby »

Crossleyuk wrote: Thu Sep 23, 2021 3:29 pm Sorry, finally understood your suggestions and now know how to update the workbench, so that is done for Plot and CfdOF.

Unfortunately, no change niether my own models or your suggested naca2412 finish with Simulation exited with error

During CfdOF run I receive a red error ? statement "openfoam: windows support (mingw64) is runtime only"

Regards,

Michael
Hi Michael

You have been following thschrader's advice to re-install blueCFD; however, the error message above suggests you are still using the OpenCFD installation - this is a different Windows packaging of OpenFOAM than blueCFD. So all your reinstallations of blueCFD won't have any effect unless you tell CfdOF to use it. Do this by changing the OpenFOAM installation directory in Preferences to the location where you installed blueCFD, or alternatively, un-install the OpenFOAM installation and leave only the blueCFD one. CfdOF should then automatically use blueCFD if I remember correctly.
Please provide all the information requested in this post before reporting problems with CfdOF.
Post Reply