Installing Abaqus Subroutine
Installing Abaqus Subroutine
DOI: 10.13140/RG.2.2.18943.64164
Chiyun Zhong
KEYWORDS
ABAQUS, user subroutine, Fortran
1 | INTRODUCTION
ABAQUS provides users with an extensive selection of user subroutines for use in specific applications
that are not yet integrated into the standard ABAQUS functionalities. However, the steps in how to install
Abaqus user subroutine is not straightforward and not well-documented. With the update of ABAQUS
software package, some existing linking method from the internet no longer applies. In this document, a
detailed example and step-by-step instruction is provided on configuring the latest ABAQUS version (i.e.
ABAQUS 2020) to run user subroutines, expending on the instruction by Enos1 using previous versions of
Visual Studio and Parallel Studio Fortran Complier.
2 | PREREQUISITE
This section provides step-by-step instruction on configuring ABAQUS to run user subroutine:
1. The first step to configure ABAQUS is to find the path for the file ifortvar.bat, which under
default installation destination will be similar to:
• “C:\ProgramFiles(x86)\IntelSWTools\compilers_and_libraries_2020.0.166\windows
\bin\ifortvars.bat”
2. Go to Start Menu → Programs, find ABAQUS and right-click on the ABAQUS Command window.
Click on Properties. In the Target dialog after the /k symbol, add a blankspace, then the path to
ifortvars.bat between double quotation marks. The complete entry for Target will look similar
to:
• "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.166\windows
\bin\ifortvars.bat" intel64 vs2019 & C:\Windows\system32\cmd.exe /k”
3. Set system environment variable (Figure 3) by adding the paths of file vcvarsall.bat and
ifortvars.bat. Under default installation destination these paths will be similar to:
• “C:\ProgramFiles(x86)\IntelSWTools\compilers_and_libraries_2020.0.166\windows
\bin\ifortvars.bat” for ifortvars.bat, and
• “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary
\Build\vcvarsall.bat” for vcvarsall.bat
4. Create Batch files to start ABAQUS with Fortran compiler (Figure 4):
• Batch file to start Abaqus CAE: “
@"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.
166\windows\bin\ifortvars.bat" intel64 vs2019 & abq2020 cae
”
• Batch file to start Abaqus Command: “
cd "C:\Temp"
@"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.
166\windows\bin\ifotvars.bat" intel64 vs2020 & C:\Windows\system32\
cm d.exe /k
”
5. After completing Step 4, ABAQUS is ready to run user subroutines. To verify if the configuration
is working. Run the Batch file to start Abaqus Command, enter “abq2020 verify -user_std”, if
the command windows prints “Abaqus/Standard with user subroutines …PASS Continuing…”,
then the linking is successful.
4 ZHONG
REFERENCES
1. Enos Ryan (2020). Linking Abaqus 2020 & Intel Fortran Compiler 16.0 & Visual Studio 2015 in Windows
10 x64, Technical Report, DOI: 10.13140/RG.2.2.26845.56802