Skip to content

Commit

Permalink
FEM: calculix writer, add reaction forces for constraint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jun 8, 2019
1 parent 2b1a235 commit c1d0c98
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/Mod/Fem/femsolver/calculix/writer.py
Expand Up @@ -1304,10 +1304,22 @@ def write_outputs_types(self, f):
f.write('S, E, PEEQ\n')
else:
f.write('S, E\n')

# dat file
f.write('** outputs --> dat file\n')
f.write('** reaction forces for Constraint fixed\n')
# reaction forces for all Constraint fixed
# freecadweb.org/tracker/view.php?id=2934
for femobj in self.fixed_objects:
# femobj --> dict, FreeCAD document object is femobj['Object']
fix_obj_name = femobj['Object'].Name
f.write('*NODE PRINT, NSET={}, TOTALS=ONLY\n'.format(fix_obj_name))
f.write('RF\n\n')
# TODO: add Constraint Displacement if nodes are restrained

# there is no need to write all integration point results
# as long as there is no reader for this
# as long as there is no reader for them
# see https://forum.freecadweb.org/viewtopic.php?f=18&t=29060
# f.write('** outputs --> dat file\n')
# f.write('*NODE PRINT , NSET=' + self.ccx_nall + '\n')
# f.write('U \n')
# f.write('*EL PRINT , ELSET=' + self.ccx_eall + '\n')
Expand Down

0 comments on commit c1d0c98

Please sign in to comment.