Let’s Simulate – Automated Reporting for Simulation Tasks

Ansys Mechanical Scripting & Ansys Dynamic Reporting: Create reports of your Mechanical & Fluent simulations automatically!
Create your simulation reports automatically and reuse the template again and again! Is documenting your simulation projects taking too much time? In this series, Susanne Haase, Elisabeth Treml, and Dr.-Ing. Sandro Gierth show you how to automatically generate a PowerPoint report directly from your simulation model using Mechanical Scripting and Python scripting.
Starting from a completed simulation, the team builds a script step by step that documents the most important project information – from geometry, meshing, and boundary conditions to results and material data – without any manual copy-paste. As a practical best-practice tip, the series also demonstrates how to help yourself when a command isn't readily available. The result: a reusable script that can be applied to your own simulation projects.
Designated Site of usage and contact
Detailed agendas of this series
Duration of each episode: 30 minutes.
Season 1 - Automation with Mechanical Scripting

- Lisa presents the rubber boot seal
- Discussing the report template
- Which parts should be created automatically?
- Adjusting the slide master
- Selecting the required report slides

- Script editors and Python commands
- Where can I find the corresponding commands? – Help yourself with the Discuss forum
- Use the Microsoft Copilot!
- Creating the title slide with mechanical scripting
- How can the font size be changed?

- Adapting the font size of the title
- Filling the title slide
- What is the difference between image and figure?
- When are figures useful?
- Can the view of the model be changed from figure to figure?

- Adapt the figure code
- Export the figures to the report
- Help: Microsoft Copilot
- Avoid error accumulation - just keep clicking Run!

- Ansys Forums - Image Export
- What information about the image do you need?
- In dark mode, white areas could disappear!
- Definition of the path of the image file
- Function to generate the image

- Finish geometry slide
- Properties to mesh
- Report element quality
- Merge individual scripts
- Boundary conditions

- Add tabular data to the report
- How do I access the project name?
- Make sure that the PowerPoint file is always open!
- Programming a table
- Use loops to simplify things!

- Adjusting the table size for the constraints
- Creating a function that fills the table
- Debugging - Error message: Object does not exist
- Define elements before using them!
- Keep track of your PowerPoint file!

- Programming the results table
- Processing any error messages that occur
- Documenting the penetration
- Clean up your code every now and then!
- Creating a graph of the results

- Enlarging the created image of the graph
- Make sure that files are not overwritten!
- Documenting the total displacement
- Documenting the minimum and maximum stress
- Adding intermediate slides

- Hiding the legend within the figures
- Adapting already exported images
- What's the catch? - Image settings can help!
- Creating a section slide
- Maintain a structure when programming your script!

- Susanne has tidied up the script
- Analysis of the structured code
- Which report slides have been created so far?
- What information about the material should be documented?
- Which commands are necessary?

- Creating a table for the material data
- Filling this table with the appropriate values
- What type do the given values correspond to?
- Defining the desired units
- Developing the function

- What material laws are behind the materials?
- Focus on linear data
- Creating the Neo-Hook graph
- How is this graph added to the report?
- Generating the data table in Excel

- Troubleshooting: the Excel table imports old data
- Adding the chart slide
- Try to keep an overview!
- Solution found – Excel table contains the correct values
- Evaluating the entire completed report on the rubber boot seal
Season 2 - Automation with Ansys Dynamic Reporting

- Presentation of the simulation example in Ansys Fluent
- Creating a template: Ansys Fluent Simulation Report
- Report in PowerPoint
- Overview in Ansys Help
- Ansys Dynamic Reporting

- Image creation in Fluent
- Querys: Querying items from the database
- Uploading files via Ansys Dynamic Reporting
- This method can also be used for other files!
- Discussion of the report template
- Activating beta features

- Enabling beta features
- Report generation
- Defining the parent layout
- Report Template Editor

- Uploading the PowerPoint file to the server
- Discussing the user interface of the ADR Template Editor
- PPTX Template Properties
- Orientation to the report template
- Evaluating the result in the slides

- Uploading the current report
- Filling a text slide
- Working with queries
- Creating queries to add data to slides
- Do two lines of text work?

- Using the slide master
- Editing text placeholders
- Result of image slides in PowerPoint
- Layout control using tags
- Changing headings

- Getting started with scripting
- Explanation of Python programming
- Parent & Child
- Help through documentation
- Ansys Python Manager & Jupyter Lab

- Analysis of the code in Jupyter Lap
- Automated creation of the template
- Always clean up the server!
- Deleting existing templates

- Which items are in the database?
- query_type & item_filter
- PowerPoint is in the database – query possible!
- Deleting and uploading items
- Use the cheat sheet for help!

- Which item types are possible?
- Upload items using the server variant
- Close the final set of slides!
- Image item
- Result of the PowerPoint slides

- Get an overview in Jupyter Lab
- Recap the existing scripts
- Which processes should still be automated?
- Open Fluent via pyFluent
- What happens during report generation?

- Susanne and Sandro demonstrate a fully automated report
- How are the PowerPoint slides structured?
- What other options are available within the categories?
- Opening the script for the report example
- User input and defined functions

- How did Susanne and Sandro proceed?
- Use the template editor to help you!
- What does number 200 under a cell mean?
- Objectives, description
- Tree structures

- How many finite volumes are there?
- Results & summary
- All items are uploaded
- Generating the final PowerPoint file
💡 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

Susanne Haase

Elisabeth Treml




