truongthinhs
Mechanical
- Jul 12, 2007
- 18
I am not good in Abaquas. I am writing the subroutine Hetval, in this subroutine I read data file from my PC. Because I need data to give to Abaqus program. Result is good but it take me a long time because the program must read many times with same data. I want to read the data a time, then assign it to array and use array instead of read file . But I dont know what to do. Can You help me? Please, describe clearly for me.
Thank a lot.
My subroutine:
SUBROUTINE HETVAL(CMNAME, TEMP, TIME, DTIME, STATEV, FLUX,
1 PREDEF, DPRED)
.....
OPEN (UNIT =10, FILE ="...", STATUS="OLD", ACCESS="SEQUENTIAL", IOSTAT=OpenStatus)
...
READ (UNIT =10,FMT = 100, IOSTAT = InputStatus)...
...
close (10)
...
RETURN
END
Thank a lot.
My subroutine:
SUBROUTINE HETVAL(CMNAME, TEMP, TIME, DTIME, STATEV, FLUX,
1 PREDEF, DPRED)
.....
OPEN (UNIT =10, FILE ="...", STATUS="OLD", ACCESS="SEQUENTIAL", IOSTAT=OpenStatus)
...
READ (UNIT =10,FMT = 100, IOSTAT = InputStatus)...
...
close (10)
...
RETURN
END