4.5. Example Problem

This section contains a tutorial for running a DMP analysis on a cluster using the Linux platform. To download the input file for this example, click here.

The tutorial walks you through setting up your distributed environment and then directly running a sample problem. It is designed so that you can modify settings (such as the number of compute nodes used, number of cores on each compute node, etc.), but we strongly recommend that the first time you run this tutorial, you follow the steps exactly. Once you're familiar with the process, you can then modify the tutorial to more closely match your particular environment. You can use the files generated in future GUI or batch runs.

4.5.1. Example: Running a DMP Analysis on Linux

The following tutorial walks you through the setup of your distributed-memory parallel processing environment and is applicable only to systems running Ansys 2024 R2 on a Linux cluster with Intel MPI or Open MPI. The Ansys 2024 R2 installation includes Intel MPI and Open MPI.

The sample input file, carrier.inp, is required to complete the tutorial. Once you've downloaded the file, save the input file to your working directory before beginning the tutorial. You can run the sample problem using the problem setup described here.

Part A: Setup and Run mpitest  —  Follow the instructions outlined in Configuration Requirements for DMP Processing to ensure your Linux cluster is setup and working properly. Run the mpitest program to confirm that the Ansys software is properly installed and that the cluster environment is setup and working properly.

Part B: Setup and Run a Distributed Solution  —  

  1. Type hostname on each machine in the cluster, and note the name of each machine. You may need this name to set up the .rhosts file.

  2. Start the program using the launcher:

    launcher242
  3. Select the correct environment and license.

  4. Go to the High Performance Computing Setup tab. Select Use Distributed Computing (DMP). You must also specify either local machine or multiple hosts. For multiple hosts, use the New Host button to add machines to the Selected Hosts list. If necessary, you can also run remote shell (rsh) by selecting Use Remote Shell instead of Secure Shell (rsh instead of ssh).

  5. Click Run to launch Mechanical APDL.

  6. In Mechanical APDL, select File>Read Input From and navigate to carrier.inp

  7. The example will progress through the building, loading, and meshing of the model. When it stops, select Main Menu>Solution>Analysis Type>Sol'n Controls.

  8. On the Solution Controls dialog box, click the Sol'n Options tab.

  9. Select the Pre-Condition CG solver.

  10. Click OK on the Solution Controls dialog box.

  11. Solve the analysis. Choose Main Menu>Solution>Solve>Current LS and click OK.

  12. When the solution is complete, you can postprocess results as you would with any analysis. For example, you could select Main Menu>General Postproc>Read Results>First Set and select the desired result item to display.