Using the Usermat UPF to Define Custom ANSYS Mechanical Materials on Windows, Part 2

Categories:

In the first part of this series, PADT’s Alex Grishin explained how to create custom FORTRAN code to create a custom material using the Usermat.f function. Due to the popularity of that post, Alex has created a second part that creates a more sophisticated material model.

Customizing the Usermat.f Algorithm: Creating A Combined Isotropic/Kinematic Hardening Model

In Part 1 of this series, we shared how to create a bilinear isotropic-hardening material model using the code built into the sample source file. Now, we want to take that a step further in define a new kind of plastic hardening model: a kinematic-hardening model. Further, to help make the more complicated code easier to understand, we will introduce subroutines and functions to the Usermat.F file.

Although Fortran came to us from IBM in the 1950s, it is still a powerful language for computation. The Ansys solver, the original Ansys program that started the current Ansys company, is still mostly written in Fortran. The logic, strong syntax, and simple structure of the language make it easy to add your own functionality to the Ansys solver.

Structuring A Custom Usermat.f Algorithm and Adding More Functionality

A graph showing a kinematic/isotropic hardening model that will be coded in a customer Usermat.f routine.

This example comes with a zip file containing the Fortran code, an Excel spreadsheet, an Ansys APDL scripts to try everything out.

Alex has once again laid out a pretty great example that should help you get started on your own custom material. If you need some assistance or want to just have someone else get a custom material or any other custom feature in Ansys Mechanical up and running, please reach out to PADT. Alex, or one of his co-workers, are ready to help.

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

Share this post:

Upcoming Events

Jan 06
- Jan 09
, 2026
CES 2026
Jan 14
- Jan 15
, 2026
Arizona Photonics Days 2026
Feb 03
- Feb 05
, 2026
MD&M West 2026

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: