Workaround for the missing parameter option regarding the stiffness behaviour of solids in Ansys Mechanical.
The script below declares all geometries as rigid if their names end with "_rig".
It gets triggered after the geometry is updated.
This allows parameter studies with rigid bodies.
-
Temporarily tick the option "Connect/Run Python Code Objects when Mechanical is Launched" under Options -> Mechanical (Revert this after the parameter study)
-
Insert a new Python code script into Ansys mechanical by right clicking on the model tree.
-
Set the "Target Callback" to "After Geometry Changed".
-
Copy the whole content of AutoRigid.py into the body of the "after_geometry_changed(...)" function.
-
Right click on the script in the tree and press "Connect".
Published under MIT License