[ANSYS, Inc. Logo] return to home search
next up previous contents index

26.16.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 (e.g., translate, rotate, zoom) in the graphics window where the animation is displayed, and save the modified view instead of the original view.



Solution Animation File


If you selected Metafile or PPM Image under Storage Type in the Animation Sequence dialog box, then ANSYS 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 (e.g., pressure-contour.cxa). In addition to the .cxa file, ANSYS FLUENT will also save a metafile with a .hmf extension for each frame (e.g., pressure-contour_0002.hmf). The .cxa file contains a list of the associated .hmf files, and tells ANSYS 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 metafiles ( .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 Section  26.16.4) when you want to replay the animation. As noted in Section  26.16.4, the solution animation file can be used for playback in ANSYS FLUENT independent of the case and data files that were used to generate it.

To save a solution animation file (and the associated metafiles), 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 (e.g., pressure-contour.cxa), and the file names for the metafiles will consist of the specified sequence Name followed by a frame number (e.g., pressure-contour_0002.hmf). All of the files ( .cxa and .hmf) will be saved in the current working directory.



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 Section  4.21.1 for details.) Click Apply in the Save Picture dialog box to save your modified settings.

figure   

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 (e.g., pressure-contour_1_0002.ps), and they will all be saved in the current working directory.



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 (e.g., pressure-contour.mpg), and it will be saved in the current working directory.


next up previous contents index Previous: 26.16.2 Playing an Animation
Up: 26.16 Animating the Solution
Next: 26.16.4 Reading an Animation
Release 12.0 © ANSYS, Inc. 2009-01-29