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.

This explanation is from coffeeghost.net as a picture. It’s for those who have basic programming experience to get familiar with Python style in a few minutes. It’s also useful to the beginners for a fast reference.

Quick Python Script Explanation for Programmers

Quick Python Script Explanation for Programmers

In this picture, the basic grammer rules and coding style are detailed in a simple example. The main content includes:

  • Load other code modules.
  • Function definition and call for a function.
  • Variables.
  • Indentation as the indicator of the end of a block or the beggining of a new block.
  • For loop and If-Else statements.
  • Boolean operators.
  • Style for comments.

This is a brief list of need-to-known for those who want to take the advantage of script in Abaqus.©

本文发表于水景一页。永久链接:<https://cnzhx.net/fe/2015/07/04/quick-python-script-explanation/>。转载请保留此信息及相应链接。

2 条关于 “Quick Python Script Explanation” 的评论

  1. 引用通告: An introduction on the macro script feature in Abaqus | Abaqus 学习笔记

  2. 引用通告: Python script to get ODB object | Abaqus 学习笔记

雁过留声,人过留名

您的电子邮箱地址不会被公开。 必填项已用 * 标注

特别提示:与当前文章主题无关的讨论相关但需要较多讨论求助信息请发布到水景一页讨论区的相应版块,谢谢您的理解与合作!请参考本站互助指南
您可以在评论中使用如下的 HTML 标记来辅助表达: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>