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

wafi
Posts: 73
Joined: Sat Oct 15, 2016 8:45 am

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

Postby wafi » Thu Oct 12, 2017 8:37 am

Hi Oliver
I just tried again your updated cfd wb. To do so, I first de-installed the old one and installed the new one with the installer macro.
dependency checker says, everything fine. To create a Gmsh mesh was possible, but to create a region failed. Iǜe got following error message:

Traceback (most recent call last):
File "/home/peter/.FreeCAD/Mod/CfdOF/_TaskPanelCfdMeshRegion.py", line 309, in add_references
import FemSelectionObserver
ImportError: No module named FemSelectionObserver

I`ve tested same in Fem wb. No problem with Gmsh meshing, no problem to create a region by selecting a solid.

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12361 (Git)
Build type: None
Branch: master
Hash: ad457ba96b14a4c0f2a4d1da019c5c9a83bbab40
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: 319
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

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

Postby oliveroxtoby » Thu Oct 12, 2017 10:19 am

wafi wrote:
Thu Oct 12, 2017 8:37 am
Hi Oliver
I just tried again your updated cfd wb. To do so, I first de-installed the old one and installed the new one with the installer macro.
dependency checker says, everything fine. To create a Gmsh mesh was possible, but to create a region failed. Iǜe got following error message:

Traceback (most recent call last):
File "/home/peter/.FreeCAD/Mod/CfdOF/_TaskPanelCfdMeshRegion.py", line 309, in add_references
import FemSelectionObserver
ImportError: No module named FemSelectionObserver
Thanks for reporting. The file we import from FEM workbench was recently moved. Should be working now.
Please provide all the information requested in this post before reporting problems with CfdOF.
thschrader
Posts: 1417
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

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

Postby thschrader » Fri Oct 13, 2017 12:47 pm

Hello Oliver,
is there a limit for the maximum numbers of faces to assign
no-slip walls in the boundary dialog? Below you see the yellow head
consisting of 11 faces, face number 15 is the "eye". In createPatchDict
face 15 was assigned as default with no slip, see the the U-field plot in
paraview (the eye should have the same blue colour U=0 as the rest of
the head, which was defined as no-slip-wall).
Thomas
model.JPG
model.JPG (47.37 KiB) Viewed 1133 times
createPatchDict.JPG
createPatchDict.JPG (62 KiB) Viewed 1133 times
U_field.JPG
U_field.JPG (60.15 KiB) Viewed 1133 times
User avatar
oliveroxtoby
Posts: 319
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

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

Postby oliveroxtoby » Fri Oct 13, 2017 1:07 pm

thschrader wrote:
Fri Oct 13, 2017 12:47 pm
Hello Oliver,
is there a limit for the maximum numbers of faces to assign
no-slip walls in the boundary dialog? Below you see the yellow head
consisting of 11 faces, face number 15 is the "eye". In createPatchDict
face 15 was assigned as default with no slip, see the the U-field plot in
paraview (the eye should have the same blue colour U=0 as the rest of
the head, which was defined as no-slip-wall).
Thomas
model.JPG
createPatchDict.JPG
U_field.JPG
That shouldn't be happening. Any chance you can send your file or (ideally) generate a simplified example which exhibits the problem, for debugging?
Please provide all the information requested in this post before reporting problems with CfdOF.
thschrader
Posts: 1417
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

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

Postby thschrader » Fri Oct 13, 2017 1:17 pm

oliveroxtoby wrote:
Fri Oct 13, 2017 1:07 pm
Any chance you can send your file...
File ready for download on my dropbox, 1.9MB.
https://www.dropbox.com/s/pr463reovjbo5 ... FCStd?dl=0
system:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12373 (Git)
Build type: Release
Branch: master
Hash: 494a9a3f3b573edb887a000dbab831a49d7729db
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)
thschrader
Posts: 1417
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

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

Postby thschrader » Sat Oct 14, 2017 2:32 pm

oliveroxtoby wrote:
Fri Oct 13, 2017 1:07 pm
That shouldn't be happening.
Here is a new simulation with the same number of faces (6 for the cube, 11 for the "head")
like the head above. Everything works fine, no default faces in createPatchdict and paraview.
There must be something wrong with the monkeyhead-solid. The head was redesigned with
splines/surface-wb. The original stl has more than 55000 facets. There was (now still is...)
a diskussion about that in the german forum.
https://forum.freecadweb.org/viewtopic.php?f=13&t=24812
Please dont waste your time, sorry for the noise. I will design a better solid.
regards Thomas
cfdTest1.FCStd
(286.78 KiB) Downloaded 26 times
model.JPG
model.JPG (41.95 KiB) Viewed 1065 times
createPatchDict.JPG
createPatchDict.JPG (54.84 KiB) Viewed 1065 times
paraview.JPG
paraview.JPG (63.43 KiB) Viewed 1065 times
User avatar
oliveroxtoby
Posts: 319
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

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

Postby oliveroxtoby » Mon Oct 16, 2017 11:48 am

thschrader wrote:
Sat Oct 14, 2017 2:32 pm
Here is a new simulation with the same number of faces (6 for the cube, 11 for the "head")
like the head above. Everything works fine, no default faces in createPatchdict and paraview.
There must be something wrong with the monkeyhead-solid. The head was redesigned with
splines/surface-wb. The original stl has more than 55000 facets. There was (now still is...)
a diskussion about that in the german forum.
https://forum.freecadweb.org/viewtopic.php?f=13&t=24812
Please dont waste your time, sorry for the noise. I will design a better solid.
regards Thomas
Glad you got it working, but the original case should have worked as well. Using your test case we have identified and fixed the issue, so hopefully you won't run into this again. Thanks for the assistance!

Oliver
Please provide all the information requested in this post before reporting problems with CfdOF.
thschrader
Posts: 1417
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

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

Postby thschrader » Mon Oct 16, 2017 5:34 pm

Oliver, thank you, everything works fine, no more defaultFaces.
Now I am ready for the competition
https://www.youtube.com/watch?v=lBG3qphtofE
(but I think with my little steam-driven laptop I am
not starting from the pole-position... :lol:
thschrader
Posts: 1417
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

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

Postby thschrader » Tue Oct 31, 2017 12:49 pm

@Oliver, short question:
Accepts the cfd-of wb the bluecfd-singlecore version ?
https://sourceforge.net/projects/bluecfd-sc/
https://sourceforge.net/p/bluecfd-sc/wiki/FrontPage/
I know a FC-user running under Win 8.1-32 bit.
regards Thomas
User avatar
oliveroxtoby
Posts: 319
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

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

Postby oliveroxtoby » Tue Oct 31, 2017 1:01 pm

thschrader wrote:
Tue Oct 31, 2017 12:49 pm
@Oliver, short question:
Accepts the cfd-of wb the bluecfd-singlecore version ?
https://sourceforge.net/projects/bluecfd-sc/
https://sourceforge.net/p/bluecfd-sc/wiki/FrontPage/
I know a FC-user running under Win 8.1-32 bit.
regards Thomas
Hi Thomas,
No idea I'm afraid...this is the first I've heard of it. I see it's a deprecated project; it all depends on whether it behaves the same as blueCFD-Core. Only way to find out is to try...
Please provide all the information requested in this post before reporting problems with CfdOF.