Skip to content

Commit

Permalink
FEM: z88 result reader, fill stats
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jul 12, 2020
1 parent 237cba0 commit adcb721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Fem/feminout/importZ88O2Results.py
Expand Up @@ -79,9 +79,10 @@ def import_z88_disp(
the z888i1.txt FEMMesh file needs to be in the same directory as z88o2.txt
# ahh, make a new document first ;-)
"""
import ObjectsFem
from . import importZ88Mesh
from . import importToolsFem
import ObjectsFem
from femresult import resulttools
if result_name_prefix is None:
result_name_prefix = ""
disp_read = read_z88_disp(filename)
Expand Down Expand Up @@ -110,6 +111,8 @@ def import_z88_disp(
res_obj = ObjectsFem.makeResultMechanical(FreeCAD.ActiveDocument, results_name)
res_obj.Mesh = result_mesh_object
res_obj = importToolsFem.fill_femresult_mechanical(res_obj, result_set)
res_obj = resulttools.fill_femresult_stats(res_obj) # fill Stats

if analysis:
analysis_object.addObject(res_obj)

Expand Down

0 comments on commit adcb721

Please sign in to comment.