Abaqus USDFLD Subroutine: Practical Guide with Working Examples

Abaqus USDFLD Subroutine: Practical Guide with Working Examples

Table of Contents

If you need material properties in Abaqus to change during the analysis — stiffness that drops when a stress limit is reached, a modulus that varies with position, a property that depends on accumulated strain — the Abaqus USDFLD subroutine is usually the cheapest way to do it. It is far simpler than writing a full UMAT, and it works with Abaqus’ built-in material models instead of replacing them.

The problem is that most people try USDFLD, the job runs, and nothing happens. No error, no warning, and the properties never change. That is almost always a setup issue, not a coding issue. This guide walks through what USDFLD really does, the three things you must define before it is ever called, two working examples, and the mistakes that waste the most time.

What the USDFLD subroutine actually does

USDFLD redefines field variables at a material point. That is all it does.

Abaqus already lets you make material data depend on field variables. You give a property table with extra columns, and Abaqus interpolates in that table. Normally the field variable comes from a predefined field you prescribe in the input. With USDFLD, you compute it yourself in Fortran at every integration point, at every increment, based on whatever you like — current stress, strain, coordinates, time, or a state variable you are tracking.

So USDFLD does not define material behaviour. It drives an existing material model by feeding it a number you control. The built-in elasticity, plasticity, or expansion model still does the mechanics.

It is available in Abaqus/Standard. The Abaqus/Explicit equivalent is VUSDFLD, which has a different, vectorized interface.

USDFLD vs UMAT vs VUSDFLD

  • USDFLD — Abaqus/Standard. Changes field variables; the built-in material model still computes stress. Short code, no Jacobian to derive. Best for property degradation, graded properties, and condition-based property switching.
  • UMAT — Abaqus/Standard. You compute the stress update and the consistent Jacobian DDSDDE yourself. Full control, much more work, and much easier to break convergence. Needed when no built-in model fits. If you are weighing the two, our guide on UMAT vs VUMAT in Abaqus covers the implicit/explicit side of that choice.
  • VUSDFLD — Abaqus/Explicit. Same idea as USDFLD but called for blocks of material points, and it receives stress and strain directly instead of through a utility routine.

Rule of thumb: if you can express what you want as “this existing property should take a different value under this condition”, use USDFLD. If you need a new constitutive law, you need UMAT.

The three things you must set up

This is where most USDFLD attempts fail. All three are required. Miss any one and the subroutine either never runs or has no effect.

1. The material property must depend on a field variable

A property table with no dependency has nothing for USDFLD to change. In the keyword editor:

*MATERIAL, NAME=STEEL_DMG
*ELASTIC, DEPENDENCIES=1
 210000., 0.3,  ,  0.0
   2100., 0.3,  ,  1.0

With DEPENDENCIES=1 the data line order is E, ν, temperature, field variable 1. The temperature column must be present even if it is blank. Here, field variable 1 = 0 gives the intact modulus and 1 gives a degraded one, with linear interpolation in between.

In Abaqus/CAE: Property → Material → Mechanical → Elasticity → Elastic, then set Number of field variables to 1 and fill in the extra column.

2. The material must declare *USER DEFINED FIELD

*USER DEFINED FIELD

Without this keyword Abaqus never calls your subroutine, even if the file compiles fine. In CAE this is Edit Material → General → User Defined Field. If your properties are not changing and you have checked nothing else, check this first.

3. Declare state variables with *DEPVAR

*DEPVAR
 2

Field variables are recomputed from scratch on every call, so they cannot remember anything. If your damage must be irreversible, the flag has to live in STATEV. *DEPVAR reserves the slots. In CAE: Edit Material → General → Depvar.

Finally, point the job at the source file: Job → Edit Job → General → User subroutine file. Fortran is the official language for Abaqus user subroutines and needs a correctly linked Intel Fortran compiler.

Reading stress and strain with GETVRM

USDFLD does not receive stress and strain as arguments. You fetch them with the utility routine GETVRM, passing through JMAC, JMATYP, MATLAYO and LACCFLA exactly as they arrive.

