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
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user