21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

postcont<br />

postcont<br />

Purpose Shorthand command for contour plot in 2D.<br />

Syntax<br />

Description<br />

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

h = postcont(fem,expr,...)<br />

postcont(fem,expr,...) plots a contour plot for the expression expr. The<br />

function accepts all property/value pairs that postplot does. This command is just<br />

shorthand for the call<br />

postplot(fem,'contdata',expr,...<br />

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

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

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

h = postcont(fem,expr,...) additionally returns handles to the plotted handle<br />

graphics objects.<br />

If you want to have more control over your contour plot, use postplot instead of<br />

postcont.<br />

Example Plot the contours of the solution to the equation – ∆u<br />

= 1 over a unit circle. Use<br />

Dirichlet boundary conditions u = 0 on ∂ Ω .<br />

clear fem<br />

fem.geom = circ2;<br />

fem.mesh = meshinit(fem);<br />

fem.mesh = meshrefine(fem);<br />

fem.equ.c = 1; fem.equ.f = 1;<br />

fem.bnd.h = 1;<br />

fem.xmesh = meshextend(fem);<br />

fem.sol = femstatic(fem);<br />

postcont(fem,'u')<br />

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

syntax.<br />

See Also<br />

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

postflow, postprinc, postprincbnd, postslice, postiso, posttet<br />

323

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

Saved successfully!

Ooh no, something went wrong!