Python Scripting in ABAQUS
Python Scripting in ABAQUS
The python scripts used to create these models are included below. Some of the commands were autogenerated using ABAQUS CAE and the associated recover/journal files.
However, most of the commands were written from scratch in Notepad++, a free text editor with multi-language support. The use of scripting made the definition of the model geometry much easier to define as well as allowing the parameterization of the fiber size and mesh. The mesh was developed so that the elements are most uniform along the fiber matrix interface. To accomplish this, a small square partition in the lower left of the model and a circular partition with radius greater than the fiber radius were added to the mesh. These partitions can be seen in Figure 1 and Figure 2. It should be noted that time constraints did not allow the meshes for either template to be completely refined. For the square model, the user can input global element size and the number of seeds along the fiber matrix interface. For the hexagonal model, the user can input global element size, interface seed number, and number of seeds along the top edge (this number has to be specified in order to make this mesh edge symmetric). Options such as biasing the element size along different directions can be added to the script at a later date.