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.

postcrossplot<br />

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

PROPERTY NAME S L P PROPERTY VALUE DEFAULT DESCRIPTION<br />

Surfmap ♦ color map Color map<br />

Surfxdata ♦ string Surface x-axis expression<br />

Surfydata ♦ string Surface y-axis expression<br />

T ♦ ♦ ♦ vector Times for evaluation<br />

U ♦ ♦ ♦ solution object or<br />

vector<br />

fem.sol or 0<br />

Solution for evaluation<br />

If the field fem.sol.u does not exist and the property U is not specified, expressions<br />

not depending on the solution can still be plotted.<br />

The notation colorspec in the value column denotes a color specification. See<br />

postplot for a description of this.<br />

The property Phase is described in posteval.<br />

Examples<br />

3D Example<br />

clear fem<br />

fem.geom = geomcsg({cylinder3});<br />

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

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

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

fem.shape = 2;<br />

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

fem.sol = femtime(fem,'tlist',0:0.01:0.1);<br />

Plot solutions on a cross-section:<br />

crosspts = [0 0 1;0 1 1;0 0 1];<br />

postcrossplot(fem,2,crosspts,'surfdata','u','solnum',1:2:10,...<br />

'crosslicecs','local')<br />

Plot fourth solution on five cross-sections with geometry boundaries:<br />

postcrossplot(fem,2,crosspts,'surfdata','u','solnum',4,...<br />

'geom','on','refine',3,'axisequal','on',...<br />

'spacing',5)<br />

Plot on a boundary 6 for the last time value:<br />

postcrossplot(fem,2,6,'surfdata','ux','cont','on','solnum',11)<br />

Compare this with<br />

postplot(fem,'tridata','ux','cont','on','bdl',6,'geom','on',...<br />

'solnum',11)<br />

Plot on a boundary 6 for some time values with overlaid mesh:<br />

330 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!