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.

geomfile<br />

Purpose<br />

geomfile<br />

Geometry M-file.<br />

Syntax<br />

Description<br />

ne = geomfile<br />

d = geomfile(bs)<br />

[x,y] = geomfile(bs,s)<br />

The Geometry M-file is a template format for a user-specified M-file that contains<br />

the complete geometry of the PDE problem. You can specify both 1D and 2D<br />

geometries by using the Geometry M-file format. The geomfile format is not<br />

supported in 3D.<br />

1D Geometry<br />

For 1D geometries, the Geometry M-file essentially contains a set of points, and<br />

geometry information on the intervals between these point.<br />

ne = geomfile returns the number of boundary points ne.<br />

d = geomfile(bs) returns a matrix d with one column for each boundary point<br />

specified in bs, with the following contents:<br />

• Row 1 contains the x-coordinate of the boundary point<br />

• Row 2 contains the label of the “up” subdomain (“up” is the positive direction)<br />

• Row 3 contains the label of the “down” subdomain (“down” is the negative<br />

direction)<br />

The complement of the union of all subdomains is assigned the subdomain number<br />

0.<br />

2D Geometry<br />

2D subdomains are represented by parameterized edge segments. Both the<br />

subdomains and edge segments are assigned unique positive numbers as labels. The<br />

edge segments cannot overlap. The full 2D problem description can contain several<br />

nonintersecting subdomains, and they can have common interior boundary<br />

segments. The boundary of a subdomain can consist of several edge segments. Each<br />

subdomain boundary need to consist of at least two edge segments. All edge<br />

segment junctions must coincide with edge segment endpoints.<br />

ne = geomfile returns the number of edge segments ne.<br />

d = geomfile(bs) returns a matrix d with one column for each edge segment<br />

specified in bs, with the following contents:<br />

• Row 1 contains the start parameter value<br />

• Row 2 contains the end parameter value<br />

215

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

Saved successfully!

Ooh no, something went wrong!