We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General Mechanical

General Mechanical

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

Create custom model for MAPDL

    • Hector Varela
      Subscriber

      Hi, i'm a student of Mechanical Engineering and i need to create a custom model of Johnson-Cook. I know that i have to compile the model on Fortran with the routine USERMAT. The problem is that i don't know if i can do all of this using the student version of Ansys. If it is possible, were can i find some information about all of this? Sorry for my english. Thanks in advance.

    • David Weed
      Ansys Employee

      Hello Hector,

      Implementing a usermat routine, which is a User Programmable Feature (UPF), typically requires an enterprise license. I don't believe that the student version features this capability. One way to check this is to see if the "custom" folder exists in this path:

      C:\Program Files\ANSYS Inc\v242\ansys\custom

      This folder contains the files necessary for implementing UPFs.

    • Hector Varela
      Subscriber

      I do have the custom folder with 3 subfolders (lib, misc, user) but now i'm doubting if it's possible with the student license because it isn't the first time that i read that without enterprise you can't do it. And now i don't know if it is worth the try, because i have to learn Fortran from scratch and i don't know if it will work.

    • David Weed
      Ansys Employee

      Hector,

      Do you also have the following 3rd party software items in order to do the compiling/linking process (requirements for v242):

      Microsoft Visual Studio Professional 2019 Version 16.0.22 (including the MS C++ compiler)

      Intel OneAPI 2023.1.0 Classic C++ compiler (version 2021.9.0) and Intel OneAPI 2023.1.0 Classic FORTRAN compiler (version 2021.9.0)

      You will need those to implement your UPF after you have programmed it. If you have them, I can send a sample script that you can try running to see whether the UPF feature works.

    • Hector Varela
      Subscriber

      David,

      I really appreciate your help, but i thought about the approaching that i was giving to the problem and i don't wanna mess with Fortran or C++ because it isn't my area. I looked online and i found a python code using the PyMAPDL replicating the already built-in Johnson-Cook model, i don't know if it works because it is quite simple and i haven't tried it yet. Do you have any information if it is possible to do it that way?

    • David Weed
      Ansys Employee

      Can you put the link to the website showing the pymapdl example?

    • Hector Varela
      Subscriber

      I lost the website but i have the code:
      https://pastebin.com/ukEvMUPv

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