Linking ABAQUS With A FORTRAN Compiler For ABAQUS 2021 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Compiling ABAQUS with Fortran

Prerequisites

1. The user is assumed that they have installed ABAQUS 2021 already.

Microsoft Visual Studio 2019

1. The Community version of Visual Studio 2019 is the minimum requirement and can
be downloaded in the link below.

Visual Studio 2019 IDE - Programming Software for Windows (microsoft.com)

2. When installing Visual Studio 2019, the user must ensure that “Desktop
Development with C++” has been enabled alongside the main Visual Studio Core
Editor.

LaunchTech Solutions
Web: www.launchtech.ae Tel: +97125627399
Email: contact@launchtech.ae Address: P.O. Box 148410, Abu Dhabi, UAE
Intel OneAPI

1. The recent release of Intel OneAPI is free to install. The user should download and
install both the OneAPI Base and High-Performance Computing (HPC) toolkit for
the Fortran compiler. The OneAPI Base toolkit should be downloaded and installed
first as it is a prequisite to download and install the HPC toolkit.

2. The link for the OneAPI Base and HPC downloads can be found below.

Intel® oneAPI Toolkits

3. Due to bugs, it is recommended to use the online Installer to download both


OneAPI packs. Please ensure that when proceeding to download, the option
“Maybe next time. Please take me to download” is selected to automatically
download the setup files. For lack of inconvenience, use the images shown below
as a reference to successfully download both toolkits.

LaunchTech Solutions
Web: www.launchtech.ae Tel: +97125627399
Email: contact@launchtech.ae Address: P.O. Box 148410, Abu Dhabi, UAE
4. When downloading and installing both the Base and HPC toolkit, the following
libraries are sufficient:

For oneAPI Base Toolkit


- Intel oneAPI DPC++/C++ Compiler
- Intel oneAPI Threading Building Blocks
- Intel oneAPI DPC++ Library
- Intel Distribution for GDB

For oneAPI HPC Toolkit

- Intel oneAPI DPC++/C++ Compiler & Intel C++ Compiler Classic


- Intel Fortran Compiler (Beta) & Intel Fortran Compiler Classic

LaunchTech Solutions
Web: www.launchtech.ae Tel: +97125627399
Email: contact@launchtech.ae Address: P.O. Box 148410, Abu Dhabi, UAE
5. During the installation, ensure that you integrate Intel oneAPI with Visual Studio
2019 as the Integrated IDE.

Adding the ABAQUS Command and modifying the ABAQUS environment

1. The user should first go to the Intel oneAPI installation folder. A reference where
this can be found is shown below. Click the bar and type “cmd”. A command
prompt will appear. In the command prompt, type “setvars.bat” and run the
command. This will set the environment files ready in the system.

2. The user then needs to find the ABAQUS Commands folder found in <installation
directory>\SIMULIA\Commands. Since the guide is for the ABAQUS 2021 version,
the “abq2021.bat” will be edited. Right click and edit the file using notepad.

3. The following calls, Visual Studio’s “vcvarsall.bat” and OneAPI’s “vars.bat” need to
be inputted depending on where they are in the system. An example of the file
locations are shown below

@call "<installationdirectory>:\Microsoft Visual


Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
@call "<installationdirectory>:\Intel\oneAPI\compiler\latest\env\vars.bat" intel64 vs2019

LaunchTech Solutions
Web: www.launchtech.ae Tel: +97125627399
Email: contact@launchtech.ae Address: P.O. Box 148410, Abu Dhabi, UAE
The following image shows where the commands should be inputted within the
file.

4. Save the file and close the notepad file.

5. The ABAQUS environment file will then need to be edited. This can be found in
<installation directory>\SIMULIA\EstProducts\2021\win_b64\SMA\site and editing
the abaqus_v6.env file using notepad. The following commands need to be added
in the end of the file.

compile_fortran += ['/names:lowercase',]
link_sl='LINK /NODEFAULTLIB:LIBCMT.LIB /dll /def:%E /out:%U %F %A %L %B'

LaunchTech Solutions
Web: www.launchtech.ae Tel: +97125627399
Email: contact@launchtech.ae Address: P.O. Box 148410, Abu Dhabi, UAE
6. Save the file and close the notepad.

7. Finally, open a command prompt using administration privileges and type “abaqus
verify -user_std”. If the below message appears, ABAQUS user-subroutines has
been successfully configured with the compiler!

If there have been any issues faced during this guide or the verification fails, contact
support@launchtech.ae for further assistance.

LaunchTech Solutions
Web: www.launchtech.ae Tel: +97125627399
Email: contact@launchtech.ae Address: P.O. Box 148410, Abu Dhabi, UAE

You might also like