FEM: better help messages at self weight

This commit is contained in:
Bernd Hahnebach
2020-02-27 15:11:12 +01:00
parent d2f506162d
commit 2978191a3d
2 changed files with 8 additions and 7 deletions

View File

@@ -1099,13 +1099,14 @@ class FemInputWriterCcx(writerbase.FemInputWriter):
f.write("** " + selwei_obj.Label + "\n")
f.write("*DLOAD\n")
f.write(
# elset, GRAV, magnitude, direction x, dir y ,dir z
"{},GRAV,{},{},{},{}\n"
.format(
self.ccx_eall,
self.gravity,
selwei_obj.Gravity_x,
selwei_obj.Gravity_y,
selwei_obj.Gravity_z
self.gravity, # actual magnitude of gravity vector
selwei_obj.Gravity_x, # coordinate x of normalized gravity vector
selwei_obj.Gravity_y, # y
selwei_obj.Gravity_z # z
)
)
f.write("\n")