19.3. Capturing Animation

This section describes how to capture and store an animation sequence, either interactively or within a batch run. (Animation capture is possible only in postprocessing after issuing a SET command.)

The report generator saves all individual image files comprising an animation sequence to a subdirectory (of your specified report directory) named animseq_n, where n is a sequential numeric identifier beginning at 1 and incrementing as you capture additional animations. The functions for accessing the animation reside in ansysAnimations.js, a JavaScript file in the report directory.

19.3.1. Interactive

Follow these steps to capture an animation sequence using the report generator GUI:

  1. Click on the Animation Capture button.  

    Result: The Animation Capture dialog appears.

  2. Specify a caption for the captured animation (for example, “Prism Deformed Shape Animation Result").

    The caption can contain APDL parameters in the format %parm%. (Specify “%%” if you want to display the “%” character in your caption.)

  3. Specify the type of animation sequence to capture (such as mode shape, deformed shape, etc.) as applicable.

  4. Click on the OK button.

    Result: The report generator issues this report command to the program:

    ~eui,'ansys::report::animcapture "caption"'

    Also, the animation settings window associated with the animation type you selected (for example, Animate Mode Shape or Animate Deformed Shape) appears.

  5. Modify the animation settings or accept the default settings, then click on the OK button.

    Result: The report generator saves the animation sequence.

19.3.2. Batch

The following line must appear near the beginning of your batch code before any report commands:

~eui,'package require ansys'

To capture an animation sequence via a batch run via a batch run, insert this report command at the point in the run where you want to capture an animation:

~eui,'ansys::report::animcapture "caption"' 

Follow the report command with an animation command (for example, ANTIME or ANDATA).


Release 18.2 - © ANSYS, Inc. All rights reserved.