Let’s Simulate – Generation of Simulation-based Training Data for AI Models

How experts use automated Ansys processes to generate high-quality data sets for machine learning
AI-generated results are produced quickly. But where does cleverly selected training data come from to obtain credible results? In this series, Daniel Soukup and Dr.-Ing. Kevin Cremanns show how you can automatically generate samples via simulation calculations in Ansys... and how to select them in a clever way to maximize the predictive quality of your AI model. The Ansys Workbench projects are automated either with python, APDL or pyDPF. And the outputs of the training data shown range from individual parameters and curves to complete fields such as the stress field of a reshaped snap spring. This series is a must for all AI enthusiasts!
Designated Site of usage and contact
Detailed agendas of this series
Duration of each episode: 30 minutes.
Season 1 - Data Preparation, Model Training, DoEs, and Outputs

- Presentation of the parameterization of a tuning fork geometry
- The parameter set in Ansys Workbench
- What format should the parameters be in?
- Discussion of the parameter set in the text document
- Importing the parameter set into the python programming environment “Spyder”

- Defining the input and output parameters
- How is the data saved?
- Working in the python programming environment “Spyder”
- Discussion of the input parameters in the Python programming Environment Spyder and Ansys Workbench
- Help from Google or ChatGPT is common practice
- Discussion of input and output correlations

- Training one model for everything vs. training multiple separate models?
- How to train multiple models
- Using cross-validation to check the quality of a trained model
- The first evaluation for sensitivities, contour plots and prediction measures
- Prediction with a trained model and comparison with a "hard" calculation

- How python snippets in Mechanical can also be executed in batch mode
- Good predictions on the trained model - lucky guess or actually good?
- Sample creation (DOE) with AI for continuous and discrete parameters
- What is the minimum amount of training data to start with?
- Consideration of constraints
- How AI determines the follow-up samples

- How can the process of adding a new design be fully automated?
- Starting the scripting in Ansys Workbench
- Analyzing the recorded journal file
- What should a CSV file contain?
- Finally, what elements need to be modified in the Python code?

- Review of the most important steps of the code in the Python programming environment
- Reading the journal file into the Python programming environment
- How do I find out how to read a CSV file?
- Implementation of the necessary code in the Spyder environment
- Convert the workbench script into code that the Spyder environment understands
- Check the wbpj file before you go into batch mode!

- What is the result of adaptive sampling?
- Analysis of the result matrix of the DoE
- How many designs are reasonable to calculate?
- Workbench process is run in batch mode
- Training the models by AI using the result of the Workbench process

- Analysis of the geometry of a tensile specimen + boundary conditions in Ansys Mechanical
- Consideration of the parameter set
- Simulation of the tensile specimen in Ansys Mechanical - what does the curve of the tensile bar look like?
- Explanation of the commands in the APDL script
- Creating a new APDL script to read the results of the objects from the structure tree
- What should the signals for using AI look like?

- Continuation of the APDL script to prepare the signals for AI usage
- Use a Latin Hyper Cube Sampling when doing a large DoE!
- How and where are the different design points stored in a meaningful way?
- Exporting the table data from the workbench
- Read in the information from the design folders - make sure the designs are in the right order!

- Plotting the curves using the Spider programming environment
- Displaying the different force-strain curves
- Writing a function for resampling
- What difficulties arise when resampling?
- Applying the resampling to the input parameters

- Viewing the signals, which are now all the same length
- Read in the material properties of the input parameters
- Take enough time for data preparation!
- Calling up the prediction measure
- Plotting the simulation curve and the prediction curve together with the uncertainties

- Analysis of the geometry and simulation of a disk spring
- Consideration of the various parameters of the disk spring
- PyAnsys libraries - what is PyDPF?
- Use Named Selections at this point too!
- Comparison of methods with scalar values, signals and fields
💡 Let's Simulate - What is it?
Engineering software in action in series format
An exclusive service for CADFEM Learning Subscription customers.
Based on the "Let's Play" approach - known from the video game world - you will experience simulation software in action in this format. You look over the shoulders of experts as they work on the simulation model. In-depth engineering. Practical tips from years of experience. Each series with its own thematic focus.
Your experts

Daniel Soukup




