【发布时间】:2018-09-01 15:04:38
【问题描述】:
我想使用 python 运行 MSC NASTRAN。我在 MATLAB 中看到了一个类似的函数
system('nastran.exe file_name.bdf') #where file_name.bdf 是使用 nastran 运行的输入文件。
因此我在下面尝试使用 python 代码,但没有成功,
import os
os.system('nastran.exe file_name.bdf')
你能告诉我哪里出错了吗?
另外,如何通过 python 在 NASTRAN 中提供命令行?例如运行时的内存分配,运行时需要使用的内核数等。
一些 NASTRAN 命令行包括, 1. scr=yes 删除=f04,log,xdb 暂停=yes 2. mem=10gb bpool=3gb memorymaximum=14gb sscr=500gb sdball=500gb mode=i8 ...等等。
【问题讨论】: