Skip to Main Content

EnSight Python Scripting

Course Overview

This training class gives an introduction of scripting techniques for advanced EnSight usage.


  • EnSight basic training course
  • Save handling of the EnSight GUI
  • Good understanding of typical workflows in EnSight
  • Solid CFD or Structural Simulation knowledge, depending on the use case

Teaching Method

Showing solutions to script general features that are used in common EnSight workflows. The sample codes are enhanced in small steps to enable good understanding. While the slides show development of small solutions, the audience will recreate the sample codes from scratch with the support of the trainer.

Learning Outcome

Following completion of this course, you will be able to:

  • Start-up support using the EnSight Python API
  • Basic Python knowledge
  • Sample script solutions of important EnSight features
  • Introduction of adding structured algorithms to Python files
  • Basic overview of clean coding to enable script maintenance
  • Introduction in automated post processing

 Available Dates

Currently, no training dates available

Learning Options

Training materials for this course are available with an Ansys Learning Hub Subscription. If there is no active public schedule available, private training can be arranged. Please contact us.


This is a 1-day classroom course covering both lectures and workshops. For virtual training, this course is covered over 2 x 3-hour sessions lectures only.

Virtual Classroom Session 1

  • Motivation of scripting
  • Record commands & translate to Python
  • Python basics
  • Script modification
  • Important modules

Virtual Classroom Session 2

  • Access case information
  • Read and write ASCII files
  • Clean up the code
  • Object oriented approach – methods
  • Object oriented approach – classes
  • Python basics
  • Important modules
  • Query information of the simulation data 
  • Cleaning up a code
  • Access to ASCII files
  • Object oriented coding