Sketches are widely used in Abaqus during the preprocess of the geometry of our FE models. For instance, we use sketches to create parts (extrusion, revolution, sweeping…), to make partitions and cuts, etc. Therefore, to take advantage of the automation of Abaqus through scripts, we need to know how to generate these sketches using Python commands.
This is the second post in this series on the creation of sketches in Abaqus by means of Python scripts. If you missed the first post on this subject, you can take a look here.
Moving on using sketches with Abaqus Scripting
In the following video we will cover the following topics:
- Firstly, we convert our piece-wise parametric spiral into a curved spline.
- Secondly, we explain which are the two most important objects required by any sketch: vertices and geometry. And how to extract information from them through Python commands.
- Finally, we create an antisymmetric double spiral with geometry objects (spline or straight lines).
And all this will be implemented in a Python script such that we can obtain our sketch automatically in Abaqus/CAE!
Download the script to generate the sketch of the double spiral shown in the video. And of course, if you have any question leave it in the comments section below.
You can also get started in Abaqus/Scripting with Python in this post. This is the starting point to learn how to create your own scripts from scratch.
I hope that you find these tips useful!