AttributeError: 'tuple' object has no attribute 'Name'

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
poulmack
Posts: 12
Joined: Tue Nov 07, 2017 7:17 pm

AttributeError: 'tuple' object has no attribute 'Name'

Post by poulmack »

Hello,

I've assigned bcs on the attached model. The wall bc has the thick selected to use as default boundary condition for unselected faces.

I am getting the following error which seems to be related to Python when writing the case

Code: Select all

12:34:28  Traceback (most recent call last):
12:34:28    File "C:\Users\Pcaicedo\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\Solve\TaskPanelCfdSolverControl.py", line 127, in write_input_file_handler
12:34:28      FreeCADGui.doCommand("writer.writeCase()")
12:34:28    File "<string>", line 1, in <module>
12:34:28    File "C:\Users\Pcaicedo\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\Solve\CfdCaseWriterFoam.py", line 119, in writeCase
12:34:28      self.processBoundaryConditions()
12:34:28    File "C:\Users\Pcaicedo\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\Solve\CfdCaseWriterFoam.py", line 281, in processBoundaryConditions
12:34:28      face = bc['ShapeRefs'][0].Name
12:34:28  AttributeError: 'tuple' object has no attribute 'Name'

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git)
Build type: Release
Branch: (HEAD detached from 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.5
  * CfdOF 1.21.3
  * ExtremeProDark 2.6.4
  * Render 2022.4.0
Any help to solve this error will be appreciated.

Thanks,
Paul
Attachments
3D Model.FCStd
(173.87 KiB) Downloaded 39 times
User avatar
oliveroxtoby
Posts: 812
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: AttributeError: 'tuple' object has no attribute 'Name'

Post by oliveroxtoby »

poulmack wrote: Wed Feb 01, 2023 7:42 pm Hello,

I am getting the following error which seems to be related to Python when writing the case
Should be resolved (should give you a more useful error message now).
Post Reply