Compiling and Linking the SIMULIA Co-Simulation Services

You must compile and link the SIMULIA Co-Simulation Services to your application.

This page discusses:

The SIMULIA Co-Simulation Services API is written in C, which allows you to easily develop interfaces to other programing languages.

Compiling your Application with SIMULIA Co-Simulation Services

The compiler needs to access the SIMULIA Co-Simulation Services header files. Either install the header files into a folder where the compiler can include them automatically, or set the compiler option to the folder that contains the header files. Consult your compiler reference guide for compiler flags to include the header files.

The SIMULIA Co-Simulation Services are compiled using the same compiler flags as Abaqus. If you have Abaqus installed, you can use the following command to list the compile flags that Abaqus uses:

abaqus -info environment
The variable compile_cpp defines the compiler flags that Abaqus uses.

Linking the SIMULIA Co-Simulation Services to Your Application

Common approaches to loading the dynamic libraries at run time include the following:

  • Using the dlopen function on Linux or the LoadLibraryA function on Windows to load the SIMULIA Co-Simulation Services dynamic libraries at run time.

    This process is more involved because you must create function pointers.

  • Loading the libraries from a particulate folder at run time (for example, the Abaqus /code/bin release directory).

    This approach is simpler. You must specify the location of the libraries during the linking phase and execution phases.

The linker needs access to the dynamic libraries. Either install the dynamic libraries into a location where the linker can include them automatically, or set the linker option to the folder that contains the dynamic libraries. Consult your linker user reference guide for link options. If you have Abaqus installed, you can use the following command to list the link flags used by Abaqus:

abaqus -info environment
The link_exe variable lists the common link options used by Abaqus.