now also works for single stepped loadcases, too
This commit is contained in:
parent
483234047c
commit
2dd8a353bb
|
@ -57,6 +57,7 @@ else:
|
||||||
for file in files:
|
for file in files:
|
||||||
print file['name']
|
print file['name']
|
||||||
inc = 1
|
inc = 1
|
||||||
|
loadcase = 1
|
||||||
step = 1
|
step = 1
|
||||||
iter = 0
|
iter = 0
|
||||||
|
|
||||||
|
@ -79,10 +80,11 @@ for file in files:
|
||||||
|
|
||||||
items = line.split()
|
items = line.split()
|
||||||
if len(items) > 7 and items[0] == 'Loadcase': # 'magic' line?
|
if len(items) > 7 and items[0] == 'Loadcase': # 'magic' line?
|
||||||
if int(items[5]) == step:
|
if int(items[5]) == step and int(items[2]) == loadcase:
|
||||||
iter += 1 # next iteration found
|
iter += 1 # next iteration found
|
||||||
else:
|
else:
|
||||||
output += '\t'.join(map(str,[inc,iter])) + '\n'
|
output += '\t'.join(map(str,[inc,iter])) + '\n'
|
||||||
|
loadcase = int(items[2]) # store current loadcase count
|
||||||
step = int(items[5]) # store current step count
|
step = int(items[5]) # store current step count
|
||||||
inc += 1 # is next inc
|
inc += 1 # is next inc
|
||||||
iter = 1 # was first iteration of next step/inc
|
iter = 1 # was first iteration of next step/inc
|
||||||
|
|
Loading…
Reference in New Issue