Solver-Error

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

Post Reply
Praktikant8
Posts: 6
Joined: Mon Jul 23, 2018 10:26 am
Contact:

Solver-Error

Post by Praktikant8 »

Hi there,

i shortly started working with FreeCAD due to its CDF-Module, i need it for my work. Since i don't know nothing about FreeCAD and CFD i started working through some tutorials, learning by doing....I tried to reproduce a tutorial i found online but in the end i had to deal with an error of the solver. The output of the solver is:
0.0: Checking dependencies...
0.0: OpenFOAM case writer is called
0.0: Error writing case:
0.0: 'FeaturePython' object has no attribute 'ShapeFaceNames'
0.0: Write case setup file failed
I don't know what this means and how to solve it.
It would be great if you were able to help me.
I attached a Screenshot of the output and linked the website where i found the tutorial.
https://github.com/opensimsa/opensim/bl ... lbow.pdf
CFD.png
CFD.png (191.2 KiB) Viewed 2212 times

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.18.14111 (Git)
Build type: Release
Branch: master
Hash: 548f63fd0eb554bb0fe5b23c1970de5fe05e3001
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)
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Solver-Error

Post by oliveroxtoby »

Praktikant8 wrote: Mon Jul 23, 2018 2:14 pm Hi there,

i shortly started working with FreeCAD due to its CDF-Module, i need it for my work. Since i don't know nothing about FreeCAD and CFD i started working through some tutorials, learning by doing....I tried to reproduce a tutorial i found online but in the end i had to deal with an error of the solver. The output of the solver is:
0.0: Checking dependencies...
0.0: OpenFOAM case writer is called
0.0: Error writing case:
0.0: 'FeaturePython' object has no attribute 'ShapeFaceNames'
0.0: Write case setup file failed
I don't know what this means and how to solve it.
It would be great if you were able to help me.
I attached a Screenshot of the output and linked the website where i found the tutorial.
https://github.com/opensimsa/opensim/bl ... lbow.pdf

CFD.png


OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.18.14111 (Git)
Build type: Release
Branch: master
Hash: 548f63fd0eb554bb0fe5b23c1970de5fe05e3001
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)
Could you please save and share the FreeCAD file that is giving you this issue?
Please provide all the information requested in this post before reporting problems with CfdOF.
Praktikant8
Posts: 6
Joined: Mon Jul 23, 2018 10:26 am
Contact:

Re: Solver-Error

Post by Praktikant8 »

Sure, here you go
Attachments
CFD.FCStd
(38.65 KiB) Downloaded 81 times
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Solver-Error

Post by oliveroxtoby »

Praktikant8 wrote: Mon Jul 23, 2018 3:04 pm Sure, here you go
Thanks. We have just refactored the meshing code extensively. Please update the workbench using Addon manager, and then try again. You will need to delete and re-create the mesh object due to the changes. Let me know if this sorts out the problem - it works for me, but I am using v0.17 of FreeCAD - maybe there is an issue that only comes up in 0.18.
Please provide all the information requested in this post before reporting problems with CfdOF.
thschrader
Veteran
Posts: 3157
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Solver-Error

Post by thschrader »

Posted in help-forum too.
Praktikant, your model is to small, factor 1000.
model_from_tutorial.JPG
model_from_tutorial.JPG (45.58 KiB) Viewed 2198 times
your_model.JPG
your_model.JPG (42.6 KiB) Viewed 2198 times
thschrader
Veteran
Posts: 3157
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Solver-Error

Post by thschrader »

Hi Praktikant,
I ran your "scaled-down" tutorial.
Use this parameters:
gmsh-meshing: max element size 1 mm
Inlet 1 vx=500 mm/s (you gave in 1 mm)
Inlet 2 vy=300 mm/s
Outlet ok
wall (the yellow one) = noSlip
wall001=slip

In the data-tab of openfoam you can set the solver-options.

Learn freecad:
https://www.youtube.com/user/BPLRFE
Learn openfoam:
https://www.youtube.com/watch?v=KznljrgWSvo
Have fun! :)
scaled_down_model.JPG
scaled_down_model.JPG (49.96 KiB) Viewed 2184 times
result_velocity.JPG
result_velocity.JPG (22.72 KiB) Viewed 2184 times
solver_settings.JPG
solver_settings.JPG (57.34 KiB) Viewed 2184 times
Praktikant8
Posts: 6
Joined: Mon Jul 23, 2018 10:26 am
Contact:

Re: Solver-Error

Post by Praktikant8 »

Hi guys,

thanks to all of you, especially to thschrader. I corrected the parameters you told me, ran the solver and now it is working. I'm so glad that i can now move on and try to solve other tasks (maybe you will hear from me in a while having another problem). Also thanks for the useful YT-links. :D
Post Reply