Porous Zone Task Menu does not open

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
marolas
Posts: 8
Joined: Wed May 11, 2022 9:07 am

Porous Zone Task Menu does not open

Post by marolas »

Hello all,

When I add a Porous Zone on my CFD model, the task menu that usually opens does not. On the Traceback it appears the following lines:

14:44:25 Traceback (most recent call last):
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdZone.py", line 251, in setEdit
taskd = _TaskPanelCfdZone._TaskPanelCfdZone(self.Object)
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdZone.py", line 46, in __init__
self.NeedsCaseRewriteOrig = self.analysis_obj.NeedsCaseRewrite
<class 'AttributeError'>: '_TaskPanelCfdZone' object has no attribute 'analysis_obj'


I assume there might be something wrong with the files FreeCAD is telling, so I attach both _TaskPanelCfdZone.py and CfdZone.py files too.

I know that even without the task menu you can input the necessary data via the propierties and values that appear below, but I do prefer the menu as it is more intuitive.

Thanks so much for your help.

Marc.
Attachments
CfdZone.py
(13.17 KiB) Downloaded 7 times
_TaskPanelCfdZone.py
(16.34 KiB) Downloaded 6 times
ondrejch
Posts: 5
Joined: Thu Jun 23, 2022 3:17 pm

Re: Porous Zone Task Menu does not open

Post by ondrejch »

Read "Important..." and "Please.." above, then edit your post accordingly. Also post your model.
User avatar
oliveroxtoby
Posts: 645
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Porous Zone Task Menu does not open

Post by oliveroxtoby »

marolas wrote: Tue Jun 28, 2022 12:51 pm Hello all,

When I add a Porous Zone on my CFD model, the task menu that usually opens does not. On the Traceback it appears the following lines:

14:44:25 Traceback (most recent call last):
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdZone.py", line 251, in setEdit
taskd = _TaskPanelCfdZone._TaskPanelCfdZone(self.Object)
File "C:\Users\marolas\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdZone.py", line 46, in __init__
self.NeedsCaseRewriteOrig = self.analysis_obj.NeedsCaseRewrite
<class 'AttributeError'>: '_TaskPanelCfdZone' object has no attribute 'analysis_obj'


I assume there might be something wrong with the files FreeCAD is telling, so I attach both _TaskPanelCfdZone.py and CfdZone.py files too.
Please could you check again after updating the workbench? I suspect this is a bug that was fixed a while ago.
Post Reply