Skip to content

Commit c488572

Browse files
committed
Updated UMAT example
1 parent 1f9593c commit c488572

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/UMAT/calc_properties.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ def write_res():
7878
path_r = 'results/'
7979
file_m = path_m + 'abq_' + ml_name + '-svm.csv'
8080
if not os.path.isdir(path_m):
81-
raise NotADirectoryError('Path '+path_m+' is not a directory.')
81+
raise RunTimeError('Path '+path_m+' is not a directory.')
8282
if not os.path.exists(file_m):
83-
raise FileNotFoundError('Model file '+file_m+' not found.')
83+
raise RunTimeError('Model file '+file_m+' not found.')
8484
if not os.path.isdir(path_r):
8585
if os.path.exists(path_r):
86-
raise NotADirectoryError('Path '+path_r+' exists, but is not a directory.')
86+
raise RunTimeError('Path '+path_r+' exists, but is not a directory.')
8787
else:
8888
os.mkdir(path_r)
8989

@@ -230,6 +230,6 @@ def write_res():
230230
with open(abq_job+'.inp','w') as f:
231231
f.writelines(data)
232232

233-
os.system('abq6142 job={0} user={1} cpus={2} int'.format(abq_job,abq_umat,ncpu))
233+
os.system('abaqus job={0} user={1} cpus={2} int'.format(abq_job,abq_umat,ncpu))
234234
write_res()
235235
fclear()

0 commit comments

Comments
 (0)