简体   繁体   English

从命令行界面运行abaqus cae命令时出错

[英]Error in Running abaqus cae command from command line interface

How do I know the working directory of python prompt so that I can run my scripts by keeping it in the folder? 我怎么知道python提示符的工作目录,以便可以通过将其保存在文件夹中来运行脚本? Is it the same as the Abaqus working directory? 它与Abaqus工作目录相同吗?
If that's the case I am unable to run the file 如果是这种情况,我将无法运行该文件

abaqus cae noGUI=test.py 

gives the following : 给出以下内容:

abaqus cae noGUI=test.py abaqus cae noGUI = test.py

Abaqus Error: The following file(s) could not be located: test.py Abaqus错误:找不到以下文件:test.py

Although the file is present. 尽管文件存在。 Running the file from File->Run gives the correct output 从File-> Run运行文件可提供正确的输出
Edit : I am using Abaqus 2016 version 编辑 :我正在使用Abaqus 2016版本

要访问abaqus随附的python版本,您需要输入abaqus python test.py ,其中test.py是您的脚本,希望对您有所帮助

I resolved my error by going into the directory where test.py was present. 我通过进入存在test.py的目录解决了我的错误。
The abaqus working directory isn't related to this issue abaqus工作目录与此问题无关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM