General Mechanical

General Mechanical

USERMAT and State Variables with WB

Tagged: 

    • greg2835
      Subscriber

      I have a USERMAT model that internally determines a failure criteria. I'd like to send this criteria to WB where an APDL Command handles element deletion (ekill). At first I've been setting a state variable (ustatev(1)) and have been trying to figure out how to use this in the WB APDL command. The more I read about State Variables the more I think they are just passed to and from USERMAT and not to WB (please correct me if I am wrong!!). A work around from this would be to read/write to a text file, but that is very very slow. If anyone can help that would be great! Below is what I have if it is helpful. All I'm doing is trying to assign a vector the value of ustatev(1). I am using this thread to help as well (https://forum.ansys.com/discussion/comment/144715#Comment_144715)


      Command connected to Geometry:

      MPDELE,ALL,matid

      TBDELE,ALL,matid


      TB,USER,matid

      TB,STATE,matid,,2


      Command connected to Static Structural

      /SOLU

      OUTRES,SVAR,ALL


      SOLVE

      FINISH


      /POST26

      *VEC,XXX,I,,2

      XXX(1) = SVAR1

      FINISH


      /POST1

      SET,LAST

      FINISH

    • greg2835
      Subscriber
      I figured it out! I mistakenly declared ustatev as an INTEGER instead of a DOUBLE. Switching back to DOUBLE has fixed the problem.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.