Description
Abaqus HETVAL Tutorial | Internal Heat Generation & Thermal Modeling
This Abaqus HETVAL tutorial explains how to write HETVAL in Abaqus for internal material heating. The HETVAL subroutine Abaqus calls at material points returns heat generation and its derivative. An Abaqus HETVAL example and HETVAL Fortran code example demonstrate Abaqus HETVAL heat generation, Abaqus HETVAL curing kinetics and Abaqus HETVAL heat transfer.
Core HETVAL workflow
Abaqus HETVAL Tutorial — What Is HETVAL and When Do You Need It?
In this Abaqus HETVAL tutorial, HETVAL defines internal heat generation per unit volume at material points in Abaqus/Standard. It is useful when the heat source depends on temperature, time, field variables or reaction history. Unlike DFLUX, it is a material response rather than an applied distributed load.
How to write HETVAL in Abaqus?
Define a volumetric source and its temperature derivative, then activate the material heat generation option.
What is an Abaqus HETVAL example?
An insulated cube with a constant source gives a closed-form temperature history.
What does a HETVAL Fortran code example include?
The official interface, source calculation, derivative and optional history update.
How does Abaqus HETVAL heat generation work?
The HETVAL subroutine Abaqus calls supplies a source to the thermal residual.
Why use Abaqus HETVAL curing kinetics?
Reaction progress determines the rate of exothermic energy release.
How does Abaqus HETVAL heat transfer differ from UMATHT?
HETVAL supplies a source; UMATHT defines thermal energy and conductive flux.
How to Write HETVAL in Abaqus — Step-by-Step Implementation
1. Source law
2. Material
3. History
4. Fortran
5. Analysis
6. Verification
Abaqus/Standard and HETVAL Communication
The HETVAL subroutine Abaqus calls receives the current temperature and increment, time and state variables. HETVAL returns heat generation and its derivative for the implicit thermal equilibrium equations. Calls can repeat within an increment; never accumulate history in SAVE variables.
Inputs
Outputs
Solver
What Is Included with the Tutorial Package?
Abaqus HETVAL Subroutine & Fortran Programming Training
Internal volumetric heat generation.
Official interface, arguments and thermal source derivatives.
Constant, Arrhenius and autocatalytic sources.
Evaluate heat generation and its temperature derivative.
Introduce cure kinetics and thermal feedback.
Diagnose parameter, derivative and convergence errors.
Compare analytical targets and increment sensitivity.
HETVAL Fortran Code Examples & Abaqus Model Files
HETVAL Subroutine Interface — Inputs and Outputs
| Argument | Meaning |
|---|---|
| CMNAME | Material name, CHARACTER*80 |
| TEMP(1:2) | Current temperature and temperature increment |
| TIME(1:2) | Step time and total time at end of increment |
| DTIME | Time increment |
| STATEV(*) | Solution-dependent state variables |
| FLUX(1) | Volumetric heat generation rate |
| FLUX(2) | Temperature derivative of heat generation |
| PREDEF(*) / DPRED(*) | Predefined field values and increments |
When learning how to write HETVAL in Abaqus, note that HETVAL does not directly receive PROPS, COORDS or element numbers. Use material name branches or predefined fields where appropriate.
Mathematical Framework — Core Equations
Energy balance
Fourier law
Source
Jacobian
Arrhenius
First order
Nth order
Autocatalytic
Reaction heat
Backward Euler
Latent heat
Energy
Abaqus HETVAL Heat Generation — FLUX(1)
In Abaqus HETVAL heat generation, positive FLUX(1) adds heat. In SI units the source is W/m³, not W/m². A constant source requires a zero temperature derivative. For a reaction, multiply the mass-specific enthalpy by density and reaction rate.
Constant source
\[q_v=q_0\]
Positive source adds heat.
Reaction source
\[q_v=\rho H_r\dot\alpha\]
Mass-specific reaction enthalpy.
Generated energy
\[Q=q_0Vt\]
Uniform constant source.
Temperature-Dependent Heat Generation — FLUX(2)
For temperature-dependent Abaqus HETVAL heat transfer, return b as FLUX(2) for a linear source q = q0 + b(T − Tref). For an Arrhenius source with fixed reaction progress, the derivative is q Ea/(R Tabs²). When progress depends on temperature, include that dependence in the algorithmic derivative.
\[\frac{dq_v}{dT}=\frac{\partial q_v}{\partial T}+\frac{\partial q_v}{\partial\alpha}\frac{d\alpha}{dT}\]
Arrhenius Reaction Kinetics
For Abaqus HETVAL curing kinetics, use absolute temperature in the exponential. A has units s⁻¹ for a dimensionless first-order conversion law; Ea and R must use compatible molar energy units. For Celsius-based models use Tabs = TEMP(1)+273.15.
Absolute temperature
\[T_K=T_C+273.15\]
For Celsius input.
Rate constant
\[k_r=Ae^{-E_a/(RT_K)}\]
Use consistent molar units.
Temperature derivative
\[k_r\frac{E_a}{RT_K^2}\]
Derivative of rate constant.
Solution-Dependent State Variables — STATEV
The reaction-based HETVAL Fortran code example stores degree of cure in STATEV(1). Initialize it consistently, and update from the incoming state rather than from a persistent local variable. In coupled analyses other material routines may update STATEV before HETVAL; reserve separate indices to avoid overwriting history.
Initial state
History update
Iteration safety
First-Order and Nth-Order Reaction Models
At constant temperature, first-order conversion has an exact solution. Backward Euler gives a bounded update for nonnegative rate and initial conversion in [0,1]. Nth-order kinetics may require a local nonlinear solve.
First order
\[\dot\alpha=k_r(1-\alpha)\]
Analytical isothermal reference.
Nth order
\[\dot\alpha=k_r(1-\alpha)^n\]
May require local nonlinear solution.
Backward Euler
\[\alpha_{n+1}=\frac{\alpha_n+\Delta t k_r}{1+\Delta t k_r}\]
Bounded first-order update.
\[\alpha(t)=1-(1-\alpha_0)e^{-k_rt}\]\[\alpha_{n+1}=\frac{\alpha_n+\Delta t k_r}{1+\Delta t k_r}\]
Abaqus HETVAL Curing Kinetics — Kamal–Sourour Model
The autocatalytic model combines two Arrhenius rate constants. The first term permits initiation at zero conversion; the second captures acceleration with conversion. Fit coefficients to calorimetry data, check units, and validate against independent temperature histories.
Autocatalytic law
\[\dot\alpha=(k_1+k_2\alpha^m)(1-\alpha)^n\]
Calibrate to reaction data.
Rate constants
\[k_i=A_i e^{-E_i/(RT_K)}\]
Two Arrhenius terms.
Reaction heat
\[q_v=\rho H_r\dot\alpha\]
Positive enthalpy denotes heat release.
Abaqus HETVAL Example — Insulated Cube Benchmark
| Parameter | SI value |
|---|---|
| Dimensions | 0.01 × 0.01 × 0.01 m |
| Density | 1200 kg/m³ |
| Specific heat | 1000 J/(kg K) |
| Conductivity | 0.2 W/(m K) |
| Source | 1,000,000 W/m³ |
| Initial temperature | 20 °C |
| Duration | 60 s |
| Generated energy | 60 J |
| Final temperature | 70 °C |
| Time (s) | Temperature (°C) |
|---|---|
| 0 | 20.000 |
| 10 | 28.333 |
| 20 | 36.667 |
| 30 | 45.000 |
| 40 | 53.333 |
| 50 | 61.667 |
| 60 | 70.000 |
\[T(t)=20+\frac{10^6}{1200\times1000}t\]
In this Abaqus HETVAL example, all faces are insulated and initial temperature is uniform. These are analytical reference values, not Abaqus output.
HETVAL Fortran Code Example — Constant and Reaction Sources
The following HETVAL Fortran code example implements the constant-source benchmark in fixed-form Fortran:
SUBROUTINE HETVAL(CMNAME,TEMP,TIME,DTIME,STATEV,
1 FLUX,PREDEF,DPRED)
INCLUDE 'ABA_PARAM.INC'
CHARACTER*80 CMNAME
DIMENSION TEMP(2),TIME(2),STATEV(*),FLUX(2),
1 PREDEF(*),DPRED(*)
FLUX(1)=1.D6
FLUX(2)=0.D0
RETURN
END
Alternative body for a first-order cure law, using backward Euler and its consistent derivative. Allocate one state variable and declare the following scalars DOUBLE PRECISION before executable statements. Illustrative parameters use SI units and Celsius input.
C Declarations (before executable statements)
DOUBLE PRECISION TK,AK,DK,AN,DEN,RATE,RHO,HR
DOUBLE PRECISION AA,EA,RG
C Executable body (replace constant-source assignments)
AA=1.D5
EA=6.D4
RG=8.314D0
RHO=1200.D0
HR=2.D5
TK=TEMP(1)+273.15D0
AK=AA*EXP(-EA/(RG*TK))
DK=AK*EA/(RG*TK*TK)
AN=STATEV(1)
DEN=1.D0+DTIME*AK
RATE=AK*(1.D0-AN)/DEN
STATEV(1)=AN+DTIME*RATE
FLUX(1)=RHO*HR*RATE
FLUX(2)=RHO*HR*(1.D0-AN)*DK/(DEN*DEN)
Use physically valid absolute temperatures and initial conversion. Compile and verify before production use.
Phase Transformation and Latent Heat
A transformation fraction ξ can drive a signed latent heat source. Choose the sign according to heat release or absorption. Do not count latent heat twice if it is already included in the thermal constitutive model.
Phase fraction
\[0\leq\xi\leq1\]
Define the transformation history.
Latent heat
\[q_v=\rho L\dot\xi\]
Choose sign for heat release or absorption.
Integrated energy
\[Q/V=\rho L\Delta\xi\]
Check against the prescribed transformation.
Abaqus Material Definition and Input File
*MATERIAL, NAME=REACTIVE
*DENSITY
1200.
*CONDUCTIVITY
0.2
*SPECIFIC HEAT
1000.
*HEAT GENERATION
** Add for the reaction example only:
** *DEPVAR
** 1
** Use DC3D8 elements for the uncoupled thermal benchmark.
** Define nodes, elements, section and initial temperature.
*STEP, INC=1000
*HEAT TRANSFER, END=PERIOD
0.1, 60., 1.E-6, 1.
*OUTPUT, FIELD
*NODE OUTPUT
NT
*ELEMENT OUTPUT
HFL
*END STEP
This Abaqus HETVAL example includes an input-file fragment, not a complete runnable input deck. For cure output request SDV and activate DEPVAR. Attach the Fortran file to the job.
Implicit Solution Procedure — Thermal Jacobian and Convergence
Abaqus/Standard iterates on the thermal residual. A consistent FLUX(2) improves Newton convergence for temperature-sensitive heat generation. A strongly exothermic reaction may require smaller increments to resolve the thermal peak even when equilibrium converges.
Thermal Jacobian
\[\mathrm{FLUX}(2)=dq_v/dT\]
Consistent with discrete state update.
Finite difference
\[D_T\approx[q_v(T+h)-q_v(T-h)]/(2h)\]
Hold incoming history fixed.
Increment refinement
\[\Delta t_j=\Delta t_0/2^j\]
Check thermal and kinetic accuracy.
Debugging and Troubleshooting
| Symptom | Check |
|---|---|
| No heating | Material heat generation activation and job user file |
| Wrong magnitude | Volumetric units, density and enthalpy |
| Nonconvergence | FLUX(2), reaction stiffness and increment size |
| Conversion outside bounds | Integration scheme and initial state |
| Repeated history growth | Avoid persistent state outside STATEV |
Analytical and Numerical Verification
To verify the Abaqus HETVAL example, compare the constant-source temperature with the analytical curve at several times. For cure kinetics, compare against the isothermal exact solution and perform a time increment refinement study. Check FLUX(2) by centered finite differences while holding incoming state and DTIME fixed.
| Time (s) | Analytical temperature (°C) |
|---|---|
| 0 | 20.000 |
| 10 | 28.333 |
| 20 | 36.667 |
| 30 | 45.000 |
| 40 | 53.333 |
| 50 | 61.667 |
| 60 | 70.000 |
Temperature, Heat Generation and State Variable Post-Processing
Use NT for nodal temperature, HFL for conductive heat flux and SDV for reaction progress. HFL is not the HETVAL volumetric source. Reconstruct the source from the implemented law or store it in a dedicated state variable. Compare integrated reaction heat with the enthalpy times conversion change.
NT11
SDV1
HFL
Energy verification
HETVAL vs. DFLUX vs. VHETVAL vs. UMATHT
| Routine | Solver | Role |
|---|---|---|
| HETVAL | Standard | Internal source and derivative |
| DFLUX | Standard | Applied distributed flux |
| VHETVAL | Explicit | Internal heat generation |
| UMATHT | Standard | Thermal constitutive response |
Practical Learning Sequence
Module 1
Module 2
Module 3
Module 4
Module 5
Module 6
Learning Outcomes and Advanced Engineering Applications
Apply the Abaqus HETVAL tutorial to develop material-level source laws for polymer curing, composite manufacturing and phase transformations. Distinguish externally applied heat from internal reaction heat. Assess convergence, thermal feedback and energy conservation before extending to production models.
Composite curing
Reactive materials
Phase transformation
Thermomechanical modeling
Frequently Asked Questions
Does HETVAL work in Explicit?
Use VHETVAL for Abaqus/Explicit.
Can HETVAL model curing?
Yes. Abaqus HETVAL curing kinetics can be modeled with a calibrated reaction law and state variables.
Is FLUX(2) required?
Assign the derivative consistently, including zero for a constant source.
Can I use PROPS?
Not directly in the HETVAL interface.
Can I combine HETVAL and DFLUX?
Yes, if internal and applied heat represent distinct physical contributions.
How can material parameters be supplied to HETVAL?
Use calibrated constants, predefined fields or another appropriate material-data strategy.
Is STATEV required?
Not for a constant source; reaction progress generally requires history storage.
Related Abaqus User Subroutine Resources
UMAT Tutorial
VUMAT Tutorial
UMATHT Tutorial
Technical Reference
Custom Bundles
Related AbaqusLab tutorials: DFLUX, VDFLUX, UMATHT, USDFLD and VHETVAL. Insert verified product URLs before publication.
When learning how to write HETVAL in Abaqus, consult the HETVAL interface documentation for your installed Abaqus release.











Reviews
There are no reviews yet.