From ce9f92b42b0328498fd1d938f0d8a5ced917f026 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 15 Jun 2021 20:37:57 +0200 Subject: [PATCH] FEM: examples, typo in flexural buckling --- .../ccx_buckling_flexuralbuckling.py | 7 +++--- .../ccx_buckling_flexuralbuckling.inp | 24 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/Mod/Fem/femexamples/ccx_buckling_flexuralbuckling.py b/src/Mod/Fem/femexamples/ccx_buckling_flexuralbuckling.py index 4faf788505..86513522ec 100644 --- a/src/Mod/Fem/femexamples/ccx_buckling_flexuralbuckling.py +++ b/src/Mod/Fem/femexamples/ccx_buckling_flexuralbuckling.py @@ -68,7 +68,7 @@ def setup(doc=None, solvertype="ccxtools"): doc = init_doc() # geometric object - geom_obj = doc.addObject("Part::Box", "beam") + geom_obj = doc.addObject("Part::Box", "Beam") geom_obj.Length = 1 geom_obj.Width = 1.5 geom_obj.Height = 8 @@ -111,13 +111,12 @@ def setup(doc=None, solvertype="ccxtools"): analysis.addObject(material_obj) # constraint fixed - # FIXME: wrong obj name, fix unit test as well - con_fixed = ObjectsFem.makeConstraintFixed(doc, "FemConstraintDisplacement") + con_fixed = ObjectsFem.makeConstraintFixed(doc, "ConstraintFixed") con_fixed.References = [(geom_obj, "Face5")] analysis.addObject(con_fixed) # constraint force - con_force = ObjectsFem.makeConstraintForce(doc, "FemConstraintForce") + con_force = ObjectsFem.makeConstraintForce(doc, "ConstraintForce") con_force.References = [(geom_obj, "Face6")] con_force.Force = 21 con_force.Reversed = True diff --git a/src/Mod/Fem/femtest/data/calculix/ccx_buckling_flexuralbuckling.inp b/src/Mod/Fem/femtest/data/calculix/ccx_buckling_flexuralbuckling.inp index 1ec8146456..e5a8a08e2a 100644 --- a/src/Mod/Fem/femtest/data/calculix/ccx_buckling_flexuralbuckling.inp +++ b/src/Mod/Fem/femtest/data/calculix/ccx_buckling_flexuralbuckling.inp @@ -704,8 +704,8 @@ Evolumes *********************************************************** ** constraints fixed node sets ** written by write_node_sets_constraints_fixed function -** FemConstraintDisplacement -*NSET,NSET=FemConstraintDisplacement +** ConstraintFixed +*NSET,NSET=ConstraintFixed 1, 4, 5, @@ -758,19 +758,19 @@ Evolumes *********************************************************** ** Fixed Constraints ** written by write_constraints_fixed function -** FemConstraintDisplacement +** ConstraintFixed *BOUNDARY -FemConstraintDisplacement,1 -FemConstraintDisplacement,2 -FemConstraintDisplacement,3 +ConstraintFixed,1 +ConstraintFixed,2 +ConstraintFixed,3 *********************************************************** ** constraints force node loads ** written by write_constraints_force function *CLOAD -** FemConstraintForce -** node loads on shape: beam:Face6 +** ConstraintForce +** node loads on shape: Beam:Face6 65,3,-3.2812500000000E-01 66,3,-6.5625000000000E-01 67,3,-6.5625000000000E-01 @@ -808,7 +808,7 @@ U S, E ** outputs --> dat file ** reaction forces for Constraint fixed -*NODE PRINT, NSET=FemConstraintDisplacement, TOTALS=ONLY +*NODE PRINT, NSET=ConstraintFixed, TOTALS=ONLY RF @@ -819,9 +819,9 @@ RF *********************************************************** ** CalculiX Input file ** written by write_footer function -** written by --> FreeCAD 0.19.23856 (Git) -** written on --> Tue Mar 30 10:47:39 2021 -** file name --> +** written by --> FreeCAD 0.20.25065 (Git) +** written on --> Tue Jun 15 10:36:32 2021 +** file name --> ccx_buckling_flexuralbuckling.FCStd ** analysis name --> Analysis ** **