Skip to main content
The following sample code illustrates how to create a simple example.
  • Refer to operationapi.py in “Ansys installed path/Motion/Document/Postprocessor API for Python.zip”
  • The example was created using “Ansys installed path/Motion/Document/Pre and Post Processor.zip”

Create a ChartView

This example demonstrates how to create a chart view. Chart view is useful for analyzing simulation results by using a graph which is composed of data points.

Creating Curves

This example demonstrates how to create a curve. A graph can be added to the activated chart view. For combinations of paths(Characteristic, Component) on the curve, refer to Common settings in Getting started with the Operation API using Python language.

Simple Math

This example demonstrates how to create a simple math. It is perform addition, subtraction and multiplication between graphs in the chart view. At least two graphs must be selected for the operation. Refer to Creating Curves for curve generation.

Transform

This example demonstrates how to create a transform. It is transform graphs through translate, align, scale, and absolute in the chart view. Refer to Creating Curves for curve generation.

Interpolation

This example demonstrates how to create a interpolation. It is interpolate graphs with the desired number of data points in the chart view. Refer to Creating Curves for curve generation.

Calculus

This example demonstrates how to create a calculus. It is integrate or differentiate graphs in the chart view. Refer to Creating Curves for curve generation.

Signal Processing

This example demonstrates how to create a signal processing. It is perform data filtering and smoothing of graphs in the chart view. Refer to Creating Curves for curve generation.

FFT

This example demonstrates how to create a fft. It is transform data in the time domain to the frequency domain by using the Fast Fourier Transformation method (FFT) in the chart view. Refer to Creating Curves for curve generation.

STFT

This example demonstrates how to create a stft. The short time furrier transformation method(STFT) can transform the data in time domain to the frequency domain. this example describes how to create the STFT.
  • The color map plot is supported through this operation.
  • Refer to Creating Curves for curve generation.