import sys
from abaqus import *
# Get the cae file path and name from the last command line argument
cae_file_path = sys.argv[-1]
openMdb(cae_file_path)
# And then find the appropriate model in mdb.models, your key may be different
# and may need to be also supplied from the command line if it changes between
# CAE files
model = mdb.models['Model-1']
第二个命令应该提供您要查找的行为。您没有描述运行它时会发生什么,但我假设您的脚本失败了,因为它可能依赖于已经加载的CAE文件。在第二个场景中,您需要自己加载CAE文件。这来自Abaqus脚本参考手册-Python命令,位于
Mdb
部分:脚本可以使用以下方法:
相关问题 更多 >
编程相关推荐