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 />

Purpose<br />

postcrossplot<br />

Cross-section plot.<br />

Syntax<br />

Description<br />

postcrossplot(fem,cdim,dom,...)<br />

h = postcrossplot(fem,cdim,dom,...)<br />

[h,data] = postcrossplot(fem,cdim,dom,...)<br />

postcrossplot(fem,cdim,dom,...) displays a plot of an expression, including a<br />

FEM solution, in one or several cross sections of the geometry, with space<br />

dimension cdim and defined by dom (coordinates) or on mesh elements of space<br />

dimension cdim, specified by dom (domain list). The argument dom is therefore<br />

either a number of points to specify a cross section or a list of domains. To specify a<br />

cross section, dom must be one of the following, where sdim denotes the space<br />

dimension of the geometry:<br />

• An sdim-by-2 matrix to specify a cross-section line (the line between the two<br />

points in the columns of dom) in 2D and 3D. Used with properties lindata and<br />

surfdata. Here, cdim must be 1.<br />

• A 3-by-3 matrix to specify a cross-section plane (the plane containing all three<br />

points in the columns of dom) in 3D. Used with property surfdata. Here, cdim<br />

must be 2.<br />

• An sdim-by-np matrix to specify np points for point plots. Used with property<br />

pointdata. Here, cdim must be 0.<br />

To specify a list of domains (geometry vertices, geometry edges, geometry<br />

boundaries, or geometry subdomains), dom must be:<br />

• A 1-by-nd integer matrix, where nd is the number of domains with space<br />

dimension cdim (vertices, edges, boundaries, or subdomains) to plot on. When<br />

used with surfdata in 3D, nd must be one.<br />

In 1D, if all entries in dom are integers greater than or equal to 1, they are interpreted<br />

as indices to geometry vertices. Otherwise, they are interpreted as coordinates. To<br />

specify a coordinate which is an integer greater than or equal to 1, use the property<br />

pointtype set to coord.<br />

The expressions that are plotted can be <strong>COMSOL</strong> Multiphysics expressions<br />

involving variables, in particular application mode variables.<br />

The following plot types can be made:<br />

Point plots (1D, 2D, 3D) Plot of an expression on any geometry vertex or arbitrary<br />

point in the subdomains of the geometry. This is most useful when there are several<br />

solutions, in which case this plot shows the value of the expression in the selected<br />

326 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!