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

thschrader
Veteran
Posts: 3129
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 30, 2021 9:41 am ...
Crossley_Simple_Cylinder_019.FCStd
...
Hi Michael,
I ran your cylinder case and I get the same errors like you.
The example was done with FC0.19, right?
Maybe this confuses FC0.20.
Try to rebuilt the complete case with the newest FC0.20 dev-snapshot.
Dont use inlet with pressure definition. Use velocity for testing and
potential flow for initializing v/p-fields.
Regards Thomas
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by Syres »

thschrader wrote: Thu Sep 30, 2021 4:02 pm The example was done with FC0.19, right?
Maybe this confuses FC0.20.
I was caught out by the Topo changes to Cylinders using the Curves workbench see https://forum.freecadweb.org/viewtopic. ... 98#p536895
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: Thu Sep 30, 2021 4:02 pm
Crossleyuk wrote: Thu Sep 30, 2021 9:41 am ...
Crossley_Simple_Cylinder_019.FCStd
...
Hi Michael,
I ran your cylinder case and I get the same errors like you.
The example was done with FC0.19, right?
Maybe this confuses FC0.20.
Try to rebuilt the complete case with the newest FC0.20 dev-snapshot.
Dont use inlet with pressure definition. Use velocity for testing and
potential flow for initializing v/p-fields.
Regards Thomas

Thank you Thomas,

I was thinking allong these lines myself, yes, FreeCAD 0.19. This was my very first case but having problems with all my FC0.18 cases as well. Not come across FC0.20 dev-snapshot yet and certainly will take a look tomorrow.

Nice to have a name Thomas, thanks again.

Regards

Michael
nixxx
Posts: 4
Joined: Wed Jun 05, 2019 8:05 pm

Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM

Post by nixxx »

Hi guys,
I understand the CFDOF user interface does not provide access to all of the functionality of OpenFOAM, right? But, can this be accessed via the OpenFOAM_Start shortcut that is created during the installation? E.g, is this a full OpenFOAM installation or does it have some limitations?
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: Thu Sep 30, 2021 4:02 pm
Crossleyuk wrote: Thu Sep 30, 2021 9:41 am ...
Crossley_Simple_Cylinder_019.FCStd
...
Hi Michael,
I ran your cylinder case and I get the same errors like you.
The example was done with FC0.19, right?
Maybe this confuses FC0.20.
Try to rebuilt the complete case with the newest FC0.20 dev-snapshot.
Dont use inlet with pressure definition. Use velocity for testing and
potential flow for initializing v/p-fields.
Regards Thomas
Hi Thomas,

Thanks but I don't see FC0.20 available for Windows and don't have the skills available to do any more.

I have a lot of FC0.18 cases that worked fine before my PC and FreeCAD 0.19 changes. Should I expect them to run in FC019? I cannot get them to work at all. Is this suggesting that a FC018 case is not applicable in FC19?

My next step is to go back to FC18 and check things out again

Regards

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 »

nixxx wrote: Fri Oct 01, 2021 8:45 am Hi guys,
I understand the CFDOF user interface does not provide access to all of the functionality of OpenFOAM, right? But, can this be accessed via the OpenFOAM_Start shortcut that is created during the installation? E.g, is this a full OpenFOAM installation or does it have some limitations?
Yes, CfdOF interfaces with an external installation of OpenFOAM from one of its various suppliers. The installation is just a convenience and it is indeed the full, unaltered version.
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 30, 2021 9:41 am OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)

Thanks for understanding Oliver,

Crossley_Simple_Cylinder_019.FCStdCrossley_Output_Report_30-09-21.pdfOpenFOAM_Directory-03.PNG

Crossley_Python_Console_30-09-21.pdf

Please let me know if I can do any more.

Michael
Hi Michael

When I open the file in 0.19 there is an error shown on the "Pad" object (red exclamation mark): "Linked shape object is empty". I'm not sure what the cause is exactly but you might need to re-generate the geometry (and afterwards, make sure your boundary conditions are pointing to the right faces). Presumably something changed in FreeCAD between version 0.18 and 0.19 to break your saved file.
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 »

Hi Oliver,

I opened that case and saw the Pad error so redrew the case below and dis not get teh Pad exclamation mark.

I rand the new case and I got the following response:
Crossley_Simple_Cylinder_019_#2.FCStd
(105.09 KiB) Downloaded 90 times
Simple_Cylinder_#2_Error.PNG
Simple_Cylinder_#2_Error.PNG (13.42 KiB) Viewed 4005 times
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: Sun Oct 03, 2021 11:09 am Hi Oliver,

I opened that case and saw the Pad error so redrew the case below and dis not get teh Pad exclamation mark.

I rand the new case and I got the following response:

Crossley_Simple_Cylinder_019_#2.FCStdSimple_Cylinder_#2_Error.PNG
Hi Michael

Looks like the same error you asked about a few weeks back. Please see my response here: https://forum.freecadweb.org/viewtopic. ... 00#p532769
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 Oliver, you were correctbith times :roll:

But the calclations crearly start providing me with the Ux, Uy and Uz chart dialogue, but I then get exit with error and:

C:\Users\Michael Crossley\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdResidualPlot.py:68: UserWarning: Data has no positive values, and therefore cannot be log-scaled.
ax.set_yscale('log')


Seriously wish I could follow all this.

Michael
Post Reply