Automatic local launch

By default the ACSI will prompt the user to launch the co-simulating processes manually. However, options execution_command and working_directory may be used to have the ACSI launch the co-simulating processes automatically. Any Adams, Marc or EDEM process may be launched automatically as long as all processes (ACSI glue code, Adams, Marc and EDEM) are running on the same host.
The new options execution_command and working_directory are optional. If a process group does not have the execution_command option, then the ACSI will prompt the user to launch the code manually. The co-simulation accepts processes manually launched as well as processes automatically launched on the same job.

Option execution_command

The execution_command option must include the full path to the executable, optional flags and the name of the model. For example, in a Linux environment you may type the following to launch EDEM:
execution_command = /opt/DEMSolutions/EDEM_2.7/bin/edem -console -i box.dem -cs
While in Windows you may enter:
execution_command = C:\Program Files\DEM Solutions\EDEM 2.7\bin\edem.exe -console -i box.dem -cs
Notice that in Windows you may enter blank spaces if needed. Do not place quotes or escape characters.
The execution command may include a final redirection to a file, for instance:
execution_command = my_launcher.bat test.acf > my_log.txt
The execution command must be a single execution command without pipes. Compound commands are not supported. Here is an example of a not supported compound command:
execution_command = do_this; launcher.bat test.acf | wc # NOT SUPPORTED

Option working_directory

Similarly, option working_directory should define the full path to the working directory. In a Linux environment you may type:
working_directory = /staff/home/john/testing/model02/
In a Windows environment you may type:
working_directory = C:\Tests\BWC Model\test01
Notice that blank spaces are allowed. Do not use quotes or escape characters to define the paths.

Support for environment variables

Both the execution_command and working_directory options support the use of environment variables. Environment variables must be entered using any of the following two formats: ${NAME} or %NAME% regardless of the architecture. NAME stands for the name of the environment variable.

Examples:

working_directory = ${MY_LOCAL_DIR}
execution_command = ${MY_EDEM} -console -i %MY_MODEL% -cs
 
Caution:  
See latest EDEM documentation on how to properly launch EDEM 2017 or later. For example option -console has changed to --console.
 
Note:  
Unless the Adams simulation script has only one simulation command, do not use automatic launching of the EDEM process. Instead, launch the EDEM GUI manually as explained above.