21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

postmovie<br />

Purpose<br />

postmovie<br />

Postprocessing animation function.<br />

Syntax<br />

Description<br />

postmovie(fem,...)<br />

postmovie({fem1,fem2,fem3,...},...)<br />

M = postmovie(fem,...) % MATLAB only<br />

postmovie(fem,...) is the general solution animation function. It supports all<br />

property/value pairs that postplot supports, and in addition to that, it supports a<br />

set of property/value pairs that is exclusive for animation.<br />

The input fem must be a FEM structure or a cell array of FEM structures. When it<br />

is a cell array, the properties solnum and t must, if specified, be cell arrays of the<br />

same size as fem. In this case, the FEM structures must have the same solution type,<br />

for example, all time-dependent solutions.<br />

M = postmovie(fem,...) additionally returns a matrix in the MATLAB movie<br />

format. Alternatively, in <strong>COMSOL</strong> Script, you can store the animation in a file using<br />

the property Filename.<br />

The command can generate a sequence of image files containing all images in the<br />

movie. In addition, the command can generate an AVI movie file.<br />

Valid property/value pairs for the postmovie function are given in the following<br />

table. In addition, all postplot parameters are supported and are passed to<br />

postplot. See the entry on postplot for a description of the post data formats.<br />

TABLE 1-30: VALID PROPERTY/VALUE PAIRS<br />

PROPERTY NAME PROPERTY VALUE DEFAULT DESCRIPTION<br />

Avicompression string Compression used for<br />

AVI-movie<br />

Aviquality integer between 75 Quality of AVI-movie<br />

0 and 100<br />

Filename string Output file name<br />

Filetype avi | jpg | avi<br />

Output file type<br />

tiff | png<br />

Fps integer 12 Frames per second<br />

Height integer 480 Height of image/movie<br />

files<br />

Repeat integer 5 Number of repeats<br />

Reverse on | off off Make movie backwards<br />

Resol integer 150 Resolution<br />

352 | CHAPTER 1: COMMAND REFERENCE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!