when trying to run optimization error accures
14:41:59 Traceback (most recent call last):
14:41:59 File "A:/beso-master\beso_lib.py", line 633, in import_FI_int_pt
14:41:59 f = open(file_nameW + ".dat", "r")
14:41:59 FileNotFoundError: [Errno 2] No such file or directory: 'A:/beso-master\file000.dat'
14:41:59
During handling of the above exception, another exception occurred:
14:41:59 Traceback (most recent call last):
14:41:59 File "A:/beso-master/beso_fc_gui.py", line 937, in on_click24
14:41:59 self.on_click23() # run optimization
14:41:59 File "A:/beso-master/beso_fc_gui.py", line 933, in on_click23
14:41:59 exec(open(os.path.join(beso_gui.beso_dir, "beso_main.py")).read())
14:41:59 File "
FreeCad Version: 0.20.1
It seems that CalucliX did touch the file000.inp, so there is no output file 000.dat. Can you check which files are in your working directory? Did you run the analysis of the initial file when you prepared the input for the optimization? Can you try to run the file000.inp in CalculiX? (e.g. using ccx.exe from FreeCAD installation, something like: "C:\Program Files\FreeCAD 0.20\bin\ccx.exe" C:\tmp\file000
those are all the files in the working directory. I ran caluclix on the inp file after i wrote it to the directory, i did it in the freecad interface if that matters. im not shure how i could run calculix on file000.inp, cause when i try to open the ccx.exe nothing happens.
if you open windows command line you can ran ccx.exe with path to the inp file as a parameter, e.g. "C:\Program Files\FreeCAD 0.20\bin\ccx.exe" C:\tmp\file000 Another way is to run it in FreeCAD. When you run analysis as usual, there is a button "Edit .inp file". It opens the inp file, where you can paste the content of file000.inp, save and run it to see if any error or warning occur.
i ran it with the freecad method and everything worked without error or any warnings.
i ran it with the freecad method and everything worked without error or any warnings.
If it ran without errors (FreeCAD prints in the side panel CalculiX done without error!), there should be results imported to FreeCAD.
Did you follow some example? I mean, beso does not work on your computer at all?
nah, i put the the file000 content into free cad inp file and run calilux, that worked, but with beso i still get the same errors
This is the code which is inside beso to run CalculiX. You can try to run it in the FreeCAD python console.
path_calculix = 'C:/Program Files/FreeCAD 0.20/bin/ccx.exe'
path = 'C:/workfolder'
import os
import subprocess
i = 0
file_nameW = os.path.join(path, "file" + str(i).zfill(3))
subprocess.call([os.path.normpath(path_calculix), file_nameW], cwd=path, shell=True)
I took the first two lines from my beso_conf.py file. path should be the path to the folder with the calculix input file000.inp
If you replace the last line by this
subprocess.run([os.path.normpath(path_calculix), file_nameW], cwd=path, shell=True, capture_output=True)
it should print CalculiX report.
Does it make something in the working folder?
thats the error i get.
running it with the last line replace results in this

Edit because I was perhaps unclear: I experience the same if I use the files found in example 2 but it works if I use the files found in the main folder.
Original message: I'm eperiencing this issue too when trying to run beso on 3D part using the files in example 2 or 3 regardless of whether it is the examples downloaded from here, where I've only changed the calculix folder path or if it is an inp file that I've exported using Mecway. 2D analysis works both on example 1 and when I export an inp file from Meway when I copy the main folder files into those folders and run. If it matters: I'm running CalculiX version 2.19 i8.
I thus believe that I've found a solution. I noticed a difference in the file size between the files that are in the example 1 folder and in the other folders. By copying the files from the main folder, I can now run beso on 3D parts as well.