Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
13 views

LinkingAbaqus2024InteloneAPIFortranCompilerVisualStudioinWindows

This technical report provides a comprehensive guide on installing and linking Abaqus 2024 with the Intel oneAPI Fortran Compiler and Visual Studio on Windows. It covers software installation steps, setting up environment variables, linking procedures, and troubleshooting tips. The document aims to assist users in successfully integrating these tools for enhanced computational capabilities in Abaqus.

Uploaded by

udaykumar8995
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

LinkingAbaqus2024InteloneAPIFortranCompilerVisualStudioinWindows

This technical report provides a comprehensive guide on installing and linking Abaqus 2024 with the Intel oneAPI Fortran Compiler and Visual Studio on Windows. It covers software installation steps, setting up environment variables, linking procedures, and troubleshooting tips. The document aims to assist users in successfully integrating these tools for enhanced computational capabilities in Abaqus.

Uploaded by

udaykumar8995
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/378006065

Install Abaqus 2024 User-Subroutines: How to Link Abaqus 2024 with


Intel oneAPI Fortran Compiler & Visual Studio

Technical Report · February 2024


DOI: 10.13140/RG.2.2.15382.11843

CITATIONS READS

0 5,701

1 author:

Ryan Enos
Purdue University West Lafayette
21 PUBLICATIONS 53 CITATIONS

SEE PROFILE

All content following this page was uploaded by Ryan Enos on 06 February 2024.

The user has requested enhancement of the downloaded file.


Linking Abaqus 2024 & Intel oneAPI &
Visual Studio in Microsoft Windows

Ryan Enos
February 2, 2024

1
Contents
1. Software Installation
i. Visual Studio 2019 (Must be installed before oneAPI)
ii. Intel® oneAPI HPC Toolkit (Intel Fortran Compiler 2021)
iii. Abaqus 2024 with CAA API component (Can be installed at any time)
2. Windows Environment Variables
i. "vars.bat“
ii. "vcvars64.bat"
3. Link Abaqus + Fortran (& C++) Compiler
i. Link using Batch files
ii. Link using default shortcuts (alternative to Batch files)
iii. Verification
4. Troubleshooting

2
1. Software Installation
i. Visual Studio 2019 (or newer)
• Visual Studio 2019 Must be installed before Parallel Studio
• Required components: “Desktop development with C++”

Note
• The components can be
modified after installation

Free download
https://visualstudio.microsoft.com/tha
nk-you-downloading-visual-
studio/?sku=Community&rel=16&src=myvs&
utm_medium=microsoft&utm_source=my.vis
ualstudio.com&utm_campaign=download&ut
m_content=vs+community+2019#

3
1. Software Installation
ii. Intel Fortran Compiler 2021 (or newer) Download
https://www.intel.com/content/www/us/en/developer/articles/news
• Intel® Parallel Studio has been replaced with oneAPI /free-intel-software-developer-tools.html

• Intel® oneAPI HPC Toolkit (Base kit + HPC kit)


• Default installation should work, but uses a lot of space
• For reduced installation size, install only:
• Intel C++ Compiler
• Intel Fortran Compiler
• Intel Threading Building Blocks
• Integrate with IDE: Microsoft Visual Studio* 2019

Note
• The components installed for this test are
listed in the following pages.
• The 3 components listed above (and
highlighted in orange on the following pages)
should be the only necessary components,
but this has not been verified on the author’s
system.
• The components can be modified after
installation

4
Intel oneAPI Base Toolkit components

5
Intel oneAPI HPC Toolkit components

6
1. Software Installation
iii. Abaqus 2024
• Ensure CAA API component is included
• Abaqus can be installed at any point in the process
• To verify whether the CAA API component is
installed, run the Abaqus software manager, which
should be located in:
C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Dassault Systemes SIMULIA
Established Products 2024\Tools

Note: The Abaqus installation can not


be modified. If a change is required,
then the software must be reinstalled.

7
2. Windows Environment Variables
• Environment Variables
System Properties > Environment Variables > System variables > Path
Add paths containing the .bat files “vars.bat” & “vcvars64.bat”
"vars.bat" is expected to be in:
C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\env
"vcvars64.bat" is expected to be in:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build

8
3. Link Abaqus + Fortran (& C++) Compiler
• Batch file to start Abaqus CAE with Fortran compiler
@"vars_parent\vars.bat"^ 1. Create a new text file
intel64 vs2019 & abq2024 cae 2. Enter the text, replacing the bold with the correct path for your system
3. Save file with “.bat” extension (the name is arbitrary)
Example (assuming default values):

@"C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\env\vars.bat"^


-arch intel64 vs2019 & abq2024 cae

• Batch file to start Abaqus Command with Fortran compiler

cd "abaqus_default_work_directory"
@"vars_parent\vars.bat"^
intel64 vs2019 & C:\Windows\system32\cmd.exe /k

Example (assuming default values):

cd "C:\temp"
@"C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\env\vars.bat"^
-arch intel64 vs2019 & C:\Windows\system32\cmd.exe /k

9
3. Link Abaqus + Fortran (& C++) Compiler
• When Abaqus is installed, shortcuts are created to
access the products
• Alternatively, these shortcuts can be modified to link
Abaqus with the Fortran compiler in the same way as the
Batch files
• The Abaqus 2024 shortcuts should be located in:
• C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Dassault Systemes
SIMULIA Established Products 2024
• The shortcuts can be modified by opening their
properties and changing the ‘Target’
• The Abaqus CAE & Abaqus Command shortcuts are
modified as an example on the next page

10
3. Link Abaqus + Fortran (& C++) Compiler
• Abaqus CAE shortcut
• Original ‘Target’ text:
• C:\SIMULIA\EstProducts\2024\win_b64\resources\inst
all\cae\custom\abaquscae.cmd research cae
• New ‘Target’ text:
• "C:\Program Files
(x86)\Intel\oneAPI\compiler\2023.0.0\env\vars.bat"
-arch intel64 vs2019 & abq2024 cae
• Abaqus Command shortcut
• Original ‘Target’ text:
• C:\SIMULIA\EstProducts\2024\win_b64\resources\inst
all\cae\custom\abaquscae.cmd research cmd
• New ‘Target’ text:
• "C:\Program Files
(x86)\Intel\oneAPI\compiler\2023.0.0\env\vars.bat"
-arch intel64 vs2019 & C:\Windows\system32\cmd.exe
/k
• Verify using Abaqus Command shortcut with the command
abq2024 verify -user_std as mentioned previously

11
3. Link Abaqus + Fortran (& C++) Compiler
Verification
i. Run your Abaqus Command Batch file or shortcut
ii. Enter the command: Abaqus Command
Batch file
Abaqus/Standard with user subroutines:
abq2024 verify -user_std

Abaqus/Explicit with user subroutines:


abq2024 verify -user_exp

Current system configuration:


Abaqus Command
abq2024 info=system Shortcut

*If the verification fails, try


running Abaqus Command
as administrator

12
4. Troubleshooting
• If the verification fails, check the system
configuration with the abq2024 info=system
command as described on the previous page
• The result should be similar to that shown right
• If it shows that it is linked but still fails verification, try
restarting computer

• Check the installed components of Intel oneAPI


& Visual Studio by navigating to “Apps &
features” and selecting “modify” on the
corresponding programs
• If this method fails to display the installed components,
then navigate to “Control Panel\Programs\Programs
and Features” and select the corresponding programs

• To verify whether the CAA API component is installed


for Abaqus, run the Abaqus software manager as
described on the Abaqus installation page

13
4. Troubleshooting
• If Windows says your PATH variable is too long,
edit it through the registry at
“HKEY_LOCAL_MACHINE\SYSTEM\CurrentCont
rolSet\Control\Session Manager\Environment”

• ⚠ Copying text from a PDF file can introduce


invisible characters that cause errors in filepaths

View publication stats


14

You might also like