如何在没有图形用户界面的情况下运行Abaqus,但在命令行中使用模型数据库(cae文件)和python脚本?
我试过这个命令:
abaqus cae database=test.cae script=test2.py,它工作得很好,但是有图形用户界面,但是我正在尝试这两个命令:
noGUI=test2.py
他们不管用,有人能帮我吗?
发布于 2020-03-23 17:07:17
第二个命令应该提供您要寻找的行为。您没有描述运行它时会发生什么,但是我假设您的脚本失败了,因为它可能依赖已经加载的CAE文件。在第二个场景中,您需要自己加载CAE文件。这来自于Mdb部分下的Abaqus脚本参考手册- Python命令:

您的脚本可以使用以下一种方法:
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']https://stackoverflow.com/questions/60810915
复制相似问题