Description
Abaqus UEL Tutorial | User Elements & Fortran Subroutine
This Abaqus UEL tutorial provides a comprehensive framework for developing custom finite elements when standard Abaqus elements cannot adequately represent complex governing equations, physical phenomena, or degrees of freedom. By exploring the UEL subroutine Abaqus interface, you will learn how to write UEL in Abaqus and translate mathematical formulations into executable Fortran code. The tutorial establishes the theoretical foundations of Abaqus UEL finite element formulation, including weak forms, shape functions, isoparametric mapping, and numerical integration, before demonstrating how to construct the Abaqus UEL stiffness matrix and element residual vector. These concepts are brought together through a practical Abaqus UEL example, supported by a detailed UEL Fortran code example that connects theoretical derivations with numerical implementation. The resulting workflow enables you to develop, debug, and verify an Abaqus user-defined element for advanced engineering simulations and computational mechanics research.
Abaqus UEL Tutorial — What Is UEL and When Do You Need It?
UEL (User Element) is a Fortran subroutine in Abaqus/Standard that enables the development of custom finite elements when built-in elements cannot adequately represent specific governing equations, coupled fields, or degrees of freedom. This Abaqus UEL tutorial explains the UEL subroutine Abaqus interface and demonstrates how to write UEL in Abaqus by connecting mathematical theory with numerical implementation. Through a systematic Abaqus UEL finite element formulation, you learn to calculate the Abaqus UEL stiffness matrix and residual vector, while a practical Abaqus UEL example and corresponding UEL Fortran code example demonstrate how to implement, debug, and verify an Abaqus user-defined element.
How to write UEL in Abaqus?
Derive the weak form, define shape functions and degrees of freedom, calculate the element residual and tangent stiffness matrix, implement the equations in Fortran, and verify the numerical results.
What is an Abaqus UEL example?
A two-node linear elastic bar element provides an analytical benchmark for verifying element stiffness, displacement, stress, and reaction forces.
What are AMATRX and RHS in Abaqus UEL?
For conventional static analysis, AMATRX contains the element tangent stiffness matrix, while RHS represents the residual vector calculated from external minus internal nodal forces.
What is the difference between UEL, UMAT, and VUEL?
UEL defines custom finite element formulations in Abaqus/Standard, UMAT defines material constitutive behavior, and VUEL implements user-defined elements in Abaqus/Explicit.
How do you verify an Abaqus user-defined element?
Verification involves analytical benchmarks, single-element tests, patch tests, tangent stiffness checks, and comparison with equivalent built-in Abaqus elements.
How to Write UEL in Abaqus — Step-by-Step Implementation
1. Define governing equations
Identify unknown fields, boundary conditions, constitutive response and the weak form.
2. Abaqus UEL finite element formulation
Choose shape functions, element topology and nodal degrees of freedom.
3. Numerical integration
Evaluate the Jacobian, gradients and quadrature weights at integration points.
4. Abaqus UEL stiffness matrix
Derive the residual and consistent tangent with the correct sign convention.
5. UEL Fortran code example
Map the element equations to RHS, AMATRX, SVARS and procedure flags.
6. Verify the Abaqus UEL example
Compare analytical results, reference elements and mesh convergence.
Abaqus/Standard–UEL Communication
Abaqus/Standard
Passes nodal unknowns, coordinates, properties, time and procedure flags.
User element (UEL)
Evaluates requested element residual, matrix, energy and state quantities.
Implicit solution
Assembles element contributions, solves global equations and checks equilibrium.
What Is Included with the Abaqus UEL Tutorial Package?
The Abaqus UEL tutorial combines finite element theory, Fortran programming, practical user-element implementation and numerical verification. Through step-by-step video training and downloadable resources, you learn how to write UEL in Abaqus, develop the Abaqus UEL stiffness matrix and residual vector, and implement custom finite element formulations in Abaqus/Standard.
Abaqus UEL Subroutine & Fortran Programming Training
UEL Fortran Code Examples & Abaqus Model Files
UEL Subroutine Abaqus/Standard Interface — Inputs and Outputs
The UEL subroutine Abaqus/Standard invokes must respond to the current procedure and requested calculation. Array dimensions are supplied by the solver; do not assume all calls request both residual and stiffness.
| Variable | Role | Implementation notes |
|---|---|---|
| RHS | Output | Residual columns; respect NRHS and MLVARX. |
| AMATRX | Output | Requested element matrix; fill all required entries. |
| SVARS | Input/output | Element history variables; follow increment and procedure semantics. |
| ENERGY | Input/output | Element energy quantities when applicable. |
| U, DU | Input | Current nodal solution and increments. |
| V, A | Input | Velocity and acceleration for applicable dynamic procedures. |
| COORDS | Input | Original nodal coordinates. |
| PROPS, JPROPS | Input | Real and integer element properties. |
| NDOFEL, NNODE | Input | Element DOF count and node count. |
| LFLAGS | Input | Procedure and calculation request flags. |
| TIME, DTIME | Input | Time and increment size. |
| PNEWDT | Input/output | Suggested increment scaling where supported. |
| JTYPE, JELEM | Input | Element type and element number. |
| NDLOAD, JDLTYP, ADLMAG | Input | Distributed load information where applicable. |
Abaqus UEL Finite Element Formulation — Core Equations
For a small-strain displacement-based structural element, the weak form equates internal and external virtual work. This Abaqus UEL tutorial connects each mathematical operation to the element routine. Other coupled-field or finite-strain formulations require their own residual and linearization.
Finite Element Interpolation
\mathbf u^h=\sum_{i=1}^{n}N_i\mathbf u_i=\mathbf N\mathbf d
\]
Shape functions interpolate nodal unknowns.
Isoparametric Mapping
\mathbf x=\sum_{i=1}^{n}N_i(\boldsymbol\xi)\mathbf x_i
\]
Map natural to physical coordinates.
Jacobian Matrix
\mathbf J=\frac{\partial\mathbf x}{\partial\boldsymbol\xi}
\]
Coordinate transformation.
Strain–Displacement Relationship
\boldsymbol\varepsilon=\mathbf B\mathbf d
\]
Small-strain kinematics.
Element Stiffness Matrix
\mathbf K_e=\int_{\Omega_e}\mathbf B^T\mathbf D\mathbf B\,d\Omega
\]
Linear elastic stiffness, AMATRX.
Internal Force Vector
\mathbf f_{\mathrm{int}}=\int_{\Omega_e}\mathbf B^T\boldsymbol\sigma\,d\Omega
\]
Internal nodal forces.
Element Residual Vector
\mathbf R_e=\mathbf f_{\mathrm{ext}}-\mathbf f_{\mathrm{int}}
\]
Static residual, RHS.
Consistent Element Tangent
\mathbf K_t=-\frac{\partial\mathbf R_e}{\partial\mathbf d}
\]
Consistent nonlinear linearization.
Gauss Numerical Integration
\mathbf K_e\approx\sum_{g=1}^{n_g}w_g\mathbf B_g^T\mathbf D_g\mathbf B_g|\det\mathbf J_g|
\]
Include thickness or area where appropriate; reject invalid mappings.
Newton–Raphson Iteration
\mathbf K_t^{(i)}\Delta\mathbf d^{(i)}=\mathbf R^{(i)}
\]
Assembled global equilibrium iteration.
Shape Functions and Isoparametric Element Mapping
An Abaqus user-defined element requires a clearly defined local node order. For a bilinear quadrilateral, use the natural-coordinate corners in counterclockwise order. Shape functions must reproduce constants and the appropriate polynomial fields.
Four-node quadrilateral
N_i(\xi,\eta)=\tfrac14(1+\xi_i\xi)(1+\eta_i\eta)
\]
Corner coordinates are ±1.
Partition of unity
\sum_i N_i=1
\]
A basic interpolation consistency check.
Jacobian Matrix and Numerical Integration
For the convention J = ∂x/∂ξ, physical gradients follow the inverse transpose. Check determinant sign at every quadrature point. For a regular bilinear quadrilateral, a 2 × 2 Gauss rule is a common full-integration starting point; distorted elements and nonlinear laws may require additional care.
Physical gradients
\nabla_x N_i=\mathbf J^{-T}\nabla_{\xi}N_i
\]
Transform shape-function derivatives.
Two-point Gauss rule
\xi_g=\pm 1/\sqrt{3},\quad w_g=1
\]
Tensor products yield the standard 2 × 2 rule.
Abaqus UEL Stiffness Matrix and Residual Vector
The Abaqus UEL stiffness matrix is not the UMAT material tangent. The material tangent D contributes to the element matrix through B and integration weights. For a nonlinear element, geometric terms or load linearization may also be needed. A UEL subroutine Abaqus/Standard calls for a static tangent must return the negative derivative of the residual with respect to the element unknowns.
Abaqus UEL Example — Two-Node Linear Elastic Bar Element
This Abaqus UEL example uses a straight one-dimensional bar of length L, constant area A and Young’s modulus E. Node 1 is fixed and node 2 receives a nodal force P. The element has one axial displacement DOF per node.
Bar shape functions
N_1=\frac{1-\xi}{2},\qquad N_2=\frac{1+\xi}{2}
\]
Natural coordinates −1 to +1.
Strain–displacement matrix
\mathbf B=\frac1L\begin{bmatrix}-1&1\end{bmatrix}
\]
Constant axial strain.
Bar stiffness matrix
\mathbf K_e=\frac{EA}{L}\begin{bmatrix}1&-1\\-1&1\end{bmatrix}
\]
Analytical stiffness.
Bar residual
\mathbf R_e=\mathbf f_{\mathrm{ext}}-\mathbf K_e\mathbf d
\]
For nodal loads applied globally, UEL returns only the internal contribution.
Analytical displacement and stress
u_2=\frac{PL}{EA},\qquad \sigma=\frac PA
\]
Reference solution.
Strain energy
W=\frac12\mathbf d^T\mathbf K_e\mathbf d=\frac{P^2L}{2EA}
\]
Energy benchmark.
UEL Fortran Code Example — Element Implementation
The following UEL Fortran code example is a fixed-form calculation kernel for the ordinary static bar case with two DOFs, one RHS column, positive length and no element-distributed loads. Insert it into the official UEL interface and implement the relevant LFLAGS branches before compiling. It is not a standalone general-purpose subroutine.
C Static two-node bar kernel (inside UEL)
C PROPS(1)=E, PROPS(2)=AREA; x2 > x1
EL = COORDS(1,2)-COORDS(1,1)
EK = PROPS(1)*PROPS(2)/EL
AMATRX(1,1) = EK
AMATRX(1,2) = -EK
AMATRX(2,1) = -EK
AMATRX(2,2) = EK
RHS(1,1) = -EK*(U(1)-U(2))
RHS(2,1) = -EK*(U(2)-U(1))
C Elastic strain energy, when requested
ENERGY(2) = 0.5D0*EK*(U(2)-U(1))**2
Before evaluating this kernel, validate dimensions, properties and geometry; initialize requested output arrays; distinguish stiffness-only and residual-only calls; and preserve committed history for nonlinear extensions. The nodal force in the input file is assembled by Abaqus, so adding it again to RHS would double-count it.
Abaqus User-Defined Element — Degrees of Freedom and Connectivity
The element type defines its number of nodes, coordinate dimensions, properties and active DOFs. For this bar, each node uses DOF 1. The UEL subroutine Abaqus/Standard calls receives nodal unknowns in the element ordering. A mismatch between connectivity and array indexing can produce a singular or incorrect stiffness matrix.
Abaqus Input File — USER ELEMENT and UEL PROPERTY
The following illustrative input deck matches the static bar kernel. Use consistent N–mm–MPa units. The element uses two real properties and no history variables.
*Heading
Two-node UEL bar benchmark
*Node
1, 0.
2, 100.
*User Element, Type=U1, Nodes=2, Coordinates=1, Properties=2
1
*Element, Type=U1, Elset=BAR
1, 1, 2
*UEL Property, Elset=BAR
210000., 10.
*Nset, Nset=TIP
2
*Boundary
1, 1, 1, 0.
*Step, Name=AXIAL, Nlgeom=NO
*Static
1., 1.
*Cload
2, 1, 1000.
*Output, History
*Node Output, Nset=TIP
U, RF
*End Step
Expected displacement at node 2 is approximately 0.047619 mm, axial stress is 100 MPa and the support reaction is −1000 N. The example is analytical and has not been executed in Abaqus.
Nonlinear Element Formulation and Newton–Raphson Iteration
For nonlinear Abaqus UEL finite element formulation, evaluate the residual at the current trial solution and derive its consistent tangent. Store history according to the increment semantics, rather than accumulating irreversible changes on every equilibrium iteration. Use the Abaqus UEL stiffness matrix directional check to isolate linearization errors. Finite-strain elements need a consistent choice of configuration, stress measure and geometric stiffness.
Abaqus UEL Post-Processing and Visualization
Nodal displacement and reaction output can be used for basic verification. Custom integration-point quantities are not automatically available as standard element stress contours. Plan an explicit output strategy for SVARS or external data, and use an appropriate visualization mesh if needed. Overlay elements must not introduce unintended stiffness or mass; UVARM is not a direct universal output interface for UEL.
Abaqus UEL Debugging — Compilation, Runtime and Numerical Problems
Compilation or linking
Check the supported compiler, fixed/free-form syntax and official interface.
Singular matrix
Check boundary conditions, DOF numbering, rigid modes and zero-energy modes.
Wrong displacement
Compare units, element properties, load sign and connectivity.
Negative Jacobian
Check node ordering and element geometry.
Poor convergence
Compare the Abaqus UEL stiffness matrix with numerical residual derivatives.
History corruption
Check SVARS indexing and trial versus committed updates.
| Symptom | Likely cause | First check |
|---|---|---|
| Job aborts | Array or interface mismatch | Dimensions and compiler diagnostics |
| Zero residual | Incorrect request handling | LFLAGS and RHS initialization |
| Wrong reaction | Load double counting | Global nodal loads vs element loads |
| Mesh-dependent error | Integration or interpolation | Patch test and refinement |
| Nonphysical energy | Inconsistent residual or history | Energy and work balance |
Abaqus UEL Verification — Patch Tests and Benchmarks
Single-element benchmark
Compare the Abaqus UEL example with closed-form displacement and reaction.
Rigid-body motion
Check zero strain and internal force for admissible rigid motion.
Patch test
Check constant strain reproduction for an appropriate element patch.
Tangent verification
Perturb DOFs and compare the residual derivative.
Mesh convergence
Refine a benchmark mesh and measure error.
Energy and reference comparison
Compare equivalent built-in elements and strain energy.
Verification checks whether the equations are solved correctly; validation assesses whether the model represents physical observations. For the bar, compare nodal displacement, reaction and energy before progressing to a two-dimensional element.
Abaqus UEL Tutorial — Practical Learning Sequence
| Stage | Learning objective | Verification target |
|---|---|---|
| 1 | Weak form | Identify residual and boundary terms |
| 2 | Interpolation | Partition of unity |
| 3 | Integration | Jacobian and quadrature |
| 4 | Fortran | Correct matrix and RHS |
| 5 | Abaqus input | Correct DOFs and connectivity |
| 6 | Debugging | Isolate numerical and interface errors |
| 7 | Verification | Analytical and reference solutions |
What You Can Learn from This Abaqus UEL Tutorial
Element formulation
Translate governing equations into discrete equations.
Fortran programming
Map arrays and procedure requests.
Numerical integration
Evaluate gradients and quadrature consistently.
Implicit solver interaction
Understand residual and tangent assembly.
Troubleshooting
Diagnose singularities and convergence.
Independent verification
Build reproducible benchmarks.
Engineering Applications of Abaqus UEL — Advanced Finite Element Development
Phase-field fracture
Coupled displacement and phase-field residuals.
Gradient damage
Additional field equations and length scales.
Cohesive elements
Custom traction–separation formulations.
Multiphysics
Coupled thermal, diffusion or mechanical fields.
Peridynamics
Nonlocal interactions with appropriate discretization.
Advanced research
Custom interpolation and enriched formulations.
These are potential extensions of the Abaqus UEL finite element formulation workflow, not a claim that advanced examples are included in the fundamentals package.
UEL vs. UMAT, VUEL and UELMAT
| Interface | Solver | Responsibility |
|---|---|---|
| UEL | Standard | Custom element equations |
| UMAT | Standard | Material-point stress and tangent |
| VUEL | Explicit | Custom explicit element contributions |
| UELMAT | Standard | Custom elements with access to supported Abaqus material routines |
Who Is This Abaqus UEL Tutorial For?
Researchers, postgraduate students, finite element developers and engineers who need custom element equations. Familiarity with basic finite element theory, Abaqus input files and Fortran is helpful.
Abaqus UEL Tutorial — Frequently Asked Questions
What is UEL in Abaqus?
A user-element interface in Abaqus/Standard for custom element-level equations.
How to write UEL in Abaqus for a first model?
Start with a two-node bar, derive stiffness and residual, map them to the interface and compare against the analytical solution.
What does the UEL subroutine Abaqus/Standard calls return?
Requested residual, element matrix and applicable state and energy quantities, depending on procedure flags.
What is AMATRX in an Abaqus UEL example?
The requested element matrix; for ordinary static analysis, the tangent stiffness.
What is RHS in UEL?
For ordinary nonlinear static equilibrium, external minus internal element force.
How is the Abaqus UEL stiffness matrix calculated?
Integrate B-transpose D B for a linear elastic displacement element, adding other terms as required by the formulation.
How does a UEL Fortran code example use shape functions?
Evaluate interpolation and derivatives at quadrature points and transform them to physical coordinates.
How is numerical integration performed?
Sum weighted integration-point contributions with the mapping determinant and appropriate geometric factors.
How do I define an Abaqus user-defined element?
Use USER ELEMENT, ELEMENT and UEL PROPERTY keywords with matching node order and DOFs.
How do I visualize UEL results?
Use nodal output and a suitable custom strategy for element quantities.
How do I debug UEL?
Start with a small model, check arrays, signs, mapping and tangent consistency.
How do I verify an Abaqus UEL example?
Use analytical solutions, patch tests, reference elements and refinement studies.
Can UEL model phase-field fracture?
Yes, with appropriate coupled residuals, tangents, state variables and boundary conditions.
What is the difference between UEL and UMAT?
UEL defines element equations; UMAT defines material response.
What is the difference between UEL and VUEL?
UEL is implicit Standard; VUEL is Explicit and has different calculation requirements.
What is the difference between UEL and UELMAT?
UELMAT offers access to supported built-in material routines within custom element calculations.
Related Abaqus User Subroutine and Finite Element Resources
UMAT Fundamentals
Material constitutive modeling. Explore Tutorial →
VUMAT Fundamentals
Explicit material modeling. Explore Tutorial →
Peridynamics
Nonlocal finite element applications. Explore Tutorial →
MATLAB Automation
Numerical modeling and automation. Explore Tutorial →











Reviews
There are no reviews yet.