Use filePath
instead of fileName
when running Abaqus with script
#1095
Replies: 4 comments 5 replies
-
In the current implementation, I use the shell command |
Beta Was this translation helpful? Give feedback.
-
Even though, directly using |
Beta Was this translation helpful? Give feedback.
-
But when we want to submit the job in a script/ if we directly use |
Beta Was this translation helpful? Give feedback.
-
I'm thinking about the case when we want to keep the main python script in one directory and run the Abaqus simulations in another directory. This could be the case when we want to run multiple models, each one in a separate folder, recording all the Abaqus files in that folders. This could be done using the
os.chdir
function in Python.To achieve that, we may need to change the parameter of the Abaqus command to
filePath
instead offileName
, so that Abaqus can find the script to run it.Then, the method
saveAs
in the classMdb
should be modified to the following:If you agree with that, I can submit a PR, also modifying the method
openOdb
as well.Beta Was this translation helpful? Give feedback.
All reactions