Region used for material orientation assignment can also be used in meshing a part. Here is an example of messing a part using C3D8R element.
Python for Abaqus: code for discrete material orientation assignment
Some Python codes for build Region in Abaqus are really difficult to figure out although Abaqus has a lot of examples and detailed manual and reference. Here is an example for creating discrete material orientation using Python script.
通过命令行在 Abaqus 中运行 Python 脚本的两种方式
有时候只能在没有图形界面的情况下运行 Abaqus，比如在某些高性能计算集群中，又或者仅仅是为了能够通过 Python 批量运行模拟并获取结果等。
Python script to get ODB object
Python script could also be used to perform postprocessing in Abaqus. The first step might be to get the ODB object containing the data to process. Here are two methods to create a variable for the ODB object.
An introduction on the macro script feature in Abaqus
Abaqus has a feature to record almost all of one’s operations in Abaqus CAE environment into script in format of Python language. This feature is called Macro Manager, detailed in Abaqus/CAE manual (Section 9.5, a html page).
Quick Python Script Explanation
In Abaqus, there is an Abaqus Scripting Interface to control Abaqus/CAE models and analysis jobs. The programming language Python is used for the script. This feature is detailed in Abaqus Scripting User’s Guide. Here is a simple but fair detail and completed explanation on the basic rule for Python language.
Abaqus Python Command getSequenceFromMask
When recording operation using Macro Manager in Abaqus, some operations are showed using commmand “getSequenceFromMask”. It is totally unreadable. So we need to tell Abaqus to record this kind of operations in other manner.