One of the most common operations and sometimes the hardest to automate in our Python scripts is the selection of geometry. This task is essential to assign material properties, define boundary conditions, control the mesh settings, create interactions, etc. The default method recorded by Abaqus is based on masks, but it has several drawbacks (not reliable when geometry changes and non-intuitive).
In this post, I would like to show you a few other methods to automate the selection of geometry using Python in Abaqus.
1. Methods to select geometry
The five strategies to select geometry in Abaqus (vertices, edges, faces and cells) using Python commands are:
Some of these methods are also applicable to mesh selections, such as masks, findAt, getByBounding functions and direct selection.
2. Practical cases
In the following video you will see a practical demonstration on how to apply these 5 strategies in Abaqus using Python scripts.
I hope that you find these tips useful!