Serince / FEMbyGEN

A FreeCAD module that uses Generative Design to design optimally for Additive Manufacturing
GNU Lesser General Public License v2.1
24 stars 10 forks source link

file missing during topology optimization #56

Open kds69 opened 5 months ago

kds69 commented 5 months ago

Windows 11 Pro FreeCAD 0.21.2 Scipy 1.4.? (anaconda)

(works on Ubuntu 22.04, FreeCAD 0.21.2)

18:52:17  Traceback (most recent call last):
18:52:17    File "C:\Users\...\AppData\Roaming\FreeCAD\Mod\FEMbyGEN\.\fembygen\topology\beso_lib.py", line 654, in import_FI_int_pt
18:52:17      f = open(file_nameW + ".dat", "r")
18:52:17  FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/../TopologyCase_1\\topology_iterations\\file000.dat'
18:52:17  
During handling of the above exception, another exception occurred:

Note that run optimization creates the other workfiles correctly image

s-quirin commented 5 months ago

I had this error if the path contained whitespace, because the external solver Calculix ccx 2.21 created the '.dat' file in wrong place. @Serince I found no other solution than to catch the issue and inform the user that 'File path containing whitespace is not supported for Topology'

Serince commented 5 months ago

Thank you, Let me check the issue!

Android için Outlookhttps://aka.ms/AAb9ysg edinin


From: Steven Quirin @.> Sent: Monday, May 6, 2024 3:21:27 PM To: Serince/FEMbyGEN @.> Cc: Serdar Turgut İnce @.>; Mention @.> Subject: Re: [Serince/FEMbyGEN] file missing during topology optimization (Issue #56)

I had this error if the path contained whitespace, because the external solver Calculix ccx 2.21 created the '.dat' file in wrong place. @Serincehttps://github.com/Serince I found no other solution than to catch the issue and inform the user that 'File path containing whitespace is not supported for Topology'

— Reply to this email directly, view it on GitHubhttps://github.com/Serince/FEMbyGEN/issues/56#issuecomment-2095891380, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACTRZU3C632EDNV6X2NQIIDZA5YUPAVCNFSM6AAAAABHCICFDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVHA4TCMZYGA. You are receiving this because you were mentioned.Message ID: @.***>

kds69 commented 5 months ago

I just did a test by creating a full path without any space: this workaround did the trick! But for sure it will stop many windows users to utilize this function.

Btw, thanks a lot for this amazing mod/addon!! This is just remarkable! A couple of questions: 1-I did a test for a personal project. I do have fix constraints which are on flat surfaces, not holes. Is it meant to work? Matter vanished away even on fixed surfaces (even at first iteration). 2-Is scipy really absolutely needed (I have installed it with anaconda)? 3-for the generative geometry, not sure how this works to add or remove object. I couldn't find any youtube demo nor instructions