AUTODYN accelerates parallel computing
Using multi-core CPUs to accelerate AUTODYN calculations is an effective method. MPI is used here.
Add MPI system environment variables
The first is the MPI path. MPI is already installed when ANSYS is installed. You can find the mpirun.exe file in the commonfiles folder under the ANSYS home directory. My path here is
G:\Program Files\ANSYS Inc\v192\commonfiles \MPI\IBM\9.1.4.3\winx64\bin
add its path to the system environment variables.
A series of prompts should appear when running the mpirun command in cmd. Restart the computer if it fails.
Create appfile
Then write a script, create an applfile file (without extension) in any folder, and add a parameter
-e MPI_FLAGS=y0 -e ANSYS_EXD_MPI_TYPE=pcmpi -h machine1 -np 1 "G:\Program Files\ANSYS Inc\v192\aisol\AUTODYN\winx64\autodyn.exe"
-h machine1 -np 8 "G:\Program Files\ANSYS Inc\v192\aisol\AUTODYN\winx64\adslave.exe"
-h machine2 -np 8 "G:\Program Files\ANSYS Inc\v192\aisol\AUTODYN\winx64\adslave.exe"
-h machine3 -np 8 "G:\Program Files\ANSYS Inc\v192\aisol\AUTODYN\winx64\adslave.exe"
-h machine4 -np 8 "G:\Program Files\ANSYS Inc\v192\aisol\AUTODYN\winx64\adslave.exe"
This means that a master node and 8 slave nodes are started on machine1. Start 8 slave nodes on machine2, machine3, and machine4. A total of 32 nodes.
If you want to change the hosts file, you may encounter a situation where the permissions cannot be changed. Create a new txt file on the desktop first, and rename it after you change it. Then move and replace.
Start AUTODYN via MPI
Then start AUTODYN via MPI.
mpirun -prot -e MPI_WORKDIR="G:\Program Files\ANSYS Inc\v192\AISOL\AUTODYN\winx64" -f applfile
Of course, this command should be run in the folder where the applfile is located.
cd /d G:\AutoDyn_document\AUTODYN_BATCH
Or write these two sentences as a bat script
Use AUTODYN
After startup, use AUTODYN to
view the task manager in the normal way , and it's running