0% found this document useful (0 votes)
87 views4 pages

Installing Abaqus Subroutine

This document provides step-by-step instructions on how to configure ABAQUS 2020 to run Fortran user subroutines using Visual Studio 2019 and Intel Parallel Studio XE 2020 Fortran Compiler on Windows. It describes prerequisites including required software, setting environment variables to specify compiler paths, and creating batch files to launch ABAQUS with the Fortran compiler configured. When these steps are correctly followed, ABAQUS will be able to run user-defined subroutines.

Uploaded by

Myron Zhong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views4 pages

Installing Abaqus Subroutine

This document provides step-by-step instructions on how to configure ABAQUS 2020 to run Fortran user subroutines using Visual Studio 2019 and Intel Parallel Studio XE 2020 Fortran Compiler on Windows. It describes prerequisites including required software, setting environment variables to specify compiler paths, and creating batch files to launch ABAQUS with the Fortran compiler configured. When these steps are correctly followed, ABAQUS will be able to run user-defined subroutines.

Uploaded by

Myron Zhong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Chiyun Zhong Date: 25 August 2020

DOI: 10.13140/RG.2.2.18943.64164

Installing Abaqus User Subroutine: Linking ABAQUS 2020 –


Visual Studio 2019 – Parallel Studio XE 2020 Fortran Compiler

Chiyun Zhong

Ph.D. Candidate, Department of Civil and Summary


Mineral Engineering, University of
ABAQUS provides users with an extensive selection of user
Toronto, Toronto, ON, Canada.
Email: [email protected]
subroutines for use in specific applications that are not yet integrated
into the standard ABAQUS functionalities. The first step (and
probably one of the most difficult steps due to lack of standard
instructions) in using user subroutines in ABAQUS is installing them
correctly. This document provides detailed instructions on how to
configure ABAQUS 2020 to run user subroutines.

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

The following software is required to run ABAQUS with user subroutines:


1. Microsoft Visual Studio 2019 (can use previous versions up to 2015)
2. Intel Parallel Studio XE 2020 (i.e. Intel Fortran Compiler, can use previous versions up to 2016)
3. Dassault Systèmes ABAQUS 2020
In order to link the above three software, Visual Studio has to be installed prior to the Parallel Studio. As
shown in Figure 1, when installing Visual Studio make sure to select “Desktop development with C++” and
use default settings otherwise. Once the Visual Studio is installed, the next step is to install Intel Parallel
Studio to configure its Fortran Compiler with Visual Studio. Parallel Studio configures Visual Studio
automatically under default installation (Figure 2). ABAQUS 2020, with default installation, can be installed
prior to or after the installation of Visual Studio and Parallel Studio.
2 ZHONG

FIGURE 1 Installing Microsoft Visual Studio

FIGURE 2 Installing Intel Parallel Studio Compiler


Chiyun Zhong Date: 25 August 2020
3 | CONFIGURE ABAQUS TO INTEL FORTRAN

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

FIGURE 3 Configure System Environmental Variables

FIGURE 4 Create Batch Files to Start ABAQUS with Fortran Compiler

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

You might also like