EnSight Python Scripting

Course Overview

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

 

Prerequisites

  • 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

Target Audience: 

Fluids Engineers, Combustion Engineers, Thermal Engineers, HVAC engineers, Aerodynamics engineers, Structural Engineers who want to have an advanced usage of Ansys EnSight via Python scripting.

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 Path

ensight-python-scripting.png

Learning Outcome

  • 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.

Agenda 

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.

  • Python basics
  • Important modules
  • Query information of the simulation data 
  • Cleaning up a code
  • Access to ASCII files
  • Object oriented coding

Virtual Classroom Session 1 / Live Classroom Day 1 morning

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

Virtual Classroom Session 2 / Live Classroom Day 1 afternoon

  • Access case information
  • Read and write ASCII files
  • Clean up the code
  • Object oriented approach – methods
  • Object oriented approach – classes