Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I write output from my subroutine (umat) to a text file? 1

Status
Not open for further replies.

Elli H.

Civil/Environmental
Mar 10, 2022
2
Hello dear community,

I have a simulation in Abaqus/Standard using an UMAT. In this UMAT there are a few SDVs. I would like to write the solution of one SDV in a separate txt-file.
I tried a few versions (like it is also done by other authors) but in my case the txt file stays empty but the calculation time increases like he writes something into the txt file.. but obviously he does not because it stays empty.

I wrote:

open(unit=102,file='filename.txt')
write(102,*) SDV(1)
close(102)

I also tried to wirte "temp" instead of SDV(1) and added also status='old' because the filename.txt is already in the same folder in which the subroutine is saved.

This method works for others- but in my case it does not work. Does somebody know why or what could be changed?

Thanks :)

Regards,
elli
 
Replies continue below

Recommended for you

When file is opened, Abaqus assumes that it is located in scratch directory created for simulation. So full pathname to an existing directory is needed like below.

open(unit=102,file='c:\filename.txt')
write(102,*) SDV(1)
close(102)
 
Thank you very much - you are right :) now it works-thank you :)

the SDV(1) is updated for every increment - do you also know what I can change so that he gives me the values as a tabular out? (without overwriting in every step?) I think I need a loop but for that I need the maximum i in the loop

Thank you:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor