Creating Datasets for Simulation Models with PyMAPDL – Lesson 4

This lesson features Ansys’ PyMAPDL tool, focusing on utilizing the ‘Pools’ class to enhance computational efficiency. With the help of an example, it demonstrates the generation of synthetic dataset creation for ML/AI based applications. For situations involving intense computation, the ‘Pools’ class enables running multiple instances of MAPDL in parallel, distributing the workload across cores for a faster and efficient execution. The lesson discusses two methods for dealing with the Pools namely, pre-creating the input files and defining a Python function encapsulating MAPDL FEM. Lesson explains the script and the procedure for setting up the model, mesh refinement, solution, and post-processing detail.

Lecture

Alternate video link.


Video Highlights

0:08 - Introduction

1:19 - Intro to PyMAPDL Pools

2:13 - Methods to Launch PyMAPDL Pools

3:14 - PyMAPDL Pools Code Review

6:07 - Importing the CSV file in PyMAPDL

8:26 - Summary

Simulation Files

Download the accompanying geometry and archived files here. Get more details on PyAnsys here.