From 01519924d3f5c7ea11f985fbabe05beaa0a62526 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 28 Aug 2017 18:06:03 +0200 Subject: [PATCH] FEM: z88, fix some comment in result importer --- src/Mod/Fem/importZ88O2Results.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Mod/Fem/importZ88O2Results.py b/src/Mod/Fem/importZ88O2Results.py index 913907e12b..1b6d0e35cf 100644 --- a/src/Mod/Fem/importZ88O2Results.py +++ b/src/Mod/Fem/importZ88O2Results.py @@ -63,6 +63,12 @@ def insert(filename, docname): ########## module specific methods ########## def import_z88_disp(filename, analysis=None, result_name_prefix=None): '''insert a FreeCAD FEM mechanical result object in the ActiveDocument + pure usage: + import importZ88O2Results + disp_file = '/pathtofile/z88o2.txt' + importZ88O2Results.import_z88_disp(disp_file) + + the z888i1.txt FEMMesh file needs to be in the same directory as z88o2.txt (ahh, make a new document first ;-)) ''' import importZ88Mesh import importToolsFem @@ -110,15 +116,6 @@ def read_z88_disp(z88_disp_input): read a z88 disp file and extract the nodes and elements z88 Displacment output file is z88o2.txt works with Z88OS14 - - pure usage: - import FemToolsZ88 - fea = FemToolsZ88.FemToolsZ88() - import importZ88O2Results - disp_file = '/pathtofile/z88o2.txt' - importZ88O2Results.import_z88_disp(disp_file , fea.analysis) - - The FreeCAD file needs to have an Analysis and an appropriate FEM Mesh ''' nodes = {} mode_disp = {}