PolyUMod Installation for Abaqus

In this tutorial you will learn to:
- Troubleshot and finalize a PolyUMod for Abaqus installation
Step 1: Setup the file "abaqus_v6.env"
In order for Abaqus to find the PolyUMod library you need to set the usub_lib_dir
variable in the Abaqus environment file called abaqus_v6.env
. Abaqus searches for this file in 3 locations: the current working directory, the home directory of the computer user, and an Abaqus install directory. More information about the environment file is available in the Abaqus documentation Section 3.3.1.
One a Windows computer you can find your home directory using the %userprofile%
path as shown in the following image.
Note that the default behavior of the PolyUMod installer is to add the necessary commands to the abaqus_v6.env
file in the user’s home directory.
Here is the recommended code for the abaqus_v6.env
file for Windows:
## The following lines were added for PolyUMod ##
if True:
try:
import os
if 'ABA_COMMAND' in os.environ:
var = os.environ['ABA_COMMAND'].upper()
else:
var = os.environ['ABA_COMMAND_FULL'].upper()
print '** abaqus: ', var
files = os.listdir(os.getcwd())
file = ''
match = 0
for file in files:
if file.find('standardU.dll') > -1: match = 1
if file.find('explicitU.dll') > -1: match = 1
if file.find('explicitU-D.dll') > -1: match = 1
if match == 0:
if '2018' in var:
usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus_2021'
elif '2019' in var:
usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus_2021'
elif '2020HF' in var:
usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus'
elif '2020' in var:
usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus_2021'
elif '2021' in var:
usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus_2021'
else:
usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus'
else:
usub_lib_dir = os.getcwd()
print '** usub_lib_dir = ' + usub_lib_dir
print '** RLM_LICENSE = ' + os.environ['RLM_LICENSE']
del files, file, match, var, os
except:
pass
Here is the recommended code for abaqus_v6.env
for Linux:
# PolyUMod additions
if True:
import os
file = []
files = os.listdir(os.getcwd())
match = 0
for file in files:
if file.find('libexplicitU.so') > -1: match = 1
if file.find('libexplicitU-D.so') > -1: match = 1
if file.find('libstandardU.so') > -1: match = 1
if match == 0:
usub_lib_dir = '/opt/PolymerFEM/PolyUMod/PolyUMod_Abaqus'
else:
usub_lib_dir = os.getcwd()
try:
print '** usub_lib_dir = ' + usub_lib_dir
print '** RLM_LICENSE = ' + os.environ['RLM_LICENSE']
except:
pass
del files, file, match, os
Step 2: Try the PolyUMod Test Cases
Copy all files from the PolyUMod test cases directory to any temporary directory. On a Windows computer the PolyUMod test cases directory is: C:\Program Files\PolymerFEM\PolyUMod\Test_Cases_Abaqus
, and on a Linux computer this directory is: /opt/PolymerFEM/PolyUMod/Test_Cases_Abaqus
.
Then run the file test_01_exp.inp
in an Abaqus Command window, using the command:
abq2022.bat -int -job test_01_exp
Note that this test case does not use the PolyUMod library, and is simply used to make sure that your Abaqus installation works properly. If the test case does not run to completion then contact Abaqus technical support.
Then try to run the file test_02_exp.inp
using the following abaqus command:
abq2022.bat -int -job test_02_exp
This test case is using the PolyUMod library. If this test case runs to completion then the PolyUMod library works properly with Abaqus/Explicit.
Then, as a final test, run the file test_02_inp.inp
using the abaqus command:
abq2022.bat -int -job test_02_imp
This test case is also using the PolyUMod library. If this test case runs to completion then the PolyUMod library works properly with Abaqus/Standard.