How to link/Compiling Abaqus with Fortran

your go-to guide for compiling Abaqus with Fortran on Windows. This article was done with Abaqus 2024 and Windows 10, but it should also work for any version of Abaqus after 2019 and for Windows 11 as well.

Linking and compiling Abaqus with Fortran is essential when using user-defined subroutines (e.g., UMAT, VUMAT, UEL). These subroutines allow you to customize material models, element behavior, or other aspects of the simulation.

 

step-by-step guide to linking and compiling Abaqus with Fortran

1. Prerequisites

  • Abaqus Installation: Ensure it is installed on your system.
  • Fortran Compiler: Install a compatible Fortran compiler (e.g., Intel Fortran Compiler, GNU Fortran).
  • Microsoft Visual Studio 2022 : Download Visual Studio from this link.

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

Microsoft Visual Studio 2022

  • Intel® Toolkits : 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 perquisite to download and install the HPC toolkit.

During the installation, ensure that you integrate Intel oneAPI with Visual Studio 2022 as the Integrated IDE.

2-Set Up the Environment

At the 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.

intel run

To configure and edit the abq2024.bat file in the ABAQUS Commands folder (located in <installation directory>\SIMULIA\Commands), follow these steps. This batch file is used to set up the environment and launch ABAQUS.

It allows you to customize the environment, such as specifying compilers, linking libraries, or setting up user subroutines.

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 ":\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
@call ":\Intel\oneAPI\compiler\latest\env\vars.bat" intel64 vs2022

Save this file and close it.

Find ABAQUS environment file in <installation directory>\SIMULIA\EstProducts\2024\win_b64\SMA\site and edit 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'

Save the file and close the notepad.

open a command prompt using administration privileges and type “abaqus verify -user_std”.

 

abaqus verify -user_std

]IF you have problem with this:
you can visit here  for How to install Abaqus 2020 with Intel oneAPI By Ever J. Barbero

 

Leave a Comment

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Shopping Cart
Scroll to Top