Skip to content

Commit

Permalink
FEM: Prepare ccxInpWriter for automated tests
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and yorikvanhavre committed Jul 29, 2015
1 parent 461e506 commit b9676cf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Mod/Fem/ccxInpWriter.py
@@ -1,7 +1,5 @@
import FemGui
import FreeCAD
import os
import time
import sys


Expand Down Expand Up @@ -46,8 +44,7 @@ def write_material_element_sets(self, f):
f.write('** written by {} function\n'.format(sys._getframe().f_code.co_name))
for m in self.material_objects:
mat_obj = m['Object']
mat_obj_name = mat_obj.Name
mat_name = mat_obj.Material['Name'][:80]
mat_obj_name = mat_obj.Name[:80]

f.write('*ELSET,ELSET=' + mat_obj_name + '\n')
if len(self.material_objects) == 1:
Expand Down Expand Up @@ -342,17 +339,10 @@ def write_step_end(self, f):
f.write('*END STEP \n')

def write_footer(self, f):
FcVersionInfo = FreeCAD.Version()
f.write('\n***********************************************************\n')
f.write('** CalculiX Input file\n')
f.write('** written by {} function\n'.format(sys._getframe().f_code.co_name))
f.write('**\n')
f.write('** written by --> FreeCAD ' + FcVersionInfo[0] + '.' + FcVersionInfo[1] + '.' + FcVersionInfo[2] + '\n')
f.write('** written on --> ' + time.ctime() + '\n')
f.write('** file name --> ' + os.path.basename(FreeCAD.ActiveDocument.FileName) + '\n')
f.write('** analysis name --> ' + FemGui.getActiveAnalysis().Name + '\n')
f.write('**\n')
f.write('**\n')
f.write('** Units\n')
f.write('**\n')
f.write('** Geometry (mesh data) --> mm\n')
Expand Down

0 comments on commit b9676cf

Please sign in to comment.