Hello,
I am using FreeCAD_0.20.27422 and installed OpenFOAM V2012, ParaView, cfMesh, HiSA for Windows.
I am able to select the physics model, FluidProperties, and boundary conditions, but when I try to run the mesh the following errors appear
23:41:47 Traceback (most recent call last):
23:41:47 File "C:\Users\paulc\AppData\Roaming\FreeCAD\Mod\CfdOF\.\_TaskPanelCfdMesh.py", line 228, in writeMesh
23:41:47 FreeCADGui.doCommand("cart_mesh.writeMesh()")
23:41:47 File "<string>", line 1, in <module>
23:41:47 File "C:\Users\paulc\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdMeshTools.py", line 81, in writeMesh
23:41:47 self.processRefinements()
23:41:47 File "C:\Users\paulc\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdMeshTools.py", line 252, in processRefinements
23:41:47 bc_group[nb].Label, bref[0], bref[1], bc_group[nb2].Label, bref2[0], bref2[1]))
23:41:47 TypeError: 'int' object is not subscriptable
I am following this tutorial (https://www.youtube.com/watch?v=7i_K7fo8BSk). What could be the error?
Please find attached the file.
Error to write mesh
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Error to write mesh
- Attachments
-
- CFD model.FCStd
- (129.72 KiB) Downloaded 58 times
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Error to write mesh
This was a bug - should be fixed now, so please update your workbench. Please note that it will now warn you that you have assigned the inlet and outlet to the same patch.poulmack wrote: ↑Tue Mar 29, 2022 5:49 am Hello,
I am using FreeCAD_0.20.27422 and installed OpenFOAM V2012, ParaView, cfMesh, HiSA for Windows.
I am able to select the physics model, FluidProperties, and boundary conditions, but when I try to run the mesh the following errors appear
23:41:47 Traceback (most recent call last):
23:41:47 File "C:\Users\paulc\AppData\Roaming\FreeCAD\Mod\CfdOF\.\_TaskPanelCfdMesh.py", line 228, in writeMesh
23:41:47 FreeCADGui.doCommand("cart_mesh.writeMesh()")
23:41:47 File "<string>", line 1, in <module>
23:41:47 File "C:\Users\paulc\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdMeshTools.py", line 81, in writeMesh
23:41:47 self.processRefinements()
23:41:47 File "C:\Users\paulc\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdMeshTools.py", line 252, in processRefinements
23:41:47 bc_group[nb].Label, bref[0], bref[1], bc_group[nb2].Label, bref2[0], bref2[1]))
23:41:47 TypeError: 'int' object is not subscriptable
I am following this tutorial (https://www.youtube.com/watch?v=7i_K7fo8BSk). What could be the error?
Please find attached the file.
Re: Error to write mesh
I am a newby to FreeCAD also having meshing problems. Any ideas?
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Australia (en_AU)
13:05:31 Exporting mesh refinement data ...
13:05:31 Matching boundary patches
13:05:31 Traceback (most recent call last):
13:05:31 File "C:\Users\David\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdMesh.py", line 207, in writeMesh
13:05:31 FreeCADGui.doCommand("cart_mesh.writeMesh()")
13:05:31 File "<string>", line 1, in <module>
13:05:31 File "C:\Users\David\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 81, in writeMesh
13:05:31 self.processRefinements()
13:05:31 File "C:\Users\David\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 259, in processRefinements
13:05:31 bc_group[nb].Label, bref[0], bref[1], bc_group[nb2].Label, bref2[0], bref2[1]))
13:05:31 TypeError: 'int' object is not subscriptable
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Australia (en_AU)
13:05:31 Exporting mesh refinement data ...
13:05:31 Matching boundary patches
13:05:31 Traceback (most recent call last):
13:05:31 File "C:\Users\David\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdMesh.py", line 207, in writeMesh
13:05:31 FreeCADGui.doCommand("cart_mesh.writeMesh()")
13:05:31 File "<string>", line 1, in <module>
13:05:31 File "C:\Users\David\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 81, in writeMesh
13:05:31 self.processRefinements()
13:05:31 File "C:\Users\David\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 259, in processRefinements
13:05:31 bc_group[nb].Label, bref[0], bref[1], bc_group[nb2].Label, bref2[0], bref2[1]))
13:05:31 TypeError: 'int' object is not subscriptable
- Attachments
-
- Planetoid.FCStd
- (62.27 KiB) Downloaded 45 times
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Error to write mesh
Please make sure you update your workbench to the latest version via the Addon manager. When I mesh your case, I don't get that error, just the warning
Code: Select all
Boundary 'MeteorArive' reference Pad:Face4 also assigned as boundary 'wall' reference Pad:Face4 - ignoring duplicate
Re: Error to write mesh
Hallo,
i have PC with
Windows 10, last updates, 64 bit
FreeCAD 0.19.4
cfdOF 1.17.7
MS MPI v10.1.2 is installed
Messages after start "Write mesh case" and "Run mesher":
20:40:32 Part to mesh:
Name: Body, Label: Body, ShapeType: Solid
20:40:32 CharacteristicLengthMax: 0.66
20:40:32 Exporting mesh refinement data ...
20:40:32 Matching boundary patches
20:40:32 Matching mesh refinement regions
20:40:32 Exporting the part surfaces ...
20:40:32 Triangulating part Body, patch patch_1_0
20:40:32 Triangulating part Body, patch patch_2_0
20:40:32 Triangulating part Body, patch patch_3_0
20:40:32 Populating mesh dictionaries in folder C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:32 Successfully wrote meshCase to folder C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:32 Wrote mesh case to C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:38 Executing: ./Allmesh in C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:38 Sourcing OpenFOAM environment...
20:40:38 openfoam: windows support (mingw64) is runtime only
20:40:43 C:/Users/TOM/AppData/Roaming/ESI-OpenCFD/OpenFOAM/v2206/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2206/platforms/win64MingwDPInt32Opt/bin/blockMesh.exe: error while loading shared libraries: libmeshTools.dll: cannot open shared object file: No such file or directory
20:40:53
With freeCAD 0.20 and 0.20.1 - the same error messages.
How to fix loading shared libraries?
i have PC with
Windows 10, last updates, 64 bit
FreeCAD 0.19.4
cfdOF 1.17.7
MS MPI v10.1.2 is installed
Messages after start "Write mesh case" and "Run mesher":
20:40:32 Part to mesh:
Name: Body, Label: Body, ShapeType: Solid
20:40:32 CharacteristicLengthMax: 0.66
20:40:32 Exporting mesh refinement data ...
20:40:32 Matching boundary patches
20:40:32 Matching mesh refinement regions
20:40:32 Exporting the part surfaces ...
20:40:32 Triangulating part Body, patch patch_1_0
20:40:32 Triangulating part Body, patch patch_2_0
20:40:32 Triangulating part Body, patch patch_3_0
20:40:32 Populating mesh dictionaries in folder C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:32 Successfully wrote meshCase to folder C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:32 Wrote mesh case to C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:38 Executing: ./Allmesh in C:\Users\TOM\AppData\Local\Temp\meshCase
20:40:38 Sourcing OpenFOAM environment...
20:40:38 openfoam: windows support (mingw64) is runtime only
20:40:43 C:/Users/TOM/AppData/Roaming/ESI-OpenCFD/OpenFOAM/v2206/msys64/home/ofuser/OpenFOAM/OpenFOAM-v2206/platforms/win64MingwDPInt32Opt/bin/blockMesh.exe: error while loading shared libraries: libmeshTools.dll: cannot open shared object file: No such file or directory
20:40:53
With freeCAD 0.20 and 0.20.1 - the same error messages.
How to fix loading shared libraries?