Linking Abaqus 2022 Intelone APIFortran Compiler Visual Studioin Windows 10
Linking Abaqus 2022 Intelone APIFortran Compiler Visual Studioin Windows 10
net/publication/361706781
CITATIONS READS
0 2,898
1 author:
Ryan Enos
Purdue University
10 PUBLICATIONS 6 CITATIONS
SEE PROFILE
All content following this page was uploaded by Ryan Enos on 02 July 2022.
Ryan Enos
7/1/22
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 2022 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 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 2022
• 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 2022\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\2021.4.0\env
"vcvars64.bat" is expected to be in:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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 & abq2022 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\2021.4.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 2022 shortcuts should be located in:
• C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Dassault Systemes
SIMULIA Established Products 2022
• 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\2022\win_b64\resources\inst
all\cae\custom\abaquscae.cmd research cae
• New ‘Target’ text:
• "C:\Program Files
(x86)\Intel\oneAPI\compiler\2021.4.0\env\vars.bat"
-arch intel64 vs2019 & abq2022 cae
• Abaqus Command shortcut
• Original ‘Target’ text:
• C:\SIMULIA\EstProducts\2022\win_b64\resources\inst
all\cae\custom\abaquscae.cmd research cmd
• New ‘Target’ text:
• "C:\Program Files
(x86)\Intel\oneAPI\compiler\2021.4.0\env\vars.bat"
-arch intel64 vs2019 & C:\Windows\system32\cmd.exe
/k
• Verify using Abaqus Command shortcut with the command
abq2022 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:
abq2022 verify -user_std
12
4. Troubleshooting
• If the verification fails, check the system
configuration with the abq2022 info=system
command as described on the previous page
• The result should be similar to that shown right