Skip to main content
The following sample code illustrates how to create a simple example.
  • Refer to the ‘operationapi.py’ file in the ‘Ansys installed path/Motion/Document/Postprocessor API for Python.zip’ file.
  • This example was created using the ‘Ansys installed path/Motion/Document/Frequency Response Analysis.zip’ file and ‘Install_Path\Motion\Document\Pre and Post Processor.zip’ file.

Create an AnimationView corresponding to the Analysis type

This example demonstrates how to create an animation view suitable for the analysis type and load animation frames.

Contour

This example demonstrates how to create a contour. Contour is a good tool for analyzing a simulation result. Since scalar data, such as stress, is displayed with color corresponding to value, you can easily estimate where a problem is during an animation.

Create a Coordinate System

This example demonstrates how to create a coordinate system. The Coordinate system can be created from various entities in the result as below, and this example describes how to create the Coordinate System.
  • Rigid Body
  • FE Node
  • Marker

Vector Display

This example demonstrates how to create a vector display. Vector display is used to display the force vector in animation view. It is a useful tool for analyzing the magnitude or direction of a force. The force and torque of joint, force, and contact are available in the vector display.

Image Capture

This example demonstrates how to capture the content on the screen as an image.

Recording

This example demonstrates how to record an animation as a video.

Expression

This example demonstrates how to create a expression. A Postprocessor Expression is similar to a Function Expression in the Motion Preprocessor. It represents a formula that can be written as a combination of functions of displacement, velocity, and acceleration between specified markers, and it also supports basic mathematical functions.
  • This example was created using the ‘Install_Path\Motion\Document\Pre and Post Processor.zip’ file.

Create Node & Element

This example demonstrates how to create nodes and elements within a flexible body.