Two things matter in practice:

  • GETVRM returns values at the beginning of the increment — the converged state from the previous increment. End-of-increment values do not exist yet when USDFLD is called.
  • Always check the return code JRCD. In the first increment of the first step there is no previous state and the request can come back empty.

Common requests are 'S' (stress components), 'SP' (principal stresses, ascending, so ARRAY(3) is the maximum), 'LE' (logarithmic strain), 'PEEQ' (equivalent plastic strain) and 'SINV' (invariants, including Mises). Note that GETVRM is not available inside VUSDFLD.

Example 1: stiffness degradation at a stress limit

This drops the modulus once the maximum principal stress passes 30 (in your model’s stress units) and never lets it recover.

      SUBROUTINE USDFLD(FIELD,STATEV,PNEWDT,DIRECT,T,CELENT,
     1 TIME,DTIME,CMNAME,ORNAME,NFIELD,NSTATV,NOEL,NPT,
     2 LAYER,KSPT,KSTEP,KINC,NDI,NSHR,COORD,JMAC,JMATYP,
     3 MATLAYO,LACCFLA)
C
      INCLUDE 'ABA_PARAM.INC'
C
      CHARACTER*80 CMNAME,ORNAME
      CHARACTER*3  FLGRAY(15)
      DIMENSION FIELD(NFIELD),STATEV(NSTATV),DIRECT(3,3),
     1 T(3,3),TIME(2),COORD(*)
      DIMENSION ARRAY(15),JARRAY(15),JMAC(*),JMATYP(*)
C
      PARAMETER (SIGCR = 30.0D0)
C
C     Carry damage forward from the last increment
      DMG = STATEV(1)
C
C     Principal stresses at the start of the increment
      CALL GETVRM('SP',ARRAY,JARRAY,FLGRAY,JRCD,JMAC,JMATYP,
     1            MATLAYO,LACCFLA)
C
      IF (JRCD .EQ. 0) THEN
         SPMAX = ARRAY(3)
         IF (SPMAX .GT. SIGCR) DMG = 1.0D0
         STATEV(2) = SPMAX
      END IF
C
      STATEV(1) = DMG
      FIELD(1)  = DMG
C
      RETURN
      END

Request FV and SDV in your field output so you can see the field variable and the damage flag in the ODB. Without them you are debugging blind.

Example 2: functionally graded properties by coordinate

USDFLD receives COORD, so a property gradient through the thickness is a two-line subroutine. For a power-law gradation,

P(z) = Pbottom + (Ptop − Pbottom) · (z/h)n

you only need to return the normalized position, and let the material table hold the actual property values:

      PARAMETER (H = 10.0D0, PWR = 2.0D0)
      Z = COORD(2)
      FIELD(1) = (Z/H)**PWR

Define the elastic table with DEPENDENCIES=1 at field values 0 and 1 and Abaqus interpolates the rest. This is how most FGM models in Abaqus are built, and it avoids partitioning the geometry into dozens of layers.

Accuracy: USDFLD is an explicit scheme

This is the part that catches experienced users. The field variable you compute is based on the state at the start of the increment, and the material properties are then held constant across that increment. The dependence on the solution is explicit, or lagged.

Consequences worth planning for:

  • Results depend on increment size. A property change that happens over one large increment is applied one increment late. Always run a second analysis with smaller increments and compare.
  • A hard switch — full stiffness to near zero in one step — can throw the Newton–Raphson iterations off badly. Keep a residual stiffness of roughly 1–5% rather than going to zero, and consider smoothing the transition over a range of the field variable.
  • You can force a smaller increment from inside the subroutine by setting PNEWDT to a value below 1. Use it when the state is changing faster than the increment can follow.

If your model is large and you need to run the increment-size study properly, that is a good case for HPC resources rather than a laptop.

Common mistakes with USDFLD

  1. Missing *USER DEFINED FIELD. The single most common cause of “my subroutine does nothing”.
  2. Property table without DEPENDENCIES. The field variable is computed and then ignored.
  3. Expecting end-of-increment results from GETVRM. You get the previous converged state, by design.
  4. No *DEPVAR, or too few slots. Writing past NSTATV gives corrupted values or a crash.
  5. Treating field variables as memory. Irreversible damage must be stored in STATEV, not in FIELD.
  6. Using USDFLD in Abaqus/Explicit. Explicit needs VUSDFLD; the interfaces are not interchangeable.
  7. Print statements and file writes inside the routine. USDFLD is called at every integration point of every increment. I/O there will dominate your run time and can produce multi-gigabyte files.
  8. No FV or SDV output requested. You then cannot tell whether the subroutine ran at all.
  9. Expecting UMAT behaviour. If you need a new stress update law, USDFLD is the wrong tool.

Ready-to-use USDFLD models and courses

A working model is the fastest way to confirm your compiler, keywords and output requests are all correct before you adapt the code to your own problem. These include the CAE, INP, Fortran and ODB files:

For reference, the official documentation for this routine is Abaqus’ explicit solution dependence (USDFLD) page, and SIMULIA publishes a user subroutines summary listing every routine and its interface.

FAQ

Why is my USDFLD subroutine not being called?

In almost every case the material definition is missing *USER DEFINED FIELD, or the property table has no DEPENDENCIES column for the field variable to act on. Check both, then confirm the job is actually pointing at your Fortran file under Edit Job. Requesting FV and SDV output will tell you immediately whether the routine ran.

What is the difference between USDFLD and UMAT?

USDFLD changes a field variable that an existing Abaqus material model depends on. UMAT replaces the material model entirely: you compute the stress update and the consistent Jacobian yourself. USDFLD is far shorter and safer for convergence; UMAT is necessary only when no built-in model can represent your behaviour.

Can I use USDFLD in Abaqus/Explicit?

No. Abaqus/Explicit uses VUSDFLD, which is called for blocks of material points and receives stress and strain arrays directly instead of through GETVRM. The logic usually transfers, but the interface must be rewritten.

How do I make damage irreversible in USDFLD?

Store the damage value in a solution-dependent state variable, read it back at the start of each call, and only ever allow it to increase. Declare the slots with *DEPVAR. Field variables themselves have no memory between calls.

Does USDFLD affect accuracy or convergence?

Yes, because the dependence on the solution is explicit. Properties are evaluated from the state at the start of the increment and held fixed across it, so results depend on increment size. Run an increment-size sensitivity check, keep a small residual stiffness instead of dropping to zero, and use PNEWDT to cut the increment when the state changes quickly.

Conclusion

USDFLD is one of the highest-value subroutines in Abaqus relative to the effort it takes. Fifteen lines of Fortran, three keywords in the material definition, and you can model progressive degradation, graded materials, or condition-dependent properties without touching a Jacobian. The two things to respect are the setup checklist and the explicit nature of the scheme.

If you want a verified model to start from, browse the Abaqus subroutine models and courses in our shop. If your case is more involved — a custom degradation law, a validation study, or a report you need to defend — our CAE consulting and custom simulation services can build and verify it with you.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related  articles

Abaqus Integration Point vs Nodal Stress: Why Peaks Differ
Compare integration-point, element-nodal and unique-nodal stress in Abaqus, and check whether a contour peak depends on extrapolation, averaging or mesh size.
Abaqus Linear Perturbation vs General Step: What Actually Changes
Abaqus Linear Perturbation vs General Step: What Actually Changes

You run a frequency extraction after a static step and the frequencies come out the same whether or not the part had yielded. You run a static linear perturbation step and the reaction force is a fraction of what you

Harmonic Response Analysis in ANSYS Workbench: A Practical Guide
Harmonic Response Analysis in ANSYS Workbench: A Practical Guide
How to set up harmonic response analysis in ANSYS Workbench: modal link, frequency range, solution method, damping, loads and results, plus the common mistakes.

See more

Related  Products

See more