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.
Insert picture description here
A series of prompts should appear when running the mpirun command in cmd. Restart the computer if it fails.
Insert picture description here

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"

Insert picture description here

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.
Insert picture description here
Insert picture description here

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

Insert picture description here
Or write these two sentences as a bat script
Insert picture description here
Insert picture description here

Use AUTODYN

After startup, use AUTODYN to
Insert picture description here
view the task manager in the normal way , and it's running
Insert picture description here

Guess you like

Origin blog.csdn.net/cheweng4363/article/details/112329567