Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file missing during topology optimization #56

Open
kds69 opened this issue May 1, 2024 · 3 comments
Open

file missing during topology optimization #56

kds69 opened this issue May 1, 2024 · 3 comments

Comments

@kds69
Copy link

kds69 commented May 1, 2024

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

@kds69 kds69 changed the title Path to topology_iterations directory is malformed for Windows file missing during topology optimization May 2, 2024
@s-quirin
Copy link

s-quirin commented May 6, 2024

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
Copy link
Owner

Serince commented May 6, 2024 via email

@kds69
Copy link
Author

kds69 commented May 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants