It's the first time I'm trying to run scripts on the Abaqus server from my university. The IT team provided me the credentials to access the server, but they don't know how to run scripts from there. I'm using Putty to connect to the server, and Filezilla to transfer files. I tried to run Python scripts from the work directory on the server, but this error came out:
Traceback (most recent call last):
File "SMAPylModules/SMAPylDriverPy.m/src/driverEnv.py", line 324, in envRunFile
File "/home/gd00357/abaqus_v6.env", line 208, in <module>
raise 'Cannot find the graphics configuration environment file (graphicsConfig.env)'
I couldn't find any documentation on how to run Python scripts, I hope it's possible in some way. How could I solve that error?
EDIT: Ok, apparently remote servers don't support any scripts that make use of the GUI. Now my question is: how do I import a model as input file (.inp) using a Python script? Is there a way that avoids that a Python script uses the GUI?
abaqus cae noGUI=script.py
But it's not possible to do that when I'm using external servers, apparently, because my script rely on the GUI (it opens a .cae file and works on it)abaqus_v6.env
with necessary modifications to the working directory and run for other applications. In most casesCAE
scripts can't be run in the cluster. But one can generate the*.inp
files locally and run them in the cluster withabaqus j=<job-name> inp=<*.inp>
Theta=X
) in the imported.inp
file and change them? And what's the best way to import files? I tried with.read()
, but then I don't know how to search through the lines*PARAMETER
keyword available in abaqus. We can give the values of a particular variable at the top of the*.inp
file and replace the corresponding value inside the input file with thevariable name
. It's better to do this locally and generaten
required input files and submit them.