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

Aug 13
, 2026
From Hours to Minutes: Accelerate Your Designs with Zemax HPC - Webinar
Aug 14
, 2026
Ansys Fluent Meshing Watertight Geometry Workflow - Webinar
Aug 20
, 2026
AZBio Spring Reception
Aug 23
- Aug 26
, 2026
Small Satellite Conference 2026
Aug 24
- Aug 27
, 2026
Nuclear Energy Conference & Expo - 2026
Aug 26
, 2026
Ansys Simulation Solutions for Pumps, Compressors and Fans - Webinar
Sep 14
- Sep 19
, 2026
IMTS 2026
Oct 07
, 2026
2026 AZBio Awards
Oct 08
, 2026
White Hat Life Science Investor Conference
Oct 21
, 2026
2026 Southern Arizona Tech + Business Expo
Oct 28
, 2026
Nerdtoberfest 2026
Nov 18
, 2026
2026 Governor’s Celebration of Innovation

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: