From 87cc683ccc9c5257c7f1b67693ebc04c7645b0bb Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:54:32 +0200 Subject: [PATCH] FEM: Remove obsolete "Fix" property from a few examples to repair them (#15698) * FEM: Update rc_wall_2d.py * FEM: Update buckling_platebuckling.py * FEM: Update equation_deformation_spring_elmer.py * FEM: Update buckling_lateraltorsionalbuckling.py --- .../Fem/femexamples/buckling_lateraltorsionalbuckling.py | 6 +++--- src/Mod/Fem/femexamples/buckling_platebuckling.py | 6 +++--- .../Fem/femexamples/equation_deformation_spring_elmer.py | 8 ++++---- src/Mod/Fem/femexamples/rc_wall_2d.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Mod/Fem/femexamples/buckling_lateraltorsionalbuckling.py b/src/Mod/Fem/femexamples/buckling_lateraltorsionalbuckling.py index 70e8232ca2..49e86961c1 100644 --- a/src/Mod/Fem/femexamples/buckling_lateraltorsionalbuckling.py +++ b/src/Mod/Fem/femexamples/buckling_lateraltorsionalbuckling.py @@ -147,15 +147,15 @@ def setup(doc=None, solvertype="ccxtools"): # constraints displacement con_disp_x = ObjectsFem.makeConstraintDisplacement(doc, "ConstraintDisplacement_X") con_disp_x.References = [(geom_obj, "Vertex2")] - con_disp_x.xFix = True + con_disp_x.xDisplacement = 0 con_disp_x.xFree = False analysis.addObject(con_disp_x) con_disp_yz = ObjectsFem.makeConstraintDisplacement(doc, "ConstraintDisplacement_YZ") con_disp_yz.References = [(geom_obj, ("Edge15", "Edge16"))] - con_disp_yz.yFix = True + con_disp_yz.yDisplacement = 0 con_disp_yz.yFree = False - con_disp_yz.zFix = True + con_disp_yz.zDisplacement = 0 con_disp_yz.zFree = False analysis.addObject(con_disp_yz) diff --git a/src/Mod/Fem/femexamples/buckling_platebuckling.py b/src/Mod/Fem/femexamples/buckling_platebuckling.py index d0d85a2b5d..0c029412cf 100644 --- a/src/Mod/Fem/femexamples/buckling_platebuckling.py +++ b/src/Mod/Fem/femexamples/buckling_platebuckling.py @@ -118,13 +118,13 @@ def setup(doc=None, solvertype="ccxtools"): # constraints displacement con_disp_x = ObjectsFem.makeConstraintDisplacement(doc, "ConstraintDisplacement_X") con_disp_x.References = [(geom_obj, "Edge1")] - con_disp_x.xFix = True + con_disp_x.xDisplacement = 0 con_disp_x.xFree = False analysis.addObject(con_disp_x) con_disp_y = ObjectsFem.makeConstraintDisplacement(doc, "ConstraintDisplacement_Y") con_disp_y.References = [(geom_obj, "Vertex1")] - con_disp_y.yFix = True + con_disp_y.yDisplacement = 0 con_disp_y.yFree = False analysis.addObject(con_disp_y) @@ -135,7 +135,7 @@ def setup(doc=None, solvertype="ccxtools"): (geom_obj, "Edge3"), (geom_obj, "Edge4"), ] - con_disp_z.zFix = True + con_disp_z.zDisplacement = 0 con_disp_z.zFree = False analysis.addObject(con_disp_z) diff --git a/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py b/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py index 378a5565a3..47497fb45a 100644 --- a/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py +++ b/src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py @@ -160,9 +160,9 @@ def setup(doc=None, solvertype="elmer"): DisplaceLeft.hasXFormula = True DisplaceLeft.xDisplacementFormula = 'Variable "time"; Real MATC "0.006*tx"' DisplaceLeft.yFree = False - DisplaceLeft.yFix = True + DisplaceLeft.yDisplacement = 0 DisplaceLeft.zFree = False - DisplaceLeft.zFix = True + DisplaceLeft.zDisplacement = 0 DisplaceLeft.References = [(SpringObject, "Face1")] analysis.addObject(DisplaceLeft) @@ -171,9 +171,9 @@ def setup(doc=None, solvertype="elmer"): DisplaceRight.hasXFormula = True DisplaceRight.xDisplacementFormula = 'Variable "time"; Real MATC "-0.006*tx"' DisplaceRight.yFree = False - DisplaceRight.yFix = True + DisplaceRight.yDisplacement = 0 DisplaceRight.zFree = False - DisplaceRight.zFix = True + DisplaceRight.zDisplacement = 0 DisplaceRight.References = [(SpringObject, "Face5")] analysis.addObject(DisplaceRight) diff --git a/src/Mod/Fem/femexamples/rc_wall_2d.py b/src/Mod/Fem/femexamples/rc_wall_2d.py index b74a865e13..5f582448ee 100644 --- a/src/Mod/Fem/femexamples/rc_wall_2d.py +++ b/src/Mod/Fem/femexamples/rc_wall_2d.py @@ -161,7 +161,7 @@ def setup(doc=None, solvertype="ccxtools"): con_disp = ObjectsFem.makeConstraintDisplacement(doc, "ConstraintDisplacmentPrescribed") con_disp.References = [(geom_obj, "Face1")] con_disp.zFree = False - con_disp.zFix = True + con_disp.zDisplacement = 0 analysis.addObject(con_disp) # mesh