Turbomachinery application: A comprehensive inverse-solving (hot-to-cold) simulation workflow using PyAnsys libraries to analyze the NASA Rotor 67 fan-bladed disk
Introduction
In recent years, the aerospace and turbomachinery industries have experienced remarkable progress in the design and development of high-performance, efficient turbomachinery components. Rotor fans and disks, which serve as critical components in propulsion systems and energy conversion devices, significantly impact the overall efficiency and reliability of these advanced machines. Within this context, the NASA Rotor 67 fan-bladed disk is a subsystem of a turbofan compressor set employed in aerospace engine applications. This sector model, which exemplifies a challenging industrial case with publicly available detailed geometry and flow information, comprises a disk and fan blade with a sector angle of 16.364 degrees. The sector model embodies the blade’s running or hot geometry, and it is already optimized for running conditions under loading. The primary objective of the proposed simulation workflow involves deriving the cold geometry (for manufacturing) from the provided hot geometry through inverse solving. Note: In turbomachinery engineering, the hot-to-cold method is a prevalent approach for designing rotor blades. The rotor blade geometry representing the as-manufactured shape is referred to as the cold geometry, while the shape of the rotor blade during running conditions is known as the hot geometry.Overview
This blog introduces a comprehensive, inverse-solving (hot-to-cold) simulation workflow using PyAnsys libraries to analyze the NASA Rotor 67 fan-bladed disk. PyAnsys libraries are versatile Python libraries that effectively integrate with Ansys engineering simulation tools to facilitate efficient, automated processes. The blog showcases how to streamline Mechanical simulations with PyMechanical, postprocess results with PyDPF-Post, and generate detailed reports with PyDynamicReporting. By leveraging these PyAnsys libraries, the proposed workflow delivers a potent solution for designing and innovating next-generation rotor fan-bladed disks, ultimately driving advancements in turbomachinery applications. The primary focus of this document is to provide a step-by-step guide to simulating an inverse (hot-to-cold) process using PyMechanical. To gain an introductory understanding of the installation, setup, and advanced features of PyMechanical, including an in-depth example, see the latest release of the PyMechanical documentation. Additionally, this blog explores the capabilities of the Python client library for the Data Processing Framework (DPF), known as PyDPF-Post. This PyAnsys library is specifically designed for postprocessing simulation results, enabling you to analyze and visualize data effectively. For comprehensive information on PyDPF-Post, including detailed documentation and step-by-step installation instructions, see the latest release of the PyDPF-Post documentation. The final section of this blog demonstrates how to use PyDynamicReporting to access and integrate generated reports with modern technology stacks, facilitating a smooth integration into end-to-end workflows. This allows you to maximize the efficiency of your simulation processes and leverage cutting-edge tools for data analysis and visualization. For a deeper understanding of these features and guidance on installation, see the latest release of the PyDynamicReporting documentation. By the time you reach the end of this blog, you will have a thorough understanding of PyMechanical’s capabilities and how to harness its power for simulating complex processes. Furthermore, you will be well-equipped to use PyDPF-Post for postprocessing simulation results and PyDynamicReporting for seamlessly incorporating generated reports into contemporary technology stacks, thereby optimizing your workflow and enhancing productivity.Set up your environment
Before you can use PyAnsys libraries, you must set up your environment. First, ensure that you have legally licensed copies of these Ansys products installed: Once these Ansys products are installed, set up your environment:- Install Python (if not already installed).
- Activate the virtual environment.
-
For Windows CMD:
-
For Windows Powershell:
-
For Linux:
From this point forward, you must execute all commands within the virtual environment.
- Install the libraries.
ansys-mechanical-core, ansys-dpf-core, ansys-dpf-post, and ansys-dynamicreporting-core packages:
Note: For beginners who find the preceding steps challenging, consider using the Ansys Python Manager to install Python and PyAnsys metapackages. This tool also simplifies the process of creating and managing virtual environments.
Use PyMechanical to simulate the inverse-solving (hot-to-cold) workflow
To familiarize yourself with the PyMechanical scripting interface, first see Exploring PyMechanical access methods: A brief overview on the Ansys Developer Portal. Then, return to this blog to delve into the following key features of PyMechanical:- Import a geometry from a supported CAD file using the Import Geometry option.
- Import a material database by reading a XML file format using the Import Material option.
- Import a CFX generated pressure and temperature data from external source files directly into the application using an External Data system.
Simulate the gas turbine-focused workflow
Import required libraries and modules.


Use PyDPF-Post to postprocess results
To postprocess the results from the inverse-solving simulation, you use PyDPF-Post. This blog describes how to use these PyDPF-Post features:- Postprocess result quantities using physics-oriented APIs, which enable auto-completion.
- Compute the minimum and maximum of a dataframe, which are generated by extracting a result from a simulation.
Postprocess results from the gas turbine-focused workflow
Import required libraries and modules.Simulation object.
Get the Simulation object that allows access to the results. The Simulation object must be instantiated with the path for the result file. For example, "C:/Users/user/my_result.rst" on Windows or "/home/user/my_result.rst"on Linux.
Simulation object.




Use PyDynamicReporting to create Ansys reports
To create Ansys reports from the result images postprocessed by PyDPF-Post, you use PyDynamicReporting. Key features of PyDnamicReporting include:- Native support for multiple data formats
- Ability to store data from various sources, such as CAD packages, simulation software, and postprocessors
- Tools for data aggregation, filtering, and processing within the database
- A web-based interface for seamless and intuitive interaction with database items