Update on the development of the OpenFOAM CFD workbench (CFDOF)

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: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by thschrader »

Just downloaded the latest 0.17.12539 dev-snapshot.
When loading an existing case, the InitialiseFields dialog
is inactive. With my "old" 0.17.12431 everything works fine.

(@Oliver: the loaded case is the "damBreak"-tutorial from the
openFoam user guide. With the cfd-of wb you only need 15 min to
generate the case... :) paraview-results below calculated with 0.17.12431)

Another wish: everytime when using a new dev-snapshot, I manually (must)
copy the gnuplot-folder/gnuplot...egg-info file from my previous version into
the bin/lib/site-packages folder of the new FC-version. Please add
the gnuplot files as a standard to FC, thanks.
System used:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12539 (Git)
Build type: Release
Branch: master
Hash: adc24f8c8ffb81ce5b85af9ac6ed67054ae0030d
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
InitializeFieldsIsDown.JPG
InitializeFieldsIsDown.JPG (68.12 KiB) Viewed 2885 times
alphaW1.JPG
alphaW1.JPG (22.13 KiB) Viewed 2885 times
alphaW2.JPG
alphaW2.JPG (21.84 KiB) Viewed 2885 times
alphaW3.JPG
alphaW3.JPG (22.59 KiB) Viewed 2885 times
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by HoWil »

thschrader wrote: Thu Nov 02, 2017 5:17 pm the loaded case is the "damBreak"-tutorial from the
openFoam user guide.
Hi Thomas, nice pics.
In case you still have all your 'transfered'/rebuilt openFoam-tutorial- models, you could post it here or in the wiki!?
BR,
Wilfried
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by thschrader »

HoWil wrote: Fri Nov 03, 2017 8:09 pm
thschrader wrote: Thu Nov 02, 2017 5:17 pm the loaded case is the "damBreak"-tutorial from the
openFoam user guide.
Hi Thomas, nice pics.
In case you still have all your 'transfered'/rebuilt openFoam-tutorial- models, you could post it here or in the wiki!?
BR,
Wilfried
Hi Wilfried,
here are two cases lower than 500KB.
damBreak uses the same parameters like in the openfoam user guide.
In TankFlooding the g-vector points in -z direction. CFD-OF uses the -y direction as default,
after writing the case, edit the g-dict and overwrite the vector.
In both cases you must edit (after case writing) the transportProperties-dict, the nu/sigma-values are
generated with zeros(?). Then run solver. See pics below. I hope it will work... :)
It is not necessary to use the parallel-run option.
I used the 0.17.12431, see error in 0.17.12539 from post above.
Regards Thomas
damBreak.FCStd
(283.41 KiB) Downloaded 114 times
TankFlooding.FCStd
(150.28 KiB) Downloaded 137 times
g.JPG
g.JPG (22.06 KiB) Viewed 2817 times
transportProperties.JPG
transportProperties.JPG (30.87 KiB) Viewed 2817 times
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by thschrader »

@HoWil:
be patient, even with a very coarse mesh the damBreak-case needs more
than 2000 sec runtime..(1 sec simulation, parallel run ;) )
runtime.JPG
runtime.JPG (29.34 KiB) Viewed 2815 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by oliveroxtoby »

thschrader wrote: Thu Nov 02, 2017 5:17 pm Just downloaded the latest 0.17.12539 dev-snapshot.
When loading an existing case, the InitialiseFields dialog
is inactive. With my "old" 0.17.12431 everything works fine.
Thanks for reporting. Should be fixed now. 12539 or later is now required.
thschrader wrote: (@Oliver: the loaded case is the "damBreak"-tutorial from the
openFoam user guide. With the cfd-of wb you only need 15 min to
generate the case... :) paraview-results below calculated with 0.17.12431)
Glad to hear!
thschrader wrote: Another wish: everytime when using a new dev-snapshot, I manually (must)
copy the gnuplot-folder/gnuplot...egg-info file from my previous version into
the bin/lib/site-packages folder of the new FC-version.
You should be able to use the "Download / install gnuplot.py" button on the CFD preferences page to do this.
thschrader wrote: Please add
the gnuplot files as a standard to FC, thanks.
Not my call to make. It may be better to move to matplotlib which is already included in FreeCAD. Please consider helping out - see some discussion near the end of the thread https://forum.freecadweb.org/viewtopic. ... 6&start=60
Please provide all the information requested in this post before reporting problems with CfdOF.
wafi
Posts: 82
Joined: Sat Oct 15, 2016 8:45 am

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by wafi »

Hi Oliver

seems to be new problems in the meshing module, I not able to mesh and I getting following failure message:

Running the Python command 'Cfd_MeshCartFromShape' failed:
Traceback (most recent call last):
File "/home/peter/.FreeCAD/Mod/CfdOF/_CommandCfdMeshCartFromShape.py", line 67, in Activated
FreeCADGui.doCommand("FemGui.getActiveAnalysis().addObject((App.ActiveDocument.ActiveObject)")

('unexpected EOF while parsing', ('<string>', 1, 71, 'FemGui.getActiveAnalysis().addObject((App.ActiveDocument.ActiveObject)\n'))

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12570 (Git)
Build type: None
Branch: master
Hash: b01c503c2cb37b2ed4fb848b0f495f599a7b179f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by oliveroxtoby »

wafi wrote: Sat Nov 11, 2017 2:55 pm Hi Oliver

seems to be new problems in the meshing module, I not able to mesh and I getting following failure message:

Running the Python command 'Cfd_MeshCartFromShape' failed:
Traceback (most recent call last):
File "/home/peter/.FreeCAD/Mod/CfdOF/_CommandCfdMeshCartFromShape.py", line 67, in Activated
FreeCADGui.doCommand("FemGui.getActiveAnalysis().addObject((App.ActiveDocument.ActiveObject)")

('unexpected EOF while parsing', ('<string>', 1, 71, 'FemGui.getActiveAnalysis().addObject((App.ActiveDocument.ActiveObject)\n'))
My apologies - that one wasn't picked up by our tests. Should be fixed.
Please provide all the information requested in this post before reporting problems with CfdOF.
shIxx
Posts: 83
Joined: Wed Mar 28, 2018 10:13 am
Location: Bavaria (Germany)

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by shIxx »

Hi guys,
Thank you for your great work.
I just want to say that the dynamic viscosity of air under FluidProperties is always zero since rev.14761
Is that a general issue or ist it because of my FC or PC settings?
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by thschrader »

shIxx wrote: Fri Sep 28, 2018 1:24 pm Is that a general issue or ist it because of my FC or PC settings?
Same problem here...
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14825 (Git)
Build type: Release
Branch: master
Hash: a0ff629747d5d73567075821852a8cdaadcf51c5
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
properties001.JPG
properties001.JPG (18.78 KiB) Viewed 2060 times
properties002.JPG
properties002.JPG (23.64 KiB) Viewed 2060 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Update on the development of the OpenFOAM CFD workbench (CFDOF)

Post by oliveroxtoby »

shIxx wrote: Fri Sep 28, 2018 1:24 pm Hi guys,
Thank you for your great work.
I just want to say that the dynamic viscosity of air under FluidProperties is always zero since rev.14761
Is that a general issue or ist it because of my FC or PC settings?
Thank you for reporting this. It should now be fixed.
Please provide all the information requested in this post before reporting problems with CfdOF.
Post Reply