Materials

Materials

Topics related to Granta Design and more.

How to access solution data from a user material subroutine (UserMat or UserMatTh)?

TAGGED: ,

    • Volker_Slowik
      Subscriber
      I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData (kchar, elemId, kMatRecPt, ncomp, vect). However, this subroutine seems to work only for the current element, not for other elements. The element number elemId specified as input for the subroutine is ignored. The output contains always data for the integration points of the current element. Does someone have an idea how to access user state variables of other elements? n
    • David Weed
      Ansys Employee
      nI spoke to one of our developers and they indicated that there are no routines to get data from other elements from inside a UPF. This capability is not supported but some customers have implemented methods to do it (one potential route would be storing and retrieving data from external files, but note that doing so is not a standard or supported feature of ANSYS software).n
    • Volker_Slowik
      Subscriber
      Thank you for responding to my question. Very clear answer.n
      • myu25
        Subscriber

        Hi, 

        I am facing one similar problem as you, I would like to retrieve the plastic strain as output inside the "vect", the label for plastic strain is EPPL, since ANSYS has no idea what user stored, there should have another label for plastic strain. How do I know the label and how to define it?

         

        if you have time, we can discuss via email (myu25@uiowa.edu)

         

        regards

         

Viewing 2 reply threads
  • The topic ‘How to access solution data from a user material subroutine (UserMat or UserMatTh)?’ is closed to new replies.