Meshing again - scaled x0.001

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
crossblade
Posts: 13
Joined: Fri Oct 13, 2017 7:59 am

Meshing again - scaled x0.001

Post by crossblade »

Hi! Just trying to get back to business again (had some successful aerodinamic calculations of private buildings maybe year ago).
Now using latest AppImage in openSuse Thubleweed
OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/default)
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git) AppImage
Build type: Release
Branch: master
Hash: 37d9757399b4c2ec30318eb88d7cd7c508246345
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Russian/Russia (ru_RU)
So the problem is mesh scaled down by 1000. Dont believe its a bug, maybe some wrong software setup... Just want to understand where to dig in :?:
Attachments
airtest.FCStd
(218.41 KiB) Downloaded 65 times
Screenshot_20210912_203155.png
Screenshot_20210912_203155.png (160.17 KiB) Viewed 4709 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Meshing again - scaled x0.001

Post by oliveroxtoby »

crossblade wrote: Sun Sep 12, 2021 5:45 pm Hi! Just trying to get back to business again (had some successful aerodinamic calculations of private buildings maybe year ago).
Now using latest AppImage in openSuse Thubleweed
OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/default)
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git) AppImage
Build type: Release
Branch: master
Hash: 37d9757399b4c2ec30318eb88d7cd7c508246345
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Russian/Russia (ru_RU)
So the problem is mesh scaled down by 1000. Dont believe its a bug, maybe some wrong software setup... Just want to understand where to dig in :?:
FreeCAD reads the mesh in mm, so there is a command that is run after the meshing to scale up the mesh by a factor of 1000 for display. I'm guessing this is failing for some reason (last line of Allmesh script in the mesh directory). Having a look at the output on the report view should give an idea.
Please provide all the information requested in this post before reporting problems with CfdOF.
crossblade
Posts: 13
Joined: Fri Oct 13, 2017 7:59 am

Re: Meshing again - scaled x0.001

Post by crossblade »

oliveroxtoby wrote: Sun Sep 12, 2021 7:03 pm FreeCAD reads the mesh in mm, so there is a command that is run after the meshing to scale up the mesh by a factor of 1000 for display. I'm guessing this is failing for some reason (last line of Allmesh script in the mesh directory). Having a look at the output on the report view should give an idea.
Thanks for reply! You can find file in atachement.
As it scales with 'surfaceTransformPoints' I found previous row interesting - 'Expected 2 arguments but found 3'. Could it be the problem?
Attachments
report.txt
(18.59 KiB) Downloaded 67 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Meshing again - scaled x0.001

Post by oliveroxtoby »

crossblade wrote: Mon Sep 13, 2021 6:43 am
oliveroxtoby wrote: Sun Sep 12, 2021 7:03 pm FreeCAD reads the mesh in mm, so there is a command that is run after the meshing to scale up the mesh by a factor of 1000 for display. I'm guessing this is failing for some reason (last line of Allmesh script in the mesh directory). Having a look at the output on the report view should give an idea.
Thanks for reply! You can find file in atachement.
As it scales with 'surfaceTransformPoints' I found previous row interesting - 'Expected 2 arguments but found 3'. Could it be the problem?
It looks like the OpenFOAM v9 version of the command is being used for some reason. The problem doesn't happen on my system but I have pushed a change to hopefully make the version detection more robust. Let me know if it works for you...
crossblade
Posts: 13
Joined: Fri Oct 13, 2017 7:59 am

Re: Meshing again - scaled x0.001

Post by crossblade »

oliveroxtoby wrote: Mon Sep 13, 2021 12:31 pm It looks like the OpenFOAM v9 version of the command is being used for some reason. The problem doesn't happen on my system but I have pushed a change to hopefully make the version detection more robust. Let me know if it works for you...
Meshing with updated workbench works like a charm. Thank you!
Post Reply