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.

chamfer<br />

Purpose<br />

chamfer<br />

Create flattened corners in 2D geometry object.<br />

Syntax<br />

Description<br />

g = chamfer(g1,...)<br />

g = chamfer(g1,...) creates flattened corners in 2D geometry object g1<br />

according to given property values.<br />

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

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

PROPERTY VALUE DEFAULT DESCRIPTION<br />

angles 1-by-m vector Angles (in radians) with respect to<br />

edges in first row of edges<br />

dist1 1-by-m vector Distances along edges in the first<br />

row of edges. A positive entry<br />

states the chamfered length and a<br />

negative entry states the remaining<br />

length of edge after chamfering<br />

dist2 1-by-m vector Distances along edges in second<br />

row of edges, using same format as<br />

dist1<br />

edges 2-by-m matrix Pairs of edge numbers<br />

lengths 1-by-m vector Lengths of line segments that make<br />

up the flattened corners<br />

out<br />

Cell array of none Determines the output<br />

strings<br />

point integers | all |<br />

none<br />

all out<br />

The corners to chamfer is either specified with either the property point or edges.<br />

The default value is the all corners are chamfered.<br />

The size of the chamfer is specified with any of the following combinations of<br />

properties, dist1, dist1 and dist2, dist1 and angles, dist1 and lengths, and<br />

length and angles. If only dist1 is supplied the chamfering distance is equal for<br />

both edges. All these properties can be given as a vector or as a single value.<br />

Examples<br />

Chamfer a rectangle in different ways.<br />

r = rect2;<br />

s1 = chamfer(r,'dist1',0.1);<br />

s2 = chamfer(r,'edges',[1 2;2 3],'angles',pi/4,'lengths',0.5);<br />

39

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

Saved successfully!

Ooh no, something went wrong!