diff --git a/src/Mod/Fem/femobjects/_FemConstraintSelfWeight.py b/src/Mod/Fem/femobjects/_FemConstraintSelfWeight.py index 3d01f871b4..b22e843467 100644 --- a/src/Mod/Fem/femobjects/_FemConstraintSelfWeight.py +++ b/src/Mod/Fem/femobjects/_FemConstraintSelfWeight.py @@ -35,19 +35,19 @@ class _FemConstraintSelfWeight: "App::PropertyFloat", "Gravity_x", "Gravity", - "set the gravity component in the x direction" + "Gravity direction: set the x-component of the normalized gravity vector" ) obj.addProperty( "App::PropertyFloat", "Gravity_y", "Gravity", - "set the gravity component in the y direction" + "Gravity direction: set the y-component of the normalized gravity vector" ) obj.addProperty( "App::PropertyFloat", "Gravity_z", "Gravity", - "set the gravity component in the z direction" + "Gravity direction: set the z-component of the normalized gravity vector" ) obj.Gravity_x = 0.0 obj.Gravity_y = 0.0 diff --git a/src/Mod/Fem/femsolver/calculix/writer.py b/src/Mod/Fem/femsolver/calculix/writer.py index c2d7d26261..cc60673861 100644 --- a/src/Mod/Fem/femsolver/calculix/writer.py +++ b/src/Mod/Fem/femsolver/calculix/writer.py @@ -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")