Wow, great answer, this is what I need, but I do not if the app does not work, I opened it but it state only "press Enter" and nothing happend, the other links in the forum download zip file that contain .cs file, how one can use this type of files? What am I missing?UR_ wrote: ↑Sun Aug 20, 2017 4:20 pmHello JV_3D,
ccx writes some output, but there are only stress components like Sxx, Syy, Szz, Sxy, Sxz, and Syz available.
If you run 3D-example from FreeCAD's startpage, ccx will generate a .dat and a .frd result file.
The location of these files can be appointed here:
If you need derived stresses (e. g. vMises) you can translate the .frd file to .vtk using this tiny utility
https://forum.freecadweb.org/viewtopic. ... 10#p184850
Resulting .vtk-file is a human readable ascii file and therefore can be imported into excel or libreoffice by their standard text import filter.
Above mentioned example will then look like this:
I added a MIN/MAX filter so you see same values as in property window.
Code: Select all
vmises = App.ActiveDocument.CalculiX_static_results.StressValues nodes = App.ActiveDocument.CalculiX_static_results.NodeNumbers # out = "/tmp/vMises.csv" # linux out = "C:/vMises.csv" # windows f = open(out, "w") for n, i in enumerate(nodes): res = (str(nodes[n]) + ", " + str(vmises[i-1])) print(res) f.write(res + "\n") f.close()