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.

meshpoi<br />

Purpose<br />

meshpoi<br />

Make a regular mesh on a rectangular geometry.<br />

Syntax<br />

Description<br />

fem.mesh = meshpoi(fem,nx,ny)<br />

fem.mesh = meshpoi(fem,n)<br />

fem.mesh = meshpoi(fem,nx,ny) constructs a regular mesh on the rectangular<br />

geometry specified by fem.geom, by dividing the “x edge” into nx pieces and the “y<br />

edge” into ny pieces, and placing (nx+1)*(ny+1) points at the intersections. The<br />

“x edge” is the one that makes the smallest angle with the x-axis.<br />

fem.mesh = meshpoi(fem,n,...) uses nx = ny = n.<br />

The triangular mesh is described by the FEM mesh object mesh. Details on the mesh<br />

object can be found in the entry on femmesh.<br />

For best performance with poisson, the larger of nx and ny should be a power of 2.<br />

The function meshpoi accepts the following property/values:<br />

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

PROPERTY<br />

NAME<br />

PROPERTY VALUE DEFAULT DESCRIPTION<br />

out fem | mesh mesh Output variables<br />

Diagnostics<br />

If fem.geom does not seem to describe a rectangle an error is signalled.<br />

Cautionary This function only works in 2D.<br />

See Also<br />

femmesh, poisson<br />

288 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!