22.2.2. Running Autodyn using the autodyn Script

Once Autodyn has been installed on a Linux system, a script called autodyn242 is provided that sets up the required runtime environment variables. This script is located within the <Installation directory>/v242/autodyn/bin directory. It can be run by either adding this directory path to your system path environment variable, or by typing the full path to the script. The script must be run using bash. It may throw errors if run using other interpreters such as dash.

The arguments to the script control which model is executed:

autodyn -I {ident-name} -C {cycle-number}

The C(ycle) argument is not required, and will default to cycle zero if not present.

Putting a file named endbat.dat in the running directory will cause a simulation to stop at the end of the current cycle. Once stopped, Autodyn will delete the endbat.dat file.

Putting a file named savenow.dat in the running directory will force the simulation to write a restart file at the end of the current cycle. Once the restart file has been written out, Autodyn will delete the savenow.dat file and it must be re-created to write out a new restart file.

In order to run a parallel calculation, you should place the parallel configuration file (parallel.cfg) in the same directory as the model file. For further details regarding the setup and execution of parallel simulations, see the Autodyn Parallel Processing Guide.


Note:  The MPI software used in a parallel calculation can be specified using the ANSYS_AUTODYN_MPI_TYPE environment variable. The available options are: intelmpi (Intel) or openmpi (OpenMPI). The default option for Linux is Intel MPI.

To use OpenMPI, the ANSYS_AUTODYN_MPI_TYPE variable needs to be set:

setenv ANSYS_AUTODYN_MPI_TYPE openmpi 

For Intel MPI 2018.3 and older versions on systems with ptrace restrictions, such as Ubuntu, you need to set variable I_MPI_SHM_LMT=shm. This fix is documented on the Intel Community Forum. Newer versions of Intel MPI may not need this extra argument.