我试图通过命令行将变量传递到abaqus
脚本文件(.psf)。每次执行另一个脚本时都会进行命令行调用,并且每次调用中变量的值都不同。在这方面我能得到关于命令语法的帮助吗。我尝试了os.system
和{
在我的主脚本(.py文件)中,它调用.psf
Xa=150000
abaqusCall = 'abaqus script=tt_Par.psf'
runCommand = 'cmd.exe /c ' + abaqusCall
process = subprocess.Popen(runCommand, cwd=workDir, args=Xa)
psf和
它接受这种格式的变量。。在
^{pr2}$有人能在这方面指点迷津吗?在
提前谢谢你
试试这个。我不确定psf文件是什么,但我只是使用py文件。在
要运行一个简单的命令,请执行以下操作
^{pr2}$传递一个变量你可以这样做
但是,这只是abaqus中的python实例,您不能在这里访问abaqus内核。要访问abaqus内核,需要像这样运行脚本。在
我不知道如何将变量传递到abaqus内核中的脚本中,请参阅我的评论
相关问题 更多 >
编程相关推荐