3.2.13 Execution procedure for making user-defined executables and subroutines

Products: ABAQUS/Standard  ABAQUS/Explicit  

Reference

Overview

The abaqus make utility is used to create user postprocessing executables and user-defined libraries of ABAQUS user subroutines. The commands used to compile and link a user-supplied program or user subroutine source file can be changed using the appropriate ABAQUS environment file parameters; i.e., compile_cpp, compile_fortran, link_exe, and link_sl. You can skip the compilation step by providing a precompiled object as input for postprocessing programs.

Postprocessing executables created using this procedure must be run using the ABAQUS execution procedure. This is necessary to set the operating system environment variables for finding the ABAQUS utility libraries. To run a user postprocessing program, use the following command:

abaqus job-name

User subroutine shared libraries created using this procedure are used by specifying the usub_lib_dir variable in the ABAQUS environment file. The advantage of doing this is that an analysis using user subroutines can execute without having to compile or link the user subroutine.

Command summary

abaqus make
{job=job-name | library=source-file}
 
[user={source-file | object-file}]
[directory=library-dir]
[object_type={fortran | c | cpp}]

Command line options

job

This option is used to create a user-supplied postprocessing program. The value of the option specifies the name of the executable created by this procedure. It is also used as the default source file name.

If no option is given on the command line, you will be prompted for this value.

library

This option is used to create user subroutine object files and shared libraries. The value of the option specifies the name of the user subroutine source file to be compiled and linked. The resulting object and shared library files are placed in the directory given by the command line directory option. If the directory option is not used, the files are placed in the current working directory.

The object file or files created have a suffix indicating if the user subroutine is for ABAQUS/Standard or ABAQUS/Explicit. The ABAQUS/Standard object file suffix is —std. ABAQUS/Explicit has single and double precision object files; the object file suffixes are —xpl and —xplD. The ABAQUS/Standard user subroutine shared library that is created is called standardU, and the two ABAQUS/Explicit shared libraries are called explicitU and explicitU-D. If the directory option is used and it contains object files with the appropriate suffix for the shared library that is being created, those files are linked to the shared library.

user

This option is valid only when used in conjunction with the job option. It is used to specify the name of the source or object file containing your program if it is different from job-name. If a file extension is not provided, the option value with a FORTRAN source file extension is sought. If a file by this name is not found, the option value with an object file extension is sought.

directory

This option is valid only when used in conjunction with the library option. It is used to specify the destination of the user subroutine object and shared library files that will be created by the procedure. It is also used to specify the location of additional object files that are to be linked to the shared library or libraries being created. If the option is omitted, the files created by the procedure are placed in the current working directory.

object_type

This option is valid only when used in conjunction with the job option. It is used to specify the type of object file, either FORTRAN, C, or C++, given by the job or user option.

Example

To create an executable called “pprocess” given a FORTRAN source file of the same name, use the following command:

abaqus make job=pprocess
This program can then be run using the command
abaqus pprocess