We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General Mechanical

General Mechanical

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

How to generate different user-defined materials in ansys mechanical?

    • m531219967
      Subscriber
      How to use usermat to generate different user-defined materials in ansys mechanical simultaneously?n
    • David Weed
      Ansys Employee
      Hi, I am familiar with compiling/linking UPFs in both the MAPDL and WB-Mechanical environment. Can you specify which environment you are in? I believe that you are asking if it is possible to use usermat to initialize multiple materials models within a project? Please let me know if that is correct. If this is the case, generally ANSYS allows users to use multiple UPFs within a given project (using all three methods, i.e., /UPF, shared library, and custom executable methods). One approach is to code multiple subroutines within the usermat.F template and you could use internal logic (e.g., a flag such as the material ID number which will be read into usermat.F) to have the program decide which routine to use. If you could provide more information about your workflow, that would be helpful as well.n
    • m531219967
      Subscriber
      Thank you for your reply! nYes, I am looking for initializing multiple materials in ANSYS Mechanical. I want to define one material model for concrete using solid elements and another one material model for reinforcement using link elements.nIf I code multiple subroutines within the usermat.f template, would the parameters in the subroutines for different materials have conflicts, like the stress and strain? nIf it works, should I code the subroutines like this?nSUBROUTINE usermat(matID,elemID...nnIF (matID .EQ. 1) THENncall usermat_concrete(matID,elemID...nELSE IF (matID .EQ. 2) THENncall usermat_steel(matID,elemID...?SUBROUTINE usermat_concrete(matID,elemID...nSUBROUTINE usermat_steel(matID,elemID...nnn
    • David Weed
      Ansys Employee
      Hi yes, something like this should work. If you look at the usermat.F file that comes with the install, you can see that it contains different subroutines based on 2D, 3D, or element formulation (beams, plane elements, solids). But it seems that you have the gist of it.n
    • m531219967
      Subscriber
      Thank you so much!!!n
Viewing 4 reply threads
  • The topic ‘How to generate different user-defined materials in ansys mechanical?’ is closed to new replies.