28.19.3. Saving an Animation Sequence

Once you have created an animation sequence, you can save it in any of the following formats:

Note that, if you are saving picture files or an MPEG file, you can modify the view (for example, translate, rotate, zoom) in the graphics window where the animation is displayed, and save the modified view instead of the original view.

28.19.3.1. Solution Animation File

If you selected HSF File or PPM Image for Storage Type in Figure 28.43: The Animation Definition Dialog Box, then Fluent will save the solution animation file for you automatically. It will be saved in the specified Storage Directory, and its name will be the Name you specified for the sequence, with a .cxa extension (for example, pressure-contour.cxa). In addition to the .cxa file, Fluent will also save image files with .hsf or .ppm extensions for each frame (for example, pressure-contour_0002.hsf). The .cxa file contains a list of the associated .hsf or .ppm files, and tells Fluent the order in which to display them.

If you selected In Memory under Storage Type, then the solution animation file (.cxa) and the associated files (.hmf) will be lost when you exit from ANSYS Fluent, unless you save them as described below.

You can save the animation sequence to a file that can be read back into ANSYS Fluent (see Reading an Animation Sequence) when you want to replay the animation. As noted in Reading an Animation Sequence, the solution animation file can be used for playback in Fluent independent of the case and data files that were used to generate it.

To save a solution animation file (and the associated files), select Animation Frames in the Write/Record Format drop-down list in the Playback dialog box, and click the Write button. ANSYS Fluent will save a .cxa file, as well as a .hmf file for each frame of the animation sequence. The filename for the .cxa file will be the specified sequence Name (for example, pressure-contour.cxa), and the file names for the metafiles will consist of the specified sequence Name followed by a frame number (for example, pressure-contour_0002.hmf). All of the files (.cxa and .hmf) will be saved in the current working directory.

28.19.3.2. Picture File

You can also generate a picture file for each frame in the animation sequence. This feature allows you to save your sequence frames to picture files used by an external animation program such as ImageMagick. As noted above, you can modify the view in the graphics window before you save the picture files.

To save the animation as a series of picture files, follow these steps:

  1. Select Picture Files in the Write/Record Format drop-down list in the Playback dialog box.

  2. If necessary, click the Picture Options... button to open the Save Picture Dialog Box and set the appropriate parameters for saving the picture files. (If you are saving picture files for use with ImageMagick, for example, you may want to select the window dump format. See Window Dumps (Linux Systems Only) Apply in the Save Picture dialog box to save your modified settings.


    Important:  Do not click the Save... button in the Save Picture dialog box. You will save the picture files from the Playback dialog box in the next step.


  3. In the Playback dialog box, click the Write button. ANSYS Fluent will replay the animation, saving each frame to a separate file. The filenames will consist of the specified sequence Name followed by an animation sequence and a frame number (for example, pressure-contour_1_0002.ps), and they will all be saved in the current working directory.

28.19.3.3. MPEG File

It is also possible to save all of the frames of the animation sequence in an MPEG file, which can be viewed using an MPEG decoder such as mpeg_play. Saving the entire animation to an MPEG file will require less disk space than storing individual window dump files (using the picture method), but the MPEG file will yield lower-quality images.

As noted above, you can modify the view in the graphics window before you save the MPEG file.

To save the animation to an MPEG file, follow these steps:

  1. Select MPEG in the Write/Record Format drop-down list in the Playback dialog box.

  2. Click the Write button.

    ANSYS Fluent will replay the animation and save each frame to a separate scratch file, and then it will combine all the files into a single MPEG file. The name of the MPEG file will be the specified sequence Name with an .mpg extension (for example, pressure-contour.mpg), and it will be saved in the current working directory.


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