LinkingAbaqus2024InteloneAPIFortranCompilerVisualStudioinWindows
LinkingAbaqus2024InteloneAPIFortranCompilerVisualStudioinWindows
net/publication/378006065
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.
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
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
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):
cd "abaqus_default_work_directory"
@"vars_parent\vars.bat"^
intel64 vs2019 & C:\Windows\system32\cmd.exe /k
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
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
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”