How to save UMAT calculations to a text file

Hello guys. I have a question. Is it possible to save some calculations from UMAT, specifically the rotation matrix in umat_single_crystal, to a text file? I tried modifying the UMAT itself and added code to do so, but it isn’t working. I also tried writing it to the console, but nothing happened. Also is there single crystal umat with fcc crystal system?

Yes, it is possible. How are you trying to do it?

I was using open command to write it in file, and just write to write it in console. I compiled ccx with open one time but it does nothing other times there was error during compilation. Same with writing in console.

I think i solved it. I just didnt provide *orientation card and tried to save orientations after orientation check.

1 Like

There is another question: Is it possible to save it every set number of steps?

Yes, you can make it whatever you want. Make sure you have the variable available within the umat and that’s it. Step and increments must be part of the available ones.

Thank you for advice. Is it possible to pass a variable value to umat for the next step, for example, a rotation matrix?