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

Apr 23
, 2026
Access the Right Material Data Directly Inside Your Simulation Workflow - Webinar
Apr 23
, 2026
Ansys 2026 R1: Ansys Digital Twin What’s New
Apr 27
- Apr 30
, 2026
Nuclear and Emerging Technologies for Space (NETS) 2026
Apr 28
, 2026
Uncertainty Quantification for Real‑World Model Deployment in Industrial Systems - Webinar
Apr 28
, 2026
Ansys 2026 R1: Ansys Sherlock and Electronics Reliability What’s New
Apr 29
, 2026
Ansys 2026 R1: Structural Mechanics What’s New
Apr 30
, 2026
Ansys 2026 R1: What’s New in Ansys Optics
May 07
, 2026
Ansys 2026 R1: Ansys LS-DYNA What's New
May 13
, 2026
2026 Arizona Manufacturing Showcase
Jun 18
, 2026
E-Mobility and Clean Energy Summit
Jul 15
, 2026
Arizona Aerospace Summit
Aug 10
- Aug 11
, 2026
2026 CEO Leadership Retreat + Golf Tournament
Oct 21
, 2026
2026 Southern Arizona Tech + Business Expo
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: