General Mechanical

General Mechanical

How to access to ElemGetMat

    • ansysuser
      Subscriber

      Hello,


      I am attempting to design a custom element for a project I am working on. I am looking through the API UserElem.f and in the routine it declares the external ElemGetMat and says that the user may be modified.  Here is what it says:

      EXTERNAL         ElemGetMat  ! this routine may be user-programmed
      ...
      --- ElemGetMat, which can also be modified if desired.

      But I cannot find ElemGetMat to modify it.  This is not in the same customize/user folder where UserElem.f is found, and a search of all the subfolders in the ANSYS director turns up nothing.  So how can I access ElemGetMat?


       


      Thanks

    • Sandeep Medikonda
      Ansys Employee

      What version of ANSYS are you using?


      The help says the following about this routine:



      When calling the subroutine, input the associated material data via the standard method. There is no need to access this subroutine, only to call it.



      How to access the ANSYS Online Help

    • ansysuser
      Subscriber

      Hello SandeepMedikonda,


      I am using 2019 R1. Above I copied and pasted what it says in the template file "UserElem.f"  Here I will be more specific.

      It says this on line 215:

      EXTERNAL         ElemGetMat  ! this routine may be user-programmed

      On line 363 it says:

      c        --- ElemGetMat, which can also be modified if desired.

      So yes, this appears to contradict the documentation that you cited above.  Can you confirm which one is correct?


       


      Thanks.

    • Sandeep Medikonda
      Ansys Employee

      The developer might have forgotten to remove the comment.


      I will confirm this but would recommend going with the help for now.

    • ansysuser
      Subscriber

      Thank you, SandeepMedikonda.  I appreciate your time.

    • ansysuser
      Subscriber

      I marked SandeepMedikonda's last response as the answer, even though I have not heard back.  I assume someone forgot to edit out the statements that the user can alter ElemGetMat in UserElem.f

Viewing 5 reply threads
  • You must be logged in to reply to this topic.