-
-
August 26, 2020 at 2:51 pm
m531219967
SubscriberHow to use usermat to generate different user-defined materials in ansys mechanical simultaneously?n -
August 26, 2020 at 6:39 pm
David Weed
Ansys EmployeeHi, 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 -
August 27, 2020 at 2:09 am
m531219967
SubscriberThank 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 -
August 31, 2020 at 2:43 pm
David Weed
Ansys EmployeeHi 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 -
September 7, 2020 at 9:28 pm
m531219967
SubscriberThank 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.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3266
-
1031
-
984
-
859
-
798
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.