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.

postanim<br />

postanim<br />

Purpose Shorthand command for animation in 1D, 2D and 3D.<br />

Syntax<br />

Description<br />

postanim(fem,expr,...)<br />

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

postanim(fem,expr,...) plots an animation of the expression expr. The<br />

function accepts all property/value pairs that postmovie does. In 1D, this<br />

command is just shorthand for the call<br />

postmovie(fem,'liny',expr,...<br />

'linstyle','bginv',...)<br />

and in 2D, it is shorthand for<br />

postmovie(fem,'tridata',expr,...<br />

'tribar','on',...<br />

'geom','on',...<br />

'axisequal','on',...)<br />

and in 3D, this command is just shorthand for<br />

postmovie(fem,'slicedata',expr,...<br />

'slicebar','on',...<br />

'geom','on',...<br />

'axisequal','on',...)<br />

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

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

postmovie property Filename.<br />

If you want to have more control over your animation, use postmovie instead of<br />

postanim.<br />

Cautionary<br />

When you are replaying a movie that has been stored in a matrix M, you should<br />

explicitly provide a figure handle to the movie command.<br />

M = postanim(fem,expr,...)<br />

movie(gcf,M)<br />

Otherwise the animation does not look good.<br />

Compatibility The syntax of the command is not compatible with its corresponding FEMLAB 2.1<br />

syntax.<br />

See Also<br />

postplot, postsurf, postcont, postlin, postarrow, postarrowbnd,<br />

postflow, postslice, postiso, posttet<br />

320 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!