PolyUMod Installation for Abaqus

In this tutorial you will learn to:

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:

# PolyUMod additions
if True:
	import os
	file = []
	files = os.listdir(os.getcwd())
	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:
		usub_lib_dir = 'C:/Program Files/PolymerFEM/PolyUMod/PolyUMod_Abaqus'
	else:
		usub_lib_dir = os.getcwd()
	try:
		print '** usub_lib_dir = ' + usub_lib_dir
		print '** veryst_LICENSE = ' + os.environ['veryst_LICENSE']
	except:
		pass
	del files, file, match, os

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 '** veryst_LICENSE = ' + os.environ['veryst_LICENSE']
	except:
		pass
	del files, file, match, os

Step 2: Try the PolyUMod Test Cases

Copy all inp-files from the PolyUMod test cases directory to any temporary directory. On a Windows computer this directory is: C:\Program Files\Veryst Engineering\PolyUMod\Test_Cases_Abaqus, and on a Linux computer this directory is typically: /opt/PolymerFEM/PolyUMod/Test_Cases_Abaqus.

Then run the file test_01_exp.inp in an Abaqus Command window, using the command:

abq2020.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.

The try to run the file test_02_exp.inp using the following abaqus command:

abq2020.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:

abq2020.bat -int -job test_02_imp

This test case is using the PolyUMod library. If this test case runs to completion then the PolyUMod library works properly with Abaqus/Standard.