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.

meshintegrate<br />

% Make cross-section plot:<br />

pd = postcrossplot(fem,1,[0 1;0 1;0 1],'lindata','u',...<br />

'npoints',100,'outtype','postdata');<br />

% Call meshintegrate:<br />

I = meshintegrate(pd.p)<br />

Surface integral in 3D using the same problem as above:<br />

pd = postcrossplot(fem,2,[0 0 0;0 1 0;1 0 1]','surfdata','u',...<br />

'outtype','postdata');<br />

I = meshintegrate(pd.p, pd.t, pd.d)<br />

This function only works for lines and surfaces actually intersecting the geometry.<br />

For plots along geometry boundaries or edges (or 1-D subdomains), better results<br />

are achieved using postint.<br />

Cautionary<br />

See also<br />

This function is not implemented for 3-D elements, i.e., when T has four rows.<br />

postcrossplot, postint<br />

276 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!