FEM: visual output for beam and shellelements added

This commit is contained in:
Bernd Hahnebach 2015-10-03 20:54:47 +02:00 committed by wmayer
parent b4d99aa570
commit b2262058c8
2 changed files with 5 additions and 2 deletions

View File

@ -665,7 +665,7 @@ class _ResultControlTaskPanel:
else:
self.suitable_results = False
if not self.MeshObject.FemMesh.VolumeCount:
FreeCAD.Console.PrintError('Graphical output for beam or shell FEM Meshes not yet supported!\n')
FreeCAD.Console.PrintError('Graphical bending stress output for beam or shell FEM Meshes not yet supported!\n')
else:
FreeCAD.Console.PrintError('Result node numbers are not equal to FEM Mesh NodeCount!\n')

View File

@ -485,7 +485,10 @@ class inp_writer:
f.write('\n***********************************************************\n')
f.write('** Outputs --> frd file\n')
f.write('** written by {} function\n'.format(sys._getframe().f_code.co_name))
f.write('*NODE FILE\n')
if self.beamsection_objects or self.shellthickness_objects:
f.write('*NODE FILE, OUTPUT=2d\n')
else:
f.write('*NODE FILE\n')
f.write('U\n')
f.write('*EL FILE\n')
f.write('S, E\n')