FEM: z88, fix some comment in result importer

This commit is contained in:
Bernd Hahnebach
2017-08-28 18:06:03 +02:00
committed by wmayer
parent 6257cc3e8e
commit 01519924d3

View File

@@ -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 = {}