PDA

View Full Version : Problem with writing to a file from Subroutine-UMAT


peegeebee
2005-05-09, 07:39
Greetings to Everyone,

I am working on UMAT (Programmed using FORTRAN) and Abaqus.I would like to write the results of the subroutine to a file,but I am unable to get do that.

Could anyone help me out,in writing the results of the subroutine to a file..

Thank You,
Baskar

CF
2005-05-09, 08:21
Baskar:

If you want to output results to the analysis dat file use the file unit number 6 e.g outputting DDSDDE in matrix form to the dat file:

do i = 1, ntens
write(6,*) ddsdde(i,:)
end do

If you want to output the results to your own file:

open (unit=100, file=myresults.txt)

do i = 1, ntens
write(100,*) ddsdde(i,:)
end do

Just make sure you don't use a unit number already used by Abaqus. (See page 3.7.1-1 of manual)

Best of luck,
Cormac