Eleo
Mechanical
- Mar 2, 2015
- 26
How to write the frame description, Step Time and Time increment in a text file ?
I tried the following code but it does not work.
file = open("/directory/newfile.txt","w")
for frame in odb.steps['Step-1'].frames:
displacement = frame.fieldOutputs['PHILSM']
for y in displacement.values:
file.write('%6.4f, %6.4f,%6.4f \n ' % (frame.description[0],
frame.description[1], y.data))
I tried the following code but it does not work.
file = open("/directory/newfile.txt","w")
for frame in odb.steps['Step-1'].frames:
displacement = frame.fieldOutputs['PHILSM']
for y in displacement.values:
file.write('%6.4f, %6.4f,%6.4f \n ' % (frame.description[0],
frame.description[1], y.data))