Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Compiling USERMAT subroutines

    • Rick17
      Subscriber

      Hi,

      I developed a USERMAT subroutine to define a new material model in ANSYS Mechanical. The code works perfectly on my laptop, but it gives some warning messages like the one below on our lab's PC and then stops the simulation with no error message.

      -----------------------------------------------------------------------------

      *** WARNING ***             CP =    1.859  TIME= 11:36:26

       The user material routine for element 240 has set the bisection key in the initial assembly. Check your usermat coding.            

      -------------------------------------------------------------------------------

      I would REALLY appreciate it if anyone could help me with this issue.

      Here is some information regarding this problem:

      • The same simulation setup and USERMAT code are used on both PCs.
      • The same version of ANSYS is installed on both PCs (my laptop and the lab's PC)
      • I installed the same versions of the required software to compile such subroutines in ANSYS, but this didn't work.
      • I reinstalled the operating system (Win 10) on the PC and installed all required software, including the ANSYS itself, but the problem persists.
      • I attached the log files of the simulations that were performed on my laptop and the lab's PC to this post.

      Thank you in advance.

    • Rick17
      Subscriber
      Hi Everyone The problem is solved by removing those parts of my USERMAT code defined for the shell elements (plane stress subroutine). Although my computational domain contains only 3D elements, it seems other parts of the USERMAT code that are not related to 3D elements can also affect the solution process. However, in my notebook, this was not an issue.
      I hope this help. :)
    • Kexin YAN
      Ansys Employee
      Hi I just definite a new material in usermat, how do you do the debug with apdl?
      I tried to print the parameter in the code usermat, but the output file after apdl doesn't affiche the result? Can you give me some advice?
      Thank for your attention.
      Have a good day

    • pourrezamh
      Subscriber

      Hello Friends,

      I have a project in which I need to add and use a user material subroutine in ANSYS Workbench for the plasticity. I have the code written in Fortran, but I'm wondering what the steps are to upload and use the material subroutine in Workbench. 
      Your advice is highly appreciated.

Viewing 3 reply threads
  • The topic ‘Compiling USERMAT subroutines’ is closed to new replies.
[bingo_chatbox]