Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This repository provides a practical example of a coupled CFD-Structural analysis workflow for rotating systems (e.g., propellers) using ANSYS Fluent and HPC cluster resources.

The primary goal of this example is to demonstrate:

  • Transition from time-consuming local simulations to high-performance parallel computing using PBS scheduling.
  • How to use Fluent journal files (.journal) and shell scripts (.sh) to run simulations in batch mode without a graphical interface.

Table of contents

Problem background

High-fidelity numerical modelling of rotating systems — such as propellers — requires substantial computational power due to the complex, highly unsteady, and three-dimensional flow phenomena involved. When using ANSYS Fluent to perform Computational Fluid Dynamics (CFD) simulations of a rotating propeller, the governing equations of fluid dynamics must be solved on a fine computational mesh to accurately capture pressure distribution, turbulence behaviour, and rotational flow structures. As mesh resolution increases, so do memory requirements and overall computational workload.

In engineering practice, analysing a single operating condition is rarely sufficient. To evaluate and optimise system performance, it is necessary to run multiple simulation cases in parallel, varying key parameters such as:

  • Rotational speed
  • Working medium (air or water)
  • Rotor geometry (blade shape, diameter, pitch, etc.)

Running these cases sequentially on a standard personal computer (PC) would be inefficient and extremely time-consuming. A high-performance computing (HPC) cluster enables simulations to be distributed across many processors, significantly reducing computation time. HPC resources also enable the simultaneous execution of numerous variations.

Therefore, HPC is essential for performing efficient, parallelised, and high-resolution simulations of rotating systems, enabling more reliable performance assessment and supporting better design improvements.

After the CFD stage, the resulting pressure distributions are exported and used for structural analysis. These simulations — typically carried out on PCs — allow engineers to test different rotor materials under realistic loading conditions. This coupled workflow (CFD → Structural Analysis) highlights the importance of HPC: without fast, parallel generation of accurate pressure fields, downstream structural simulations would also be more time-consuming.

Contents of this example

This example demonstrates a simplified workflow for preparing and running CFD simulations of a rotating system using ANSYS Fluent and an HPC cluster, followed by structural analysis based on the obtained results. An overview of all the files in this repository is below.

  • input - directory containing Fluent simulation files

    • FFF.cas.h5 – Fluent case file, containing the simulation setup: geometry, mesh, physics models, boundary conditions, and solver configuration
    • FFF.dat.h5 – Fluent data file, containing the simulation results: pressure, velocity fields, turbulence quantities, convergence history, and other computed solution data
  • instruction.journal – A Fluent journal file that automates the simulation workflow. It specifies which case file to load, how many iterations to run, which settings to modify, and how to save the output results.

  • run_fluent.sh – A shell script used to submit the Fluent job on the HPC cluster. It loads the required modules, calls Fluent in batch mode with the journal file, and manages resource settings such as CPU allocation, parallel execution, and log output.

  • README.md - This readme file

The process begins by creating a simulation case in Fluent, including importing the geometry, creating the computational domain and mesh, and defining boundary conditions. Once the initial conditions — such as the working medium and rotational speed — are selected, a short preliminary simulation is performed to verify the case and generate the necessary cas and dat files.

These files are uploaded to the HPC cluster, where the main simulation is executed by adjusting the journal file settings and submitting the job. While the cluster performs the computation, additional cases with different speeds or media can be prepared locally and submitted in the same way.

When the HPC simulation is complete, the results (as cas and dat files) are downloaded. Using ANSYS Workbench/Results, the lift force can be extracted, and flow-field visualisation can be performed.

Finally, the pressure field obtained from Fluent is transferred to a Static Structural module, where blade deformation and Von Mises stresses are computed. Different blade materials can be tested by repeating the structural analysis.

Comment for creators: All demo-cases should contain description of the provided files, at least the base level of the file tree.

Software prerequisites

  • Git — Used to access the prepared example directly from GitHub via the clone command.
    Alternatively, the repository can be downloaded as a .zip archive and transferred to the HPC cluster or a local workstation by other means.

  • ANSYS Workbench 2023 — Used for setting up the CFD case in Fluent, generating the mesh, defining boundary conditions, and exporting the necessary .cas.h5 and .dat.h5 files. Workbench is also used for post-processing: importing HPC-generated results, visualizing pressure and force distributions, and performing Structural Analysis to evaluate deformation and Von Mises stresses.

Running the example on an HPC cluster

To run ANSYS Fluent on an HPC cluster managed by PBS (such as OpenPBS or PBS Professional), you need to submit a job script that defines the required resources and the execution commands.

Obtaining the case

You can download this case directly from GitHub using the git clone command shown below.
Alternatively, the repository can be downloaded as a .zip archive and transferred to the HPC cluster by any preferred method.

git clone https://github.com/rtuhpc/HPC-example-ANSYS.git

The PBS Job Script

The run_fluent.sh (or .pbs) script is used to request CPU cores, memory, and walltime.

Submitting the Job

Once your files (FFF.cas.h5, instruction.journal, and run_fluent.sh) are uploaded to the cluster, submit the job using the qsub command:

qsub run_fluent.sh

Monitoring the Job

You can check the status of your simulation using:

qstat -u your_username

If you need to cancel the job, use:

qdel JOB_ID

The Fluent Journal File (instruction.journal)

For the simulation to run without user interaction, the journal file must contain the TUI (Text User Interface) commands. A basic example:

/file/read-case-data input/FFF.cas.h5
/solve/iterate 500
/file/write-case-data results.cas.h5
exit
yes

Post-processing and visualization

After the simulation is completed on the HPC cluster, the resulting .cas.h5 and .dat.h5 files are downloaded to a local workstation.

Post-processing is performed in ANSYS Fluent or ANSYS Workbench:

  • Visualize velocity and pressure fields
  • Generate contour plots and streamlines
  • Extract forces such as lift and drag
  • Analyse convergence history

These results are used to evaluate the performance of the rotating system under different operating conditions.

Additionally, pressure distributions can be exported and used as input for structural simulations.

Modification of the example

This example can be extended in several ways to explore the capabilities of HPC-based simulations:

  • Change rotational speed (RPM) to analyse performance variation
  • Modify working medium (air vs water)
  • Adjust mesh resolution to study accuracy vs computational cost
  • Test different turbulence models
  • Alter rotor geometry (blade angle, diameter)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages