COMSOL Design Module User Guide
COMSOL Design Module User Guide
User’s Guide
Design Module User’s Guide
© 2005–2021 COMSOL
Protected by patents listed on [Link]/patents, and U.S. Patents 7,519,518; 7,596,474;
7,623,991; 8,457,932;; 9,098,106; 9,146,652; 9,323,503; 9,372,673; 9,454,625, 10,019,544,
10,650,177; 10,776,541, and 11,030,365. Patents pending.
This Documentation and the Programs described herein are furnished under the COMSOL Software License
Agreement ([Link]/comsol-license-agreement) and may be used or copied only under the terms
of the license agreement. Portions of this software are owned by Siemens Product Lifecycle Management
Software Inc. © 1986–2021. All Rights Reserved. Portions of this software are owned by Spatial Corp. ©
1989–2021. All Rights Reserved.
COMSOL, the COMSOL logo, COMSOL Multiphysics, COMSOL Desktop, COMSOL Compiler,
COMSOL Server, and LiveLink are either registered trademarks or trademarks of COMSOL AB. ACIS and
SAT are registered trademarks of Spatial Corporation. CATIA is a registered trademark of Dassault Systèmes
or its subsidiaries in the US and/or other countries. Parasolid is a trademark or registered trademark of
Siemens Product Lifecycle Management Software Inc. or its subsidiaries in the United States and in other
countries. All other trademarks are the property of their respective owners, and COMSOL AB and its
subsidiaries and products are not affiliated with, endorsed by, sponsored by, or supported by those or the
above non-COMSOL trademark owners. For a list of such trademark owners, see [Link]/
trademarks.
Version: COMSOL 6.0
Contact Information
Visit the Contact COMSOL page at [Link]/contact to submit general inquiries
or search for an address and phone number. You can also visit the Worldwide Sales Offices
page at [Link]/contact/offices for address and contact information.
If you need to contact Support, an online request form is located at the COMSOL Access
page at [Link]/support/case. Other useful links include:
Chapter 1: Introduction
Geometry Representation 37
Working with the CAD Kernel . . . . . . . . . . . . . . . . . 37
Converting Objects to COMSOL Kernel Representation . . . . . . . 39
CONTENTS |3
Converting Objects to CAD Kernel Representation . . . . . . . . . 40
Geometry Features 53
Cap Faces . . . . . . . . . . . . . . . . . . . . . . . . . 53
Chamfer . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Check . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Delete Faces . . . . . . . . . . . . . . . . . . . . . . . . 57
Delete Fillets . . . . . . . . . . . . . . . . . . . . . . . . 58
Delete Holes . . . . . . . . . . . . . . . . . . . . . . . . 60
Delete Short Edges . . . . . . . . . . . . . . . . . . . . . . 61
Delete Sliver Faces . . . . . . . . . . . . . . . . . . . . . . 62
Delete Small Faces . . . . . . . . . . . . . . . . . . . . . . 63
Delete Spikes . . . . . . . . . . . . . . . . . . . . . . . . 64
Detach Faces . . . . . . . . . . . . . . . . . . . . . . . . 65
Fillet . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Knit to Solid . . . . . . . . . . . . . . . . . . . . . . . . 69
Loft . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Midsurface . . . . . . . . . . . . . . . . . . . . . . . . . 74
Projection . . . . . . . . . . . . . . . . . . . . . . . . . 76
Repair . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Thicken . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Defeaturing Tools 84
Defeaturing Tools — Finding and Deleting Small Details . . . . . . . . 84
4 | CONTENTS
Defeaturing Tools — Delete Faces . . . . . . . . . . . . . . . . 87
Defeaturing Tools — Detach Faces . . . . . . . . . . . . . . . . 88
Defeaturing Tools — Detect Interferences . . . . . . . . . . . . . 88
Summary of Commands 90
CONTENTS |5
Horizontal . . . . . . . . . . . . . . . . . . . . . . . . 134
Fillet . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Fillet3D . . . . . . . . . . . . . . . . . . . . . . . . . 135
Import 3D CAD . . . . . . . . . . . . . . . . . . . . . . 137
InterpolationCurve . . . . . . . . . . . . . . . . . . . . . 144
Knit . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
LineSegment . . . . . . . . . . . . . . . . . . . . . . . 146
Loft . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Midsurface . . . . . . . . . . . . . . . . . . . . . . . . 150
Mirror . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Move . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Parallel. . . . . . . . . . . . . . . . . . . . . . . . . . 152
Perpendicular . . . . . . . . . . . . . . . . . . . . . . . 153
Point . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Polygon . . . . . . . . . . . . . . . . . . . . . . . . . 154
Position . . . . . . . . . . . . . . . . . . . . . . . . . 154
Projection . . . . . . . . . . . . . . . . . . . . . . . . 155
QuadraticBezier . . . . . . . . . . . . . . . . . . . . . . 157
Radius . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . 158
Repair . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Rotate . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Scale . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Square . . . . . . . . . . . . . . . . . . . . . . . . . . 162
TangentConstraint . . . . . . . . . . . . . . . . . . . . . 162
Thicken . . . . . . . . . . . . . . . . . . . . . . . . . 163
TotalEdgeLength . . . . . . . . . . . . . . . . . . . . . . 166
Vertical . . . . . . . . . . . . . . . . . . . . . . . . . 166
XDistance . . . . . . . . . . . . . . . . . . . . . . . . 167
YDistance . . . . . . . . . . . . . . . . . . . . . . . . 168
6 | CONTENTS
1
Introduction
Welcome to the Design Module User’s Guide. This guide details the functionality
of this optional package that extends the COMSOL Multiphysics® modeling
environment with additional tools and features to create and modify geometry, and
to import and export geometry using the most common 3D CAD file formats.
7
About the Design Module
Overview of the Included Geometry Tools and Features
The Design Module extends the geometry modeling capabilities of COMSOL
Multiphysics with constraint and dimension features in 2D, a dedicated geometric
kernel, the CAD kernel, features for creating and modifying geometry, import and
export of several 3D CAD formats, and functionality to repair and defeature imported
geometry objects. Included geometry features are, for example, the fillet and chamfer
features in 3D, and the loft feature that can generate 3D surfaces based on cross
sectional profiles, which could come from an MRI scan, or could be the faces of
existing geometry objects. Further functionality such as the midsurface and thicken
allows for converting a thin solid object into a surface, or the other way around.
The import capabilities cover the most common 3D CAD file formats: ACIS®,
AutoCAD ®, IGES, Inventor ®, NX®, Parasolid®, PTC ® Creo ® Parametric™,
PTC® Pro/ENGINEER®, SOLIDWORKS®, and STEP. In addition, support for
CATIA® V5 is available as a separate add-on. To exchange data with CAD packages,
you can export your geometry to the ACIS®, IGES, Parasolid ®, and STEP file
formats.
Finally, the product provides a wide range of tools for you to prepare an imported 3D
design for meshing and analysis. You can interactively search for and remove geometric
features, for example, fillets, holes, slivers, small faces, and short edges. You can also
modify objects by detaching a portion to form an additional computational domain,
or by creating a fluid domain for computation, in case the CAD design only includes
the solid parts.
2D Geometry Features
8 | CHAPTER 1: INTRODUCTION
GEOMETRY FEATURE ICON DESCRIPTION
Total Edge Length Constrain the total length for a set of edges
3D Geometry Features
Cap Faces Generate faces from edges to fill gaps and create
solid objects, or to partition solids
Detach Faces Detach faces and form a new object from them
10 | CHAPTER 1: INTRODUCTION
Overview of the User’s Guide
This documentation covers the Design Module and the add-on for file import of
CATIA® V5 files. Instructions on how to use the geometry modeling tools in
COMSOL Multiphysics® in general are included with the COMSOL Multiphysics
Reference Manual. To help you get started with modeling this module is also
accompanied by the quick-start guide Introduction to Design Module.
If you are reading the documentation as a PDF file on your computer, the
blue links do not work to open an application or content referenced in a
different guide. However, if you are using the Help system in COMSOL
Multiphysics, these links work to other modules (as long as you have a
license), application examples, and documentation sets.
• In the Model Builder or Physics Builder click a node or window and then
press F1.
• On the main toolbar, click the Help ( ) button.
• From the main menu, select Help>Help.
• Press Ctrl+F1.
• From the File menu select Help>Documentation ( ).
• Press Ctrl+F1.
• On the main toolbar, click the Documentation ( ) button.
• From the main menu, select Help>Documentation.
12 | CHAPTER 1: INTRODUCTION
THE APPLICATION LIBRARIES WINDOW
Each application includes documentation with the theoretical background and
step-by-step instructions to create a model application. The applications are available
in COMSOL as MPH-files that you can open for further investigation. You can use the
step-by-step instructions and the actual applications as a template for your own
modeling and applications. In most models, SI units are used to describe the relevant
properties, parameters, and dimensions in most examples, but other unit systems are
available.
Once the Application Libraries window is opened, you can search by name or browse
under a module folder name. Click to view a summary of the application and its
properties, including options to open it or a PDF document.
To include the latest versions of model examples, from the Help menu
select ( ) Update COMSOL Application Library.
To receive technical support from COMSOL for the COMSOL products, please
contact your local COMSOL representative or send your questions to
COMSOL WEBSITES
14 | CHAPTER 1: INTRODUCTION
2
This chapter describes the tools and features available for creating, importing, and
modifying geometry with the Design Module.
15
Constraint and Dimension Features
In this section:
When you apply a constraint or dimension feature, the software immediately adjusts
the drawing to satisfy the applied feature. It does this by adjusting the values of the
input fields of the geometric features that created the objects. The constraints and
dimensions are visualized with symbols and arrows in the Graphics window.
To enable constraints and dimensions by default in new models make sure that the
Geometry>2D constraints and dimensions>Use in new geometries check box is selected
in the Preferences dialog box.
When you open an existing model, the constraint and dimension features in the model
are normally active. To change this behavior clear the Geometry>2D constraints and
dimensions>Use when opening a model that uses constraints and dimensions check box
in the Preferences dialog box. After this, when you open a model that uses constraints
and dimensions you will get a question whether you want to disable the use of
constraints and dimensions. If you answer yes, the constraint and dimension features
will be loaded, but they will not have any effect.
If you want to avoid that dimension and constraint features modify the input fields of
a geometry feature click the Constrain ( ) button (visible only when the use of
constraints and dimensions is enabled) to the right of the text field in the Settings
window of the feature. This locks the text field (the Constrain button icon changes into
to accept only values or expressions that are entered directly, so that the text field
now becomes a built-in dimension. In some cases this is also indicated in the Graphics
window by the built-in dimensions being visualized with arrows.
When applying a constraint or dimension to a straight or circular edge, the entire line
or full circle is usually considered. For example, a dimension that constrains the
distance between a vertex and a straight edge really constrains the distance between the
vertex and the straight line underlying the edge.
CREATING CONSTRAINTS
You can add a constraint using the buttons from the Sketch toolbar by one of the
following methods:
• Click the Constraint ( ) button on the Sketch toolbar, also available from the
right-click context menu in the Graphics window, to enter the smart constraint
mode. In this mode, you can start with selecting edges and vertices in the Graphics
window. When you have selected a sufficient number of entities, a constraint symbol
will appear next to the mouse pointer. This symbol indicates a suggested constraint
for the selected entities. If you are satisfied with this suggestion, move the symbol
to the desired position on the canvas and left-click to place it there. This will also
add the constraint feature node to the geometry sequence, and the geometry will
be rebuilt so that you see the effect of the constraint. You can drag the symbol
afterward to adjust its position. To select a different type of constraint from the one
suggested, click the button of another constraint, from the Sketch toolbar or from
the context menu displayed after right-clicking in the Graphics window, before
placing the symbol. If a sufficient number of entities are selected for this new
constraint, the symbol for the constraint will appear immediately at a default
position, and the constraint feature node will be added to the geometry sequence.
The smart constraint mode remains active after each applied constraint until you
click the Constraint button again, or press Esc.
• Click a button (other than Constraint) from the Constraint group of the Sketch
toolbar, to select a specific constraint. If you have already selected some entities you
can also select an applicable constraint from the context menu displayed when you
right-click in the Graphics window. If the preselected entities are sufficient for
applying the constraint, the symbol for the constraint will appear immediately at a
default position, and the constraint feature node will be added to the geometry
sequence. Otherwise, when you have selected a sufficient number of entities, the
CREATING DIMENSIONS
You can add a dimension using the buttons from the Sketch toolbar by one of the
following methods:
• Click the Dimension ( ) button on the Sketch toolbar to enter the smart
dimension mode. In this mode, you can start with selecting edges and vertices in
the Graphics window. When you have selected a sufficient number of entities, a
dimension symbol will appear next to the mouse pointer. This symbol indicates a
suggested dimension for the selected entities (also considering the mouse pointer
position in relation to the selected entities). If you are satisfied with this suggestion,
move the symbol to the desired position on the canvas and click to place it there.
This will also add the dimension feature node to the geometry sequence. Change
the dimension’s value in the Settings window for the feature; then click Build
Selected to see its effect. To select a different type of dimension from the one
suggested, click the button of another dimension, from the Sketch toolbar or from
the context menu displayed after right-clicking in the Graphics window, before
placing the symbol. If a sufficient number of entities are selected for this new
dimension, the symbol for the dimension will appear immediately at a default
position, and the dimension feature node will be added to the geometry sequence.
You can drag the symbol afterward to adjust its position. The smart dimension
mode remains active after each applied dimension until you click the Dimension
button again, or press Esc.
• Click a button (other than Dimension) from the Dimensions group of the Sketch
toolbar, to select a specific dimension. If you have already selected some entities you
can also select an applicable dimension from the context menu displayed when you
right-click in the Graphics window. If the preselected entities are sufficient for
applying the dimension, the symbol for the dimension will appear immediately at a
default position, and the dimension feature node will be added to the geometry
sequence. Otherwise, when you have selected a sufficient number of entities, the
dimension symbol will appear under the pointer. Move the symbol to the desired
position on the canvas and click to place it there. This will also add the dimension
feature node to the geometry sequence. Change the dimension’s value in the
Settings window for the feature, then click Build Selected to see its effect.
• When you hover over a symbol, it will be highlighted in red, together with the
geometric entities it acts on.
• Use the scroll wheel to cycle through overlapping symbols.
• Drag the symbol to change its position.
• Double-click the symbol to select the corresponding feature node in the geometry
sequence, so that its settings are shown in the Settings window. For a dimension,
this also gives focus to the dimension value text field.
• Click to select the symbol. Hold down the Ctrl key to select several symbols.
Selected symbols are blue in the Graphics window.
• Click the Delete ( ) toolbar button or press the Delete key to delete the selected
constraints and dimensions.
When a sufficient number constraints and dimensions are added, all degrees of
freedom become locked, so that none of the vertices or edges can be moved. In this
state all geometric entities are black and the geometry is now well defined.
STATUS DESCRIPTION
Note that the status concerns the state of the geometry when it was last built, that is,
the geometry you see in the Graphics window.
Each constraint and dimension node in the Model Builder can have a warning subnode
that tells if the node is overdefined or inconsistent. When this happens, the software
tries to satisfy the other constraints and dimensions, ignoring the problematic ones.
• All: This option means that all constraint and dimension features in the sequence are
applied, also the features that come after the feature which you are building up to.
This is the default setting.
• None: Use this option to turn off the build of constraint and dimension features. The
corresponding feature nodes are grayed out in the geometry sequence. Note that
built-in dimensions defined by the geometric primitive features and other features
may still apply.
• Up to build target: With this option selected only the constraint and dimension
features up to the feature you are building up to are applied to the geometry.
MEASURING DIMENSIONS
Dimensions are created by default as constraining dimensions that are treated as a
requirement on the drawing. In the settings for a dimension you can change it to
become a measuring dimension by toggling the Constrain button from the locked
padlock ( ) to the open padlock ( ). A measuring dimension is not imposing a
requirement on the entities it applies to, but rather it is updated according to the other
features in the geometry sequence. In the Graphics window, measuring dimensions are
displayed in a blue color that is lighter than that of the constraining dimensions.
Measuring dimensions are useful when you want to know the value of dimension in
the drawing but adding a constraining dimension would overdefine the geometry.
DIMENSION PARAMETERS
To use the value of a dimension as a parameter in other geometry and non-geometry
features select the Create parameter check box in the settings for the dimension. This
setting is available for both constraining and measuring dimensions. The following
conditions apply when using dimension parameters:
• You can use a dimension parameter in the expression for another dimension’s value,
as well as expressions in other geometry features, within the same 2D geometry
sequence. The geometry feature where you use the dimension parameter may come
above the dimension feature that defines the parameter.
• When used in a geometry feature in the same 2D geometry sequence, the expression
containing the dimension parameters must be linear in the dimension parameters.
For example, if A is a parameter defined in a Global Definitions>Parameters node and
• The Condition expression in If and Else If features does not support dimension
parameters.
• You can use a dimension parameter that is defined by a feature in a work plane’s
plane geometry sequence in expressions in 3D geometry features that come below
the work plane feature.
• You can use dimension parameters created in a component in expressions in
non-geometry features in that component as well as in other components, for
example in physics, mesh, and materials settings.
• You can use dimension parameters created in a component in features under a Study,
Results, and Global Definitions>Materials nodes.
• When entering expressions in a text field press Ctrl+Space to display a menu where
you find available dimension parameters under Geometric dimensions.
• For dimensions that define a parameter, the name of the dimension parameter is
displayed in the Graphics window, in the dimension’s label.
HELP POINTS
For some constraint and dimension features the Settings window contains a section
Help Points where you can specify coordinates for the help points on curved edges. The
help points are used as initial guesses when solving the constraint or dimension. More
specifically, when there are several solutions to a constraint or dimension, the software
chooses the solution that is closest to the help points. When you add a constraint or
dimension using a toolbar button, which is the recommended way, the help points are
based on the position of the mouse click for the edge selection. When you add a
constraint or dimension using the context menu in the Model Builder window the
coordinates for the help points are instead set to (0,0), which may sometimes result in
a solution that is not desired. The software updates the help point coordinates when
the geometry is built, so that the help points correspond to the found solution.
Angle
Use the Angle dimension to specify the angle between two edges. The specified angle
is applied between the tangent rays at the point of intersection for the two curves
underlying the edges.
• First Ray: Change the selection for the first edge. The Reverse direction check box
determines the direction of the edge's tangent ray at the intersection point.
• Second Ray: Change the selection for the second edge. The Reverse direction check
box determines the direction of the edge's tangent ray at the intersection point.
• Dimension Value:
- Adjust the value of the angle. The angle is measured from the first tangent ray to
the second tangent ray in the counterclockwise direction.
- Toggle the Constrain button to switch between using the dimension as a
constraining dimension ( , default) or measuring dimension ( ). The value
of a measuring dimension is not imposed as a requirement to the drawing.
Instead it is updated according to other dimensions and constraints in the
geometry sequence. For more information see Measuring Dimensions.
- Select the Create Parameter check box to generate a parameter for the dimension.
Edit the name displayed in the Parameter name text field. When in sketch
visualization mode, the parameter name is displayed in the dimension’s label in
the Graphics window. Use dimension parameters in expressions in geometry and
other features as described in Dimension Parameters.
• Help Points: Change the help point coordinates for the two edges. These are used as
initial guesses when computing a point of intersection (see Help Points).
Coincident
Use the Coincident constraint to constrain two geometric entities to coincide with
each other. Depending on the type of entities selected for the constraint the following
conditions may apply:
• A vertex coincides with a straight edge if the vertex lies on the line.
• A vertex coincides with a circular edge if the vertex lies on the circle.
• Geometric Entity Selection: Change the selected entities and their type.
• Help Points: Change the help point coordinates for the selected entities. These are
used as initial guesses when making a vertex coincident with a curved edge (see Help
Points).
Concentric
Use the Concentric constraint to constrain circular edges to have the same center, or
to constrain the center point of circular edges and vertices to coincide.
• Geometric Entity Selection: Change the selected circular edges and vertices.
Directed Distance
Use the Directed Distance dimension to set the distance in a specified direction
between two geometric entities.
The Settings window for Directed Distance contains the following sections:
Distance
Use the Distance dimension to set the distance between two geometric entities. The
distance from/to an edge is defined using a stationary point for the point-to-point
distance along the edge. For example, there are four ways to define the distance
between two circles. When you applied to two straight edges, the distance dimension
constrains the edges to be parallel. For singe edge the distance is applied between the
endpoints for the edge.
• Geometric Entity Selection: Change the selected entities and their type.
Equal Distance
Use the Equal Distance constraint to constrain the distances between two pairs of
geometric entities to be equal. The distance from and to an edge is defined using a
stationary point for the point-to-point distance along the edge. For example, there are
four ways to define the distance between two circles.
The help points (the points where you clicked when selecting the edges) are used to
determine which distance to measure.
The Settings window for Equal Distance contains the following sections:
• First Distance: Change the selected entities and their type for the first pair.
Equal Radius
Use the Equal Radius constraint to constrains two circular edges to have the same
radius.
EDGE SELECTION
Change the selected entities.
GRAPHICS
Edit the label displayed with the arrow symbol for the constraint.
Horizontal
Use the Horizontal constraint to constrain straight edges to be parallel to the x-axis.
Parallel
Use the Parallel constraint to constrain straight edges to be parallel.
EDGE SELECTION
Change the selected entities.
Perpendicular
Use the Perpendicular constraint to constrain two straight edges to be orthogonal.
Position
Use the Position dimension to specify the coordinates for a vertex.
Radius
Use the Radius dimension to set the radius for a circular edge.
Tangent Constraint
Use the Tangent Constraint to constrain two edges to have a point of tangency. For
each edge, you can optionally specify an adjacent vertex as the point of tangency.
The Settings window for Tangent Constraint contains the following sections:
• First Edge: Change the selected edge. To set the point of tangency to a vertex, from
the Point of tangency list, choose Vertex, then activate the Vertex selection, and select
a vertex adjacent to the edge. With the default setting for Point of tangency,
Anywhere, the tangency can be applied anywhere on the edge.
• Second Edge: Change the selected edge and point of tangency similarly as in the First
Edge section.
• Help Points: Change the help point coordinates for the selected edges. The help
points are used as the initial guess when computing the intersection of the edges if
a vertex has not been selected (see Help Points).
The Settings window for Total Edge Length contains the following section:
Vertical
Use the Vertical constraint to constrain straight edges to be parallel to the y-axis.
EDGE SELECTION
Change the selected entities.
• Geometric Entity Selection: Change the selected entities and their type.
• Dimension Value:
- Enter the distance expression in the Distance text field. The distance may be
positive, negative, or zero.
- Toggle the Constrain button to switch between using the dimension as a
constraining dimension ( , default) or measuring dimension ( ). The value
of a measuring dimension is not imposed as a requirement to the drawing.
Instead it is updated according to other dimensions and constraints in the
geometry sequence. For more information see Measuring Dimensions.
- Select the Create Parameter check box to generate a parameter for the dimension.
Edit the name displayed in the Parameter name text field. When in sketch
visualization mode, the parameter name is displayed in the dimension’s label in
the Graphics window. Use dimension parameters in expressions in geometry and
other features as described in Dimension Parameters.
• Help Points: Change the help point coordinates for the selected entities. The help
points are used as the initial guess to determine which x-distance to measure (see
Help Points).
• Geometric Entity Selection: Change the selected entities and their type.
• Dimension Value:
- Enter the distance expression in the Distance text field. The distance may be
positive, negative, or zero.
- Toggle the Constrain button to switch between using the dimension as a
constraining dimension ( , default) or measuring dimension ( ). The value
of a measuring dimension is not imposed as a requirement to the drawing.
Instead it is updated according to other dimensions and constraints in the
geometry sequence. For more information see Measuring Dimensions.
- Select the Create Parameter check box to generate a parameter for the dimension.
Edit the name displayed in the Parameter name text field. When in sketch
visualization mode, the parameter name is displayed in the dimension’s label in
the Graphics window. Use dimension parameters in expressions in geometry and
other features as described in Dimension Parameters.
• Help Points: Change the help point coordinates for the selected entities. The help
points are used as the initial guess to determine which y-distance to measure (see
Help Points).
With a license for the Design Module the software defaults to the CAD kernel for
representing the geometry. You need to use the CAD kernel to apply the geometry
features included with this module, for example the defeaturing and repair tools, as
well as to import 3D geometries using various 3D CAD file formats. Exceptions are
the constraint and dimension features that do not require the CAD kernel.
The 3D operations and primitives listed in Table 2-2 do not support the CAD kernel
— they always use the COMSOL kernel. However, an automatic conversion is
performed for these objects before they are used as input to geometry features that
require the CAD kernel, see Converting Objects to CAD Kernel Representation.
TABLE 2-2: 3D GEOMETRY FEATURES THAT DO NOT SUPPORT THE PARASOLID GEOMETRY KERNEL
GEOMETRY REPRESENTATION | 37
When you change the Geometry representation setting, all nodes that support the CAD
kernel are marked as edited with an asterisk (*) in the upper-right corner of the node’s
icon. To rebuild the geometry using the new kernel, click the Build All button ( ).
To avoid re-solving an already solved model, you can click the Update Solution button
( ) on the Study toolbar to map the solutions from the geometry represented by the
CAD kernel to the new geometry represented by the COMSOL kernel.
If you solve a model using the CAD kernel, it is not possible to view and
postprocess the solution if you open it in a COMSOL Multiphysics
session where a license for the CAD Import Module, Design Module, or
one of the LiveLink for CAD products is not available, unless, before
saving the model, you change the geometry representation to COMSOL
kernel and update the solution. This is possible to do only for 3D
geometry sequences that do not contain geometry features that require
the CAD kernel.
When you create a new model, its default geometry representation is controlled by the
preference setting Geometry>Geometry representation>In new geometries.
When you open an existing model, you normally use the geometry representation used
in the model. To always get the possibility to convert the geometry to the COMSOL
kernel, change the preference setting Geometry>Geometry representation>When
opening an existing model to Convert to COMSOL kernel.
If your license includes the Design Module and the geometry representation is set to
use the CAD kernel, you can select the Design Module Boolean operations check box in
a 3D Geometry node’s Settings window to use the Boolean operations available with
the Design Module. When you open an existing model, you normally use the Boolean
operations used in the model. To always use the Design Module Boolean operations
when adding a new component or part, select the preference setting Geometry>3D
Design Module Boolean operations>Use in new geometries.
CONVERT TO COMSOL
Select the objects that you want to convert in the Graphics window. The selected
objects are displayed in the Input objects list.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
GEOMETRY REPRESENTATION | 39
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
The automatic conversion to CAD kernel representation is not performed if one of the
input objects to the Boolean or conversion operation is the result of a previous Convert
to COMSOL operation.
The imported geometry objects are represented by the CAD kernel, see Working with
the CAD Kernel, which is the geometric kernel used by the CAD Import Module,
Design Module, and LiveLink™ products interfacing CAD packages.
Some 3D CAD formats use periodic parameterization for edges and faces. For
example, a full-revolution cylindrical edge or face appears seamless in the CAD
program. During import edges or faces that have a periodic parameterization are cut
in two halves by inserting new vertices and edges. This is done because the mesh
algorithms do not support periodic entities. You can ignore such inserted edges using
an Ignore Edges feature from Virtual Operations.
SUPPORTED FORMATS
The CAD import supports the following 3D CAD formats:
TABLE 2-3: SUPPORTED 3D CAD FILE FORMATS
Note 3: This format requires, in addition to the CAD Import Module, or Design
Module, or a LiveLink product for a CAD package, a license for the File Import for
CATIA V5 module.
Note 4: Support for the NX® file format is available only on a supported Windows or
Linux operating system.
Note 5: Embedded parts in assemblies are not supported. To import such an assembly,
first convert the embedded parts to external parts.
ASSOCIATIVITY
When possible the import maintains associativity for the imported geometry objects,
so that when the CAD file is re-imported the settings applied to the geometric entities,
for example physics or material settings, are retained. To maintain associativity the
import relies on information in the CAD file that uniquely identifies the geometry
objects and their entities, such as faces, edges, and points. This information is usually
included in the CAD file if the geometry is saved in the format of the CAD software
where it was created, but not when the geometry is exported to another CAD format.
When re-importing a CAD file the import automatically tries to identify and match all
geometry objects and their entities to the previous version. This may fail if the
topology (structure) of the geometry has changed since the last import.
LENGTH UNIT
In the Length unit list, select From CAD document to change the geometry’s length unit
to the unit in the file (if the file has a length unit). Select From COMSOL to keep the
geometry’s length unit and scale the objects in the file to the geometry’s unit.
OBJECTS TO IMPORT
Select the types of objects to import using the Solids, Surfaces, and Curves and points
check boxes.
If the Surfaces check box is selected, you can choose how COMSOL imports the
surfaces using the list under For surface objects:
• Choose Form solids (the default) to knit together surface objects to form solids. The
input surface objects must have manifold topology, and the operation can only form
solids with manifold topology. An example of a solid object with nonmanifold
topology is a solid that has an interior surface that separates two domains. A surface
object that contains an edge that is adjacent to more than one boundary is an
example of a surface object with nonmanifold topology.
• Choose Knit surfaces to form surface objects by knitting.
• Choose Do not knit to not form any surface or solid objects from the imported
surfaces.
For the Form Solids and Knit surfaces options select the Fill holes check box to generate
new faces to replace missing geometry.
To import wireframe geometry you need to select the Curves and points check box.
With this option, the Unite curve objects check box is selected by default to unite the
imported curve objects, which speeds up the rendering of the geometry.
If you select the Check imported objects for errors check box, the validity of the
imported objects is checked as the last stage of the import. Warning nodes appear with
details about the detected problems, if any. Use the Zoom to Selection button next to
the Entities list in a warning node to locate the problematic edges or faces. For
information on geometry problems that may occur see the Check feature.
If you select the Repair imported objects check box, the software tries to repair defects
and remove details smaller than the Absolute repair tolerance.
If you select the Remove redundant edges and vertices check box, the software tries to
remove redundant edges and vertices.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the objects consist of
available as selections in all applicable selection lists (in physics and materials settings,
for example), choose an option from the Show in physics list: All levels, Domain selection,
Boundary selection, Edge selection, or Point selection. The default is Domain selection,
which is suitable for use with materials and physics defined in domains. For use with a
boundary condition, for example, choose Boundary selection. These selections do not
appear as separate selection nodes in the model tree. Select Off to not make any
selection available outside of the geometry sequence.
Select the Individual objects selections check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence for each individual object in the geometry
file and for each relevant entity level. To also make all or one of the types of resulting
entities (domains, boundaries, edges, and points) that the objects consist of available
as selections in all applicable selection lists (in physics and materials settings, for
• Material assignments can generate objects selections that are named according to
the material names in the CAD file.
• Layer assignments of objects and entities, when supported by the CAD format, can
generate object, boundary, edge, and point selections that are named according to
the layer names in the CAD file.
• Color assignments to objects, faces, or edges can generate object, boundary, and
edge selections, respectively.
After the import the generated selections are displayed in the Settings window for the
Import node in sections named according to the entity level of the selections:
• Object Selections
• Boundary Selections
• Edge Selections
• Point Selections
Depending on which selections are generated, a subset of the above sections is
displayed. The selections are listed in tables with the following columns:
• Name: Here you can edit the selection name that is generated by the import. For
colors the generated names are of the type Color 1, Color 2, etc., for materials and
layers the names from the CAD file are used.
• Name in file: This column contains the original name of the selection. To display this
column select the Show names from file check box above the table.
• Keep: Select the check box in this column to make the selection available in selection
lists for subsequent nodes in the geometry sequence.
Click a row in a table to highlight the corresponding selection on the geometry in the
Graphics window. To help with identifying the color selections, these are highlighted
with the colors defined in the imported CAD file. To always highlight on the geometry
the color selections that you keep select from the Graphics toolbar Colors > Show
Selection Colors.
The selections listed in the Object Selections section that are made available for the
geometry sequence or physics setup are always available in all input selection lists,
including all applicable entity selection lists. For example, the object selection of a solid
object, generated for a material from the CAD file, automatically results in domain,
boundary, edge, and point selections with the same name, so that you can use it to
apply a boundary material, or a boundary condition. In contrast, a color assigned to a
face of a solid object in the CAD file results in a boundary selection that is displayed
in the Boundary Selections section, and it is available in all applicable boundary selection
lists, but not, for example, in any edge selection lists.
ASSIGNED ATTRIBUTES
Select the Construction geometry check box to make the resulting objects available only
in the feature’s geometry sequence. For more information see Construction
Geometry.
Next, select Export selected objects to export only chosen geometry objects or select
Export entire finalized geometry to export the resulting geometry of a Form Union or
Form Assembly operation.
Note that it is not possible to export to the formats mentioned here the
result of virtual geometry operations that come after a Form Union or
Form Assembly node in the geometry sequence.
When exporting to an ACIS file format choose the ACIS file format version. Available
versions are 4.0, 7.0, 2016 1.0 (default).
For the Parasolid, IGES, and STEP file formats select a Length Unit. A unit conversion
is carried out when the selected unit is different from the length unit of the geometry.
A unit conversion is not done for the default From geometry option.
For the Parasolid file formats the option Split in manifold objects is selected by default
to make sure that the exported geometry objects are manifold objects. A non-manifold
object is, for example, a solid with an interior boundary that separates two domains.
When exported using this option the solid is split along the interior boundary into two
separate objects. When exporting to the ACIS, IGES, and STEP formats non-manifold
objects are always split.
The Parasolid binary and text formats do not allow coordinate values
larger than 500. Therefore you might have to change the export unit in
the Length unit list box to be able to export the geometry.
COMSOL objects are automatically converted to CAD objects before saving the file.
To access the defeaturing tools, from the Geometry toolbar, Defeaturing and Repair
menu, select Delete Fillets, Delete Holes, Delete Short Edges, Delete Sliver Faces, Delete
Small Faces, Delete Spikes, Delete Faces, or Detach Faces from the submenu. Here you
also find the Detect Interferences tool to analyze the interference of geometry objects.
You can also right-click the Geometry node and select the same options from the
context menu.
When you are on the Tools window for a defeaturing operation, you can switch to
another defeaturing tool by clicking one of the corresponding buttons at the top of the
page. Upon completion of the defeaturing operation a corresponding feature node,
which you can modify, appears in the geometry sequence.
In the field Maximum fillet radius, Maximum hole radius, Maximum edge length, Maximum
face width, Maximum face size, or Maximum spike width, enter the maximum size of the
details you want to delete. When you click the Find button, a list of details that are
smaller than the given size are shown in the list below. To delete the found details,
either click the Delete All button, or select a subset of the found details in the list and
click Delete Selected. Then, the selected details are deleted from their objects, and a
node corresponding to this operation is added to the geometry branch of the model
tree.
Delete Faces
The Delete Faces ( ) page is used to delete faces and replace them either with a new
face (if Heal method is Fill) or a by growing or shrinking the adjacent faces (if Heal
method is Patch). Select the faces you want to delete in the Graphics window. They
appear in the Faces to delete list. Select the Heal as through hole check box if you have
selected faces that make up a hole that you want to delete. When you click the Delete
Selected button, the selected faces are deleted, and a node corresponding to this
operation is added to the geometry branch of the model tree.
If you want to modify the performed deletion operation, you can select the added node
in the geometry branch. Then, edit the node’s form that appears in the Settings
window. Click the Build Selected button ( ) to see the result of your edits.
Detach Faces
The Detach Faces ( ) page is used to detach faces from a solid object (the parent) to
form a new solid object (the child). Select the faces you want to detach in the Graphics
window. They appear in the Faces to detach list.
The Parent heal method list determines how to replace the detached faces in the parent
object: Fill means that a new face is constructed, and Patch means that the adjacent
faces are grown or shrunk to heal the wound.
The Child heal method list controls how to construct the child solid from the detached
faces: Fill means that a new face is formed based on the surrounding edges of each
wound, Patch from child means that the detached faces grow or shrink to form a solid,
and Patch from parent means that the parent faces surrounding the detached faces grow
or shrink to form a solid together with the detached faces.
When you click the Detach Selected button, the program detaches the selected faces and
adds a node corresponding to this operation to the geometry branch of the model tree.
If you want to modify the performed detach operation, select the added node in the
geometry branch. Then edit the node’s form that appears in the Settings window. Click
the Build Selected button ( ) to see the result of your edits.
In the Input objects list, select the objects you want to analyze. In the Tolerance text
field, enter the absolute tolerance, which has the default value of 0.1 mm, to be used
for the search. When you click the Find Interferences button, a list of interferences is
displayed in the Interfering faces list.
The interference detection applies to the exterior faces of the selected objects, thus
ignoring interior faces, isolated edges and vertices. Each detected interference involves
two objects. The following types of interferences appear in the list when detected by
the tool:
• Touch. Two interfering objects are classified as touching when they intersect, and
the interfering faces are located within a distance less than the specified tolerance
from each other. Thus, an intersection (as defined below) may become a touch after
you increase the tolerance such that it becomes larger than the distance between the
interfering faces.
• Intersection. An intersection between the two objects is detected, and the
interfering faces are located at a distance that is larger than the tolerance from each
other.
• Gap. No intersection is detected between the two objects, but they have faces with
portions that are located within a distance less than the specified tolerance from each
other. The detected size of the gap appears in the list.
• Containment. One object is a contained in another object, which is a solid.
By default the Interfering faces list displays the detected interferences in a tree with the
interferences as the top level nodes sorted by the type of interference. To sort the list
by the objects select the Group by object check box. In this case the objects involved in
an interference are listed as the top level nodes in the tree. Expand a top level node to
see the list of objects that the object on the top level is interfering with. Expand sub
node to see the list of detected interferences for the objects. You can expand the nodes
for the detected interferences to reveal the two interfering objects, and then expand
the nodes for the objects to look at the interfering faces displayed in sub-nodes
according to the following:
• For two intersecting solid objects the nodes for the objects have two sub-nodes
each, Inside and Outside. Click the Inside node to highlight the parts of the
interfering faces that are inside the other object. Click the Outside node to highlight
the parts of the interfering faces that are outside the other object.
Note that the face partitioning that is the result of the intersections is visible only while
working with the Detect Interferences tool, and that the geometry is not modified by
this tool.
• Choose Interfering faces only to show only the interfering faces involved in the
selected node. For example, if you select an intersection node from the list, only the
face regions from the two objects that are involved in the intersection are shown.
• Choose Selected object (default) to show only the objects involved in the selected
node.
• Choose Other object to show the object that is interfering with the currently selected
object sub-node to the interference node.
• Choose Both objects to show both objects involved in a interference when you select
one of the sub-nodes to the interference node.
• Choose All objects to show all objects regardless of which nodes are selected.
The Zoom to Selection button next to the Interfering faces list may also help to find the
detected interferences on the geometry. For a better view of the interferences between
objects you can also click the Wireframe Rendering or Transparency buttons on the
Graphics toolbar.
Cap Faces
You can add cap faces to fill holes in a geometry (for example, to make a domain for
the void inside a cylinder geometry for simulating fluid flow inside the cylinder) or to
partition the geometry. To add cap faces to objects, from the Geometry toolbar,
Defeaturing and Repair menu, select Cap Faces ( ).
CAP FACES
Select edges that form loops around the faces you want to create. The edges display in
the Bounding edges list.
A cap face is created for each loop of edges in the input selection. The cap faces are
joined with the original objects. If new closed volumes are created by the cap faces,
these are converted to solid domains. The selected edges can contain more than one
edge loop, but no two loops can have edges or vertices in common. The selected edges
can contain edges from more than one object. In this case, each object is processed
individually. This means that two edges or vertices can overlap as long as they are not
in the same object. It also means that if new closed volumes are created, but bounded
by faces from more than one object, these volumes are not converted to solid domains.
If you want to perform a Cap Faces operation involving more than one object, first
unite the objects using a Union operation.
GEOMETRY FEATURES | 53
SELECTIONS OF RESULTING ENTITIES
If you want to make the resulting entities contribute to a cumulative selection, select
a cumulative selection from the Contribute to list (the default, None, gives no
contribution), or click the New button to create a new cumulative selection (see
Cumulative Selections in the COMSOL Multiphysics Reference Manual).
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Chamfer
To chamfer corners in 3D geometry objects, on the Geometry toolbar, click
Chamfer ( ). You can also right-click the Geometry node to add this node from the
context menu.
Click the Active button to toggle between turning ON and OFF the Edges to chamfer
selections.
RADIUS
Enter the Radius of the chamfer. The size of the chamfer is determined by rolling a ball
of the given radius so that it is tangent to the faces that are adjacent to the edge. The
chamfer surface is generated by the line segment that connects the points of tangency.
OPTIONS
Select or clear the following check boxes as needed.
• If the Propagate to tangent edges check box is selected, the chamfer is propagated to
edges that have continuous tangent to the edges selected in Edges to chamfer.
• If the Preserve overlapped entities check box is selected, geometric features such as
holes and bosses on faces that are overlapped by the chamfer surface are preserved.
• Select the Y-shaped chamfer check box to get a y-shaped chamfer at a vertex where
three or more edges meet and there are two chamfer surfaces of different convexity.
In some cases, using this option is necessary for the operation to succeed.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
GEOMETRY FEATURES | 55
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Check
To check the validity of CAD objects, from the Geometry toolbar, Defeaturing and
Repair menu, select Check ( ).
Select the objects that you want to check in the Graphics window. These then appear
in the Input objects list. If the geometry sequence includes user-defined selections
above the Check node, choose Manual to select objects, or choose one of the selection
nodes from the list next to Input objects. Click the Active button to toggle between
turning ON and OFF the Input objects selections.
If any problems are detected in the selected objects when building this feature,
warning nodes appear with details about the issues. In the warning nodes use the Zoom
to Selection button next to the Entities list to locate the faulty edges or faces.
Warnings on geometric entities are usually associated with objects imported from CAD
files, but could also be introduced by geometric operations, for example when
repairing an object with a tolerance that is too large. The presence of warnings does
not generally mean that the geometry is invalid and cannot be used for setting up a
simulation. However, the faulty entities may in some cases cause the failure of
geometric operations that involve these entities, and meshing of entities with certain
types of faults may fail. In the following you can read about two commonly occurring
class of faulty geometric entities, and how to repair these:
• Tolerance issues: The warning messages vertex not on edge, vertex not on face, edge
not on face belong to this category. These type of faults indicate that the topology
(structure) of the object is not correct locally, for example that an edge is not located
on the boundary where it is expected to be. You can often repair tolerance issues in
an object by applying the Repair operation with a tolerance that is larger than the
tolerance used for the import. Repair adjusts the tolerance of the entities where
required, and, if this fixes the issues, warning nodes will not be displayed after the
Delete Faces
To delete and replace faces from an object, from the Geometry toolbar, Defeaturing and
Repair menu, select Delete Faces ( ). This opens the Delete Faces window. When the
deletion operation has been performed, you can modify it by editing the
corresponding Delete Faces node that appears in the geometry branch by clicking it.
The Delete Faces tool can only be applied to objects that are represented
by the Parasolid® geometry kernel, also called CAD objects.
DELETE FACES
In the Faces to delete list, select the faces you want to delete. In the Heal method list,
select the method to use for replacing the deleted faces: Fill means that the deleted faces
are replaced with a new face, while Patch means that the adjacent faces are grown or
shrunk to heal the wound. Select the Heal as through hole check box if you have selected
faces that make up a hole that you want to delete.
GEOMETRY FEATURES | 57
SELECTIONS OF RESULTING ENTITIES
If you want to make the resulting entities contribute to a cumulative selection, select
a cumulative selection from the Contribute to list (the default, None, gives no
contribution), or click the New button to create a new cumulative selection (see
Cumulative Selections in the COMSOL Multiphysics Reference Manual).
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
Delete Fillets
To delete fillets from an object, from the Geometry toolbar, Defeaturing and Repair
menu, select Delete Fillets ( ). This opens the Delete Fillets window, see Finding and
Deleting Small Details. When the deletion operation has been performed, you can
modify it by editing the corresponding Delete Fillets node that appears in the
geometry branch by clicking it.
The Delete Fillets tool can only be applied to objects that are represented
by the Parasolid® geometry kernel, also called CAD objects.
Note that fillets found on nonmanifold objects are not possible to delete. An example
of a nonmanifold object is an object with several domains. Such an object can for
example result from a Union or a Partition operation. To remove the fillets make sure
to defeature the geometry objects before applying Boolean operations that result in
nonmanifold objects.
The Delete Fillets tool cannot delete fillets for which the adjacent faces cannot be
extended to cover the gap. The figure below shows an example of such fillets. Applying
DELETE FILLETS
In the Input objects list, select the objects you want to delete fillets from. In the field
Maximum fillet radius, enter the maximum size of the fillets you want to delete. When
you click the Find Fillets button, a list of fillets with radius smaller that the given value
is shown in the Fillet selection list. If Deletion type is All fillets, all such fillets are deleted.
You can delete a subset of these fillets by clicking in the Fillet selection list, and choosing
Selected fillets in the Deletion type list.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
GEOMETRY FEATURES | 59
Delete Holes
To delete cylindrical holes from an object, from the Geometry toolbar, Defeaturing and
Repair menu, select Delete Holes ( ). This opens the Delete Holes window, see Finding
and Deleting Small Details. When the deletion operation has been performed, you can
modify it by editing the corresponding Delete Fillets node that appears in the
geometry branch by clicking it.
The Delete Holes tool can only be applied to objects that are represented
by the CAD kernel; see Converting Objects to CAD Kernel
Representation.
Note that holes found on nonmanifold objects are not possible to delete. An example
of a nonmanifold object is an object with several domains. Such an object can for
example result from a Union or a Partition operation. To remove the holes make sure
to defeature the geometry objects before applying Boolean operations that result in
nonmanifold objects.
DELETE HOLES
In the Input objects list, select the objects you want to delete holes from. In the field
Maximum hole radius, enter the maximum size of the holes you want to delete. When
you click the Find Holes button, a list of holes with radius smaller that the given value
is shown in the Hole selection list. If Deletion type is All holes, all such holes are deleted.
You can delete a subset of these holes by clicking in the Hole selection list, and choosing
Selected holes in the Deletion type list.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
The Delete Short Edges tool can only be applied to objects that are
represented by the Parasolid® geometry kernel, also called CAD objects.
Note that this defeaturing tool cannot find short edges on nonmanifold objects. An
example of a nonmanifold object is an object with several domains. Such an object can
for example result from a Union or a Partition operation. To avoid this situation
defeature the geometry objects before applying Boolean operations that result in
nonmanifold objects.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
GEOMETRY FEATURES | 61
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
The Delete Sliver Faces tool can only be applied to objects that are
represented by the Parasolid® geometry kernel, also called CAD objects.
Note that this defeaturing tool cannot find sliver faces on nonmanifold objects. An
example of a nonmanifold object is an object with several domains. Such an object can
for example result from a Union or a Partition operation. To avoid this situation
defeature the geometry objects before applying Boolean operations that result in
nonmanifold objects.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
The Delete Small Faces tool can only be applied to objects that are
represented by the Parasolid® geometry kernel, also called CAD objects.
Note that this defeaturing tool cannot find small faces on nonmanifold objects. An
example of a nonmanifold object is an object with several domains. Such an object can
for example result from a Union or a Partition operation. To avoid this situation
defeature the geometry objects before applying Boolean operations that result in
nonmanifold objects.
GEOMETRY FEATURES | 63
SELECTIONS OF RESULTING ENTITIES
If you want to make the resulting entities contribute to a cumulative selection, select
a cumulative selection from the Contribute to list (the default, None, gives no
contribution), or click the New button to create a new cumulative selection (see
Cumulative Selections in the COMSOL Multiphysics Reference Manual).
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
Delete Spikes
A spike is a long and narrow protrusion on an edge or corner of a face defined by two
or three edges. To delete spikes from an object, from the Geometry toolbar, Defeaturing
and Repair menu, select Delete Spikes ( ). This opens the Delete Spikes window, see
Finding and Deleting Small Details. When the deletion operation has been performed,
you can modify it by editing the corresponding Delete Spikes node that appears in the
geometry branch by clicking it.
The Delete Spikes tool can only be applied to objects that are represented
by the Parasolid® geometry kernel, also called CAD objects.
Note that this defeaturing tool cannot find spikes on faces that belong to nonmanifold
objects. An example of a nonmanifold object is an object with several domains. Such
an object can for example result from a Union or a Partition operation. To avoid this
situation defeature the geometry objects before applying Boolean operations that
result in nonmanifold objects.
DELETE SPIKES
In the Input objects list, select the objects you want to delete spikes from. In the field
Maximum spike width, enter the maximum width of the spikes you want to delete.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
Detach Faces
To detach faces from an object (the parent) and form a new object (the child), from
the Geometry toolbar, Defeaturing and Repair menu, select Detach Faces ( ). This
opens the Detach Faces window. When the detach operation has been performed, you
can modify it by editing the corresponding Detach Faces node that appears in the
geometry branch by clicking it.
The Detach Faces tool can only be applied to objects that are represented
by the Parasolid® geometry kernel, also called CAD objects.
DETACH FACES
Select the faces you want to detach in the Graphics window. They appear in the Faces
to detach list.
GEOMETRY FEATURES | 65
The Parent heal method list determines how to replace the detached faces in the parent
object: Fill means that a new face is constructed, and Patch means that the adjacent
faces grow or shrink to heal the wound.
The Child heal method list controls how to construct the child solid from the detached
faces: Fill means that a new face is formed based on the surrounding edges of each
wound, Patch from child means that the detached faces are grown or shrunk to form a
solid, and Patch from parent means that the parent faces surrounding the detached
faces are grown or shrunk to form a solid together with the detached faces.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
Fillet
To fillet corners in 3D geometry objects, on the Geometry toolbar, click Fillet ( ).
You can also right-click the Geometry node and add this node from the context menu.
The objects containing the selected edges must have manifold topology in the
neighborhood of the selected edges. In particular, each edge must be adjacent to
exactly two faces. When you build the feature, these adjacent faces are shrunk and a
rolling ball fillet face is inserted in between. The new surface is generated by rolling a
When more than two selected edges meet at a vertex, one or several additional patch
faces are inserted at the vertex to get a smooth result.
If the radius is large, it can happen that the fillet face overflows the original faces. In
this case the fillet face meets other, more distant, faces in the object.
EDGES
Select the edges that you want to fillet in the Graphics window. They then appear in the
Edges to fillet list. If the geometry sequence includes user-defined selections above the
Fillet node, choose Manual to select edges, or choose one of the selection nodes from
the list next to Edges to fillet.
Click the Active button to toggle between turning ON and OFF the Edges to fillet
selections.
RADIUS
Enter the Radius of the fillet. The fillet surface is generated by rolling a ball of the given
radius so that it is tangent to the faces adjacent to the edge.
GEOMETRY FEATURES | 67
OPTIONS
Select or clear the following check boxes as needed.
• If the Propagate to tangent edges check box is selected, the fillet is propagated to
edges that have continuous tangent to the edges selected in Edges to fillet.
• If the Preserve overlapped entities check box is selected, geometric features such as
holes and bosses on faces that are overlapped by the fillet surface are preserved.
• Select the Y-shaped fillet check box to get a y-shaped fillet at a vertex where three or
more edges meet and there are two fillet surfaces of different convexity. In some
cases, using this option is necessary for the operation to succeed.
• Select the Fillet sharp edges at vertices check box to get a smooth fillet surface at
vertices where two filleted edges intersect at an angle.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Knit to Solid
To knit surface objects to form solid objects, from the Geometry toolbar, Defeaturing
and Repair menu, select Knit to Solid ( ).
KNIT TO SOLID
Select the objects to knit together in the Graphics window. They appear in the Input
objects list.
The knitting merges edges that have a distance smaller than the Absolute repair
tolerance and deletes gaps and spikes smaller than the Absolute repair tolerance. If the
Fill holes check box is selected the operation attempts to generate new faces to replace
missing geometry.
The input surface objects must have manifold topology, and the operation can only
form solids with manifold topology. An example of a solid object with nonmanifold
topology is a solid that has an interior surface that separates two domains. A surface
object that contains an edge that is adjacent to more than one boundary is an example
of a surface object with nonmanifold topology.
GEOMETRY FEATURES | 69
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Loft
To create a lofted object from a set of profiles in 3D, on the Geometry toolbar, click
Loft ( ). You can also right-click the Geometry node and add this node from the
context menu. Enter the properties of the loft operation according to the following
sections.
Each profile is a chain or loop of edges, also called a profile curve. The profiles must
be all open or all closed, and they must have the same number of edges. The output is
a loft surface, which consists of one or several faces that interpolate the profiles. In the
closed curve case, a profile can optionally contain a set of faces (with manifold
topology) that is bounded by the profile curve. These faces can be added to the loft
surface to give the resulting object. The start and end profiles can degenerate to a
point. Also, in the closed profile case, the start and end profiles can degenerate to an
open curve. The loft can be periodic, which means that the end profile should not be
specified because it equals the start profile (in this case the degenerate profiles are not
allowed).
There can also be curves in the lofting direction that the loft surface should interpolate;
these are called guide curves. If there are no guide curves, there must be at least two
profiles.
• Select the Periodic loft check box to create a periodic loft, for which the start and
end profiles coincide.
• If the Unite with input objects check box is selected, the resulting object is the union
of the loft surface with the objects containing the start and end profiles and the
objects containing the start and end guide curves. The faces that might exist in the
start and end profiles are always included in the resulting object.
• If the Keep intermediate profile faces check box is selected, faces in the intermediate
profile objects are added to the resulting object. Any faces belonging to the start and
end profiles are always kept.
• Select an Object type — Solid (the default) or Surface. This determines whether
domains should be created in the resulting object.
• Select a Face partitioning:
- If Minimal (the default) is selected, the loft surface is divided along the loft
direction only at vertices where the profile curve has a tangent discontinuity.
- If Columns is selected, the loft surface is divided along the loft direction at each
vertex of the profile curves.
- If Grid is selected, in addition to the Columns partitioning, the loft surface is
divided by the profile curves. The loft surface is always partitioned by the profile
faces when Keep intermediate profile faces is selected.
PROFILES
This section specifies the profiles that are not specified in the Start Profile or End Profile
sections.
Select the objects that you want to use as profiles in the Graphics window. You can
select a set of connected surface objects, curve objects, or point objects. Surface objects
must have manifold topology and be bounded by a single edge loop. Curve objects
must be a single edge loop or chain. Point objects are only allowed for use as start or
end profiles and must have a single vertex. The selected objects appear in the Profile
objects list. If the geometry sequence includes user-defined selections above the Loft
node, choose Manual to select objects, or choose one of the selection nodes from the
list next to Profile objects.
Click the Active button to toggle between turning ON and OFF the Profile objects
selection.
GEOMETRY FEATURES | 71
START PROFILE
Use this section to specify the start profile in the following cases:
• If you want to explicitly specify which profile should be the start profile.
• If the start profile is part of a larger object.
• If you want to prescribe the direction of the loft surface on the start profile.
In other cases, you can specify the start profile in the Profiles section, and leave the
selection in the Start Profile section empty.
Select a Geometric entity level for the profile — Object, Point, Edge, or Boundary. Click
to select the entities in the Graphics window. An object selection must fulfill the
requirements detailed in the Profiles section. A point selection must consist of a single
point. An edge selection must form a single edge loop or chain. A boundary selection
must have manifold topology and be bounded by a single edge loop. The selected
entities appear in the Start profile list. If the geometry sequence includes user-defined
selections above the Loft node, choose Manual to select objects or entities, or choose
one of the selection nodes from the list next to Input objects.
Click the Active button to toggle between turning ON and OFF the Start profile
selection.
Select a Loft direction — Not prescribed (the default), Parallel, Perpendicular, or At angle.
For Parallel the loft direction is prescribed along the profile curve, while for
Perpendicular or At angle it is only prescribed at the vertices on the profile curve.
Select Relative to — Adjacent faces (the default), Profile faces, or Profile edges’ plane.
When At angle is selected, also enter an Angle (SI unit: deg).
• Adjacent faces are the faces that are adjacent to the profile edges and that are not
contained in the Start profile selection.
• Profile faces are the faces contained in the Start profile selection.
• Profile edges’ plane means that the loft direction is prescribed in relation to the
plane tangent to the profile’s edges at each vertex on the profile curve.
END PROFILE
The settings for this section are analogous to the Start Profile section. This section
should not be used if the loft is periodic.
GUIDE CURVES
Use this section if you want to specify guide curves for the lofted object.
Click the Active button to toggle between turning ON and OFF the Guide objects
selection.
In other cases, you can specify the start guide curve in the Guide Curves section, and
leave the selection in the Start Guide Curve section empty.
The selected set of edges must form a single edge loop or chain, and fulfill the other
requirements on a guide curve. Click the Active button to toggle between turning ON
and OFF the Edges selection.
Select a Loft surface direction — Not prescribed (the default) or Parallel to adjacent faces,
which means that the loft surface is prescribed to be tangent to the adjacent faces along
the guide curve.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
GEOMETRY FEATURES | 73
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Midsurface
The Midsurface feature is the inverse of the Thicken feature (with symmetric offset).
It removes the thickness of a solid object (having constant thickness), resulting in a
surface object, which can be useful if you can use a Shell interface, for example, and
model the physics on surfaces only.
On the Geometry toolbar, Conversions menu, click Midsurface ( ). You can also
right-click the Geometry node and add this node from the Conversions submenu.
INPUT
Select the objects that you want to use as input in the Graphics window. The objects
appear in the Input objects list. A midsurface object is generated for each input object
independently. If the geometry sequence includes user-defined selections above the
Midsurface node, choose Manual to select objects, or choose one of the selection nodes
from the list next to Input objects.
Click the Active button to toggle between turning ON and OFF the Input objects
selection.
Select the Keep input objects check box to use the selected geometry objects for further
geometry operations.
Click to select the Split in smooth components check box as needed. If this is selected,
each output object is split into components, where each component is of manifold type
and has smooth normal vector.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
GEOMETRY FEATURES | 75
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Projection
Use the Projection feature to compute the projection of 3D objects and entities to a
work plane. This can be useful when you need to reference existing 3D objects in the
2D drawing on the work plane. You can also add a new 2D or 2D axisymmetric
component and add the Projection node there. In that case you can select the work
plane to use for the projection from the 3D component’s geometry sequence, but first
make sure that in the 3D component’s Geometry node the Geometry representation is
set to the CAD kernel.
To add a projection to a Work Plane node’s Plane Geometry sequence, from the Plane
Geometry toolbar select Projection ( ), or right-click a Plane Geometry node under a
Work Plane node and select Projection ( ). Enter the properties of the projection
using the following sections:
PROJECTION
From the Project list, choose All objects (the default) to project all 3D geometry objects
to the work plane, or choose Selected objects, Selected domains, Selected boundaries,
Selected edges, or Selected vertices to project only the objects or entities that you add
to the Entities to project list that appears.
Click the Active button to toggle between turning ON and OFF the Entities to project
selections.
When projecting objects, domains, and boundaries you can select the Projection type
to project the Outline (default) of the selected objects and entities, or to project the
Edges and vertices only, or the Outline, edges, and vertices.
Projecting the outline for surface and solid objects results in the edges that form the
boundary of the shadow of the object’s faces. In this case the edges are projected only
if they coincide with the outline. If you project the outline of a mixed object that
contains isolated edges and vertices, only the outline of the faces is generated, the
isolated edges and vertices are not projected.
You can change the settings for the Repair tolerance list if you experience problems with
the projection operation. Geometric entities that have a distance less than the repair
tolerance are merged.
• The default value in the Repair tolerance list is Automatic, which means a relative
repair tolerance of 10-6.
• Choose Relative to enter a value for the Relative repair tolerance field (the default is
determined by the main Geometry node’s setting). This value is relative to the largest
absolute value of the coordinates of all input objects.
• Choose Absolute to enter a value for the Absolute repair tolerance field (the default
is determined by the main Geometry node’s setting; SI unit: m). This value uses the
same unit as the geometry sequence’s length unit.
When you build this feature, the relative and absolute repair tolerances are set to the
values that are used for the last projected object (with a precision of two digits). This
is useful to find out the tolerance used for the last projected object. After the feature
is built, you can set the Repair tolerance to either Relative or Absolute, then check the
values displayed in the Relative repair tolerance or Absolute repair tolerance fields.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, boundaries, and points — that are applicable) in subsequent nodes in
the plane geometry sequence. To also make all or one of the types of resulting entities
(objects, boundaries, and points) available as selections in applicable selection lists in
the main Geometry node’s geometry sequence, choose an option from the Show in 3D
list: All levels, Object selection (default), Boundary selection, or Point selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the plane geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
GEOMETRY FEATURES | 77
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
Repair
To repair objects, from the Geometry toolbar, Defeaturing and Repair menu, select
Repair ( ).
REPAIR
Select the objects to repair in the Graphics window. They appear in the Input objects list.
The software tries to repair defects and remove details smaller than the Absolute import
tolerance. More precisely:
Select the option Simplify curves and surfaces to also simplify within the Absolute import
tolerance the underlying curve and surface manifolds of the geometric entities.
Repairing objects with this option may improve both the performance and reliability
of geometric operations on some imported geometry, for example it may help in some
cases when Boolean operations on the imported objects fail. Simplification means that
the manifolds are converted where possible to analytical form: linear, circular, and
elliptical curves; and planar, spherical, cylindrical, conical, and toroidal surfaces.
Select the Repair face-to-face inconsistencies in solids check box to try to repair solid
objects with this fault reported by Import, Check, or Repair features.
When the option Check resulting objects is selected the repaired objects are checked for
remaining problems. Warning nodes appear with details about the detected problems,
if any. Use the Zoom to Selection button next to the Entities list in a warning node to
locate the problematic edges or faces. For information on geometry problems see the
Check feature.
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
consist of available as selections in all applicable selection lists (in physics and materials
settings, for example), choose an option from the Show in physics list: All levels, Domain
selection, Boundary selection, Edge selection, or Point selection. The default is Domain
selection, which is suitable for use with materials and physics defined in domains. For
use with a boundary condition, for example, choose Boundary selection. These
selections do not appear as separate selection nodes in the model tree. Select Off to not
make any selection available outside of the geometry sequence.
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
GEOMETRY FEATURES | 79
Thicken
On the Geometry toolbar, Conversions menu, click Thicken ( ) to convert a surface
object to a solid object by giving it a thickness (usually in the normal direction). You
can also right-click the Geometry node and add this node from the Conversions
submenu.
INPUT
Select the objects that you want to thicken in the Graphics window. The objects appear
in the Input objects list. Each input object is thickened independently. If the geometry
sequence includes user-defined selections above the Thicken node, choose Manual to
select objects, or choose one of the selection nodes from the list next to Input objects.
Click the Active button to toggle between turning ON and OFF the Input objects
selections.
Select the Keep input objects check box to use the selected geometry objects for further
geometry operations.
OPTIONS
Select an Offset — Symmetric (the default) or Asymmetric.
Select the Fillet offset edges check box to fillet each convex edge joining two offset
faces, using the offset distance as the fillet radius. This option applies only when the
offset is single-sided; that is, when either the up or down thickness is set to 0.
For either choice, select a Direction — Normal (the default) or Vector. For Vector, and
based on space dimension, enter values or expressions for x, y, and z (SI unit: m)
Select the Resulting objects selection check box to create predefined selections (for all
levels — objects, domains, boundaries, edges, and points — that are applicable) in
subsequent nodes in the geometry sequence. To also make all or one of the types of
resulting entities (domains, boundaries, edges, and points) that the resulting objects
ASSIGNED ATTRIBUTES
From the Construction geometry list choose On to make the resulting objects available
only in the feature’s geometry sequence. The default option Inherit means that the
resulting objects become construction geometry if all input objects are construction
geometry. Choose Off to never output construction geometry objects. For more
information see Construction Geometry.
GEOMETRY FEATURES | 81
82 | CHAPTER 2: GEOMETRY TOOLS AND FEATURES
3
In this section you find detailed COMSOL® API reference information for the
geometry features in the Design Module.
83
D e f e a tur i ng T ool s
To remove unnecessary details in objects imported from a 3D CAD file, and detect
interferences between objects, you can use the defeaturing tools. You access these by
typing:
[Link](<ctag>).geom(<tag>).defeaturing("Fillets");
[Link](<ctag>).geom(<tag>).defeaturing("Holes");
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges");
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces");
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces");
[Link](<ctag>).geom(<tag>).defeaturing("Spikes");
[Link](<ctag>).geom(<tag>).defeaturing("DeleteFaces");
[Link](<ctag>).geom(<tag>).defeaturing("DetachFaces");
[Link](<ctag>).geom(<tag>).
defeaturing("DetectInterferences");
Using the defeaturing tools you can search for small details, without altering your
geometry. If you find small details that you want to remove, a defeaturing tool can
create a feature that removes the details from the geometry.
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
selection("input").set(<onames>);
Set the maximum size of the details (fillets in this case) you want to remove by typing
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
set("entsize",size);
To find the details that are smaller than the given size, type
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
find();
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
detail();
int nd = [Link](<ctag>).geom(<tag>).
defeaturing("Fillets").detail().size();
In general, a detail (fillet in this case) consists of a number of geometric entities. For
example, a fillet consists of a number of faces. To get the entity numbers in the nth
detail, type
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
deleteAll(<ftag>);
This adds a feature, tagged <ftag>, that performs the deletion operation to the
geometry sequence, after the current feature, and build this feature. In this case, it adds
a DeleteFillets feature.
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
detail().setGroup(2,5);
DEFEATURING TOOLS | 85
to delete fillets number 2 and 5. You can also use, for example,
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
detail().addGroup(7,8);
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
detail().removeGroup(3);
to add and remove details from the selection. Perform the deletion by typing
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
delete(<ftag>);
This adds a DeleteFillets feature tagged <ftag> after the current feature in the
geometry sequence.
DEFEATURING METHODS
[Link](<ctag>).geom(<tag>).feature(<ftag>).find() searches for
small details, for a defeaturing feature <ftag>.
[Link](<ctag>).geom(<tag>).defeaturing(tooltag).find()
searches for small details, for a defeaturing tool tooltag.
[Link](<ctag>).geom(<tag>).defeaturing(tooltag).detail().
selMethod manipulates the selection of details to remove, for a defeaturing tool
tooltag.
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail().
selMethod manipulates the selection of details to remove, for a defeaturing feature
<ftag>.
[Link](<ctag>).geom(<tag>).defeaturing(tooltag).
delete(<ftag>) creates a defeaturing feature of type tooltag, tagged <ftag>, with
the properties currently specified in the defeaturing tool. The property delete of the
created feature is set to selected. If the feature <ftag> can be built, it is inserted in
the geometry sequence after the current feature, otherwise the feature is discarded.
[Link](<ctag>).geom(<tag>).defeaturing(tooltag).
deleteAll(<ftag>) creates a defeaturing feature of type tooltag, tagged <ftag>,
with the properties currently specified in the defeaturing tool. The property delete of
the created feature is set to all. If the feature <ftag> can be built, it is inserted in the
geometry sequence after the current feature, otherwise the feature is discarded.
The find method on the corresponding feature or defeaturing tool provides the
defeaturing selection with a list of details. Each detail is a group of geometric entities.
Group numbers, <groups>, is an array of integers that index into the list of details.
You can select groups either by explicitly referring to group numbers, or by selecting
geometric entities. In the latter case, any group that has non-empty intersection with
the provided entity selection is selected.
int[] [Link](<groups>) returns the group numbers for the selected groups.
[Link](<ctag>).geom(<tag>).defeaturing("DeleteFaces").
delete(<ftag>);
DEFEATURING TOOLS | 87
This adds a DeleteFaces feature tagged <ftag> after the current feature in the
geometry sequence.
[Link](<ctag>).geom(<tag>).defeaturing("DetachFaces").
delete(<ftag>);
[Link]("abstol", value);
[Link]();
Each node listed in Interfering faces list in the user interface corresponds to a group
of faces in GeomObjectGroupSelection. To access the data for a group, use its integer
group index:
The face numbers in the groups do not refer to the input objects. Rather, they refer to
objects in a local state, where the tool has imprinted edges where objects interfere. To
hide faces in the local state, first type
[Link](false);
DEFEATURING TOOLS | 89
Summary of Commands
SUMMARY OF COMMANDS | 91
Commands Grouped by Function
Commands for Creating and Modifying Geometry in 2D
FUNCTION PURPOSE
The Design Module enables on/off properties for constraining the other properties of
2D geometric primitive and operation commands. The property name is obtained by
appending constr to available property names. The default is on in operation features
and usually off in primitive features. A constrained property cannot be modified by
constraint and dimension commands. Properties that do not have a constr property
are always constrained. With the Design Module some features also have properties for
controlling a corresponding symbol in the Graphics window.
The following 2D geometry features get additional properties with the Design
Module.
• Array • LineSegment
• BezierPolygon • Mirror
• Chamfer • Move
• Circle • Point
• CircularArc • Polygon
• Copy • QuadraticBezier
• CubicBezier • Rectangle
• Ellipse • Rotate
• Fillet • Scale
• InterpolationCurve • Square
FUNCTION PURPOSE
FUNCTION PURPOSE
FUNCTION PURPOSE
FUNCTION PURPOSE
FUNCTION PURPOSE
DESCRIPTION
SEE ALSO
TangentConstraint
BezierPolygon
The following additional properties are available with the Design Module.
TABLE 3-3: AVAILABLE PROPERTIES
CapFaces
PURPOSE
Add cap faces to objects.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"CapFaces");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"CapFaces")
creates a CapFaces feature. A cap face is created for each loop of edges in the input
selection. The cap faces are joined with the original objects. If new domains are created
by the cap faces, these domains are made solid.
The input selection can contain edges from more than one object. In this case, each
object is processed individually.
TABLE 3-4: AVAILABLE PROPERTIES
Chamfer
The following additional properties are available with the Design Module.
TABLE 3-6: AVAILABLE PROPERTIES
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Chamfer3D");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Chamfer3D")
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("edge") to select the edge to chamfer. The default selection is empty.
EXAMPLE
Chamfer a subset of edges on a block:
SEE ALSO
Fillet3D
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Check");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property)
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Check") creates a check feature tagged <ftag>. The following
properties are available.
TABLE 3-9: AVAILABLE PROPERTIES
SEE ALSO
Repair
Circle
The following additional properties are available with the Design Module.
TABLE 3-10: AVAILABLE PROPERTIES
CircularArc
The following additional properties are available with the Design Module.
TABLE 3-11: AVAILABLE PROPERTIES
PURPOSE
Constrain two geometric entities to coincide with each other.
DESCRIPTION
Concentric
PURPOSE
Constrain circular edges and vertices to have the same center.
ConvertToCOMSOL
Convert CAD objects to COMSOL objects.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"ConvertToCOMSOL");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"ConvertToCOMSOL")
SEE ALSO
Import 3D CAD
CubicBezier
The following additional properties are available with the Design Module.
TABLE 3-17: AVAILABLE PROPERTIES
DeleteFaces
Delete faces from CAD objects and heal the wounds.
[Link](<ctag>).geom(<tag>).defeaturing("DeleteFaces").
selection(property)
[Link](<ctag>).geom(<tag>).defeaturing("DeleteFaces").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("DeleteFaces").
delete(<ftag>);
DESCRIPTION
[Link](<ctag>).geom(<tag>).defeaturing("DeleteFaces").
delete(<ftag>) creates a DeleteFaces feature tagged <ftag> with the specified
properties. If the feature can be built, it is inserted in the geometry sequence after the
current feature; otherwise, the feature is discarded.
It is also possible to create a DeleteFaces feature using the standard create method.
TABLE 3-18: AVAILABLE PROPERTIES
The faces in the property input are deleted from their objects. The resulting object is
healed so that a solid object is obtained. If heal is fill, a new face is formed based on
When you delete through holes, set the throughhole property to on to indicate that
the two wounds from where the hole entered and exited the geometry are to be healed
independently instead of as a single wound. If throughhole is off, the wound would
be healed with a single new face that would just recreate the hole.
EXAMPLE
The following example imports the file defeaturing_demo_2.mphbin, and removes
a hole from the geometry model.
COMPATIBILITY
The following property is no longer supported:
TABLE 3-19: OBSOLETE PROPERTIES
SEE ALSO
DeleteFillets, DeleteSliverFaces, DeleteSmallFaces, Export, ExportFinal
DeleteFillets
Find and delete fillets in CAD objects.
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").find();
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
detail();
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
delete(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
deleteAll(<ftag>);
DESCRIPTION
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
delete(<ftag>)
creates a DeleteFillets feature tagged <ftag> with the specified properties. The
property delete is set to selected. If the feature can be built, it is inserted in the
geometry sequence after the current feature; otherwise, the feature is discarded.
[Link](<ctag>).geom(<tag>).defeaturing("Fillets").
deleteAll(<ftag>) works as the delete method, but the property delete is set to
all.
It is also possible to create the DeleteFillets feature using the standard create
method. The following properties are available..
TABLE 3-20: AVAILABLE PROPERTIES
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail() returns a
selection object where you can select a subset of the fillets found.
[Link](<ctag>).geom(<tag>).defeaturing("Fillets")
Only faces that can be deleted without invalidating the object are deleted. If a fillet was
not possible to delete, a warning is given, accessible through
[Link](<tag>).feature(<ftag>).problem().
COMPATIBILITY
The following property is no longer supported:
TABLE 3-21: OBSOLETE PROPERTIES
EXAMPLE
The following example imports the CAD object in the COMSOL Multiphysics
geometry file defeaturing_demo_3.mphbin and finds all fillets with radius less than
4·10−3. The first of these fillets is deleted.
SEE ALSO
DeleteFaces
DeleteHoles
Find and delete holes in CAD objects.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"DeleteHoles");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).find();
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail();
[Link](<ctag>).geom(<tag>).defeaturing("Holes").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("Holes").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("Holes").find();
[Link](<ctag>).geom(<tag>).defeaturing("Holes").detail();
[Link](<ctag>).geom(<tag>).defeaturing("Holes").
delete(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("Holes").
deleteAll(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("Holes").
deleteAll(<ftag>) works as the delete method, but the property delete is set to
all.
It is also possible to create the DeleteHoles feature using the standard create
method. The following properties are available..
TABLE 3-22: AVAILABLE PROPERTIES
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail() returns a
selection object where you can select a subset of the holes found.
COMPATIBILITY
The following property is no longer supported:
TABLE 3-23: OBSOLETE PROPERTIES
EXAMPLE
The following example imports the CAD object in the COMSOL Multiphysics
geometry file defeaturing_demo_3.mphbin and finds all holes with radius less than
4·10−2. The first four of these holes are deleted.
SEE ALSO
DeleteFaces
DeleteShortEdges
Find and delete short edges in CAD objects.
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
find();
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
detail();
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
delete(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
deleteAll(<ftag>);
DESCRIPTION
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
delete(<ftag>) creates a DeleteShortEdges feature tagged <ftag> with the
specified properties. The property delete is set to selected. If the feature can be
built, it is inserted in the geometry sequence after the current feature; otherwise, the
feature is discarded.
[Link](<ctag>).geom(<tag>).defeaturing("ShortEdges").
deleteAll(<ftag>) works as the delete method, but the property delete is set to
all.
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail() returns a
selection object where you can select a subset of the edge sets found.
Only edges that can be deleted without invalidating the object are deleted. If an edge
was not possible to delete, a warning is given, accessible through
[Link](<ctag>).geom(<tag>).feature(<ftag>).problem().
COMPATIBILITY
The lengths of the edges are no longer returned.
EXAMPLE
The following example imports the file defeaturing_demo_4.x_b and finds all edges
with length less than 3·10−3. The first of these edges is deleted.
DeleteSliverFaces
Find and delete sliver faces in CAD objects.
SYNTAX
[Link](<ctag>).geom(gname).feature().
create(<ftag>,"DeleteSliverFaces");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).find();
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail();
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
find();
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
detail();
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
delete(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
deleteAll(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("SliverFaces").
deleteAll(<ftag>) works as the delete method, but the property delete is set to
all.
Sliver faces are narrow but long faces with large aspect ratio, which usually give rise to
extremely fine local meshes in their vicinity.
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail() returns a
selection object where you can select a subset of the faces found.
Only faces that can be deleted without invalidating the object are deleted. If a face was
not possible to delete, a warning message is given.
COMPATIBILITY
The following property is no longer supported:
TABLE 3-27: OBSOLETE PROPERTIES
EXAMPLE
The following example imports the geometry model from the file
defeaturing_demo_5.x_b, finds sliver faces narrower than 2·10−3, and deletes the
first of these.
SEE ALSO
DeleteFaces, DeleteSmallFaces
SYNTAX
[Link](<ctag>).geom(gname).feature().
create(<ftag>,"DeleteSmallFaces");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).find();
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail();
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
find();
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
detail();
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
delete(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
deleteAll(<ftag>);
DESCRIPTION
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
delete(<ftag>) creates a DeleteSmallFaces feature tagged <ftag> with the
specified properties. The property delete is set to selected. If the feature can be
built, it is inserted in the geometry sequence after the current feature; otherwise, the
feature is discarded.
[Link](<ctag>).geom(<tag>).defeaturing("SmallFaces").
deleteAll(<ftag>) works as the delete method, but the property delete is set to
all.
A small face is a face that fits within a sphere of specified radius, given in the property
entsize.
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail() returns a
selection object where you can select a subset of the faces found.
Only faces that can be deleted without invalidating the object are deleted. If a face was
not possible to delete, a warning message is given, accessible through
[Link](<ctag>).geom(<tag>).feature(<ftag>).problem().
EXAMPLE
The following example imports the geometry model from the file
defeaturing_demo_6.x_b, finds sliver faces narrower than 10−3, and deletes the first
of these.
SEE ALSO
DeleteFaces, DeleteSliverFaces
DeleteSpikes
Find and delete spikes in CAD objects.
[Link](<ctag>).geom(<tag>).defeaturing("Spikes").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("Spikes").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("Spikes").find();
[Link](<ctag>).geom(<tag>).defeaturing("Spikes").detail();
[Link](<ctag>).geom(<tag>).defeaturing("Spikes").
delete(<ftag>);
[Link](<ctag>).geom(<tag>).defeaturing("Spikes").
deleteAll(<ftag>);
DESCRIPTION
[Link](<ctag>).geom(<tag>).defeaturing("DeleteSpikes").
delete(<ftag>) creates a DeleteSpikes feature tagged <ftag> with the specified
properties. The property delete is set to selected. If the feature can be built, it is
inserted in the geometry sequence after the current feature; otherwise, the feature is
discarded.
[Link](<ctag>).geom(<tag>).defeaturing("DeleteSpikes").
deleteAll(<ftag>) works as the delete method, but the property delete is set to
all.
[Link](<ctag>).geom(<tag>).feature(<ftag>).detail() returns a
selection object where you can select a subset of the spikes found.
Only spikes that can be deleted without invalidating the object are deleted. If a spike
was not possible to delete, a warning message is given, accessible through
[Link](<ctag>).geom(<tag>).feature(<ftag>).problem().
COMPATIBILITY
The width of each spike is no longer returned.
SEE ALSO
DeleteShortEdges, DeleteSliverFaces
DetachFaces
Detach faces from CAD objects to form a new (child) solid.
[Link](<ctag>).geom(<tag>).defeaturing("DetachFaces").
selection(property);
[Link](<ctag>).geom(<tag>).defeaturing("DetachFaces").
set(property,<value>);
[Link](<ctag>).geom(<tag>).defeaturing("DetachFaces").
delete(<ftag>);
DESCRIPTION
[Link](<ctag>).geom(<tag>).defeaturing("DetachFaces").
delete(<ftag>) creates a DetachFaces feature tagged <ftag> with the specified
properties. If the feature can be built, it is inserted in the geometry sequence after the
current feature; otherwise, the feature is discarded.
It is also possible to create a DetachFaces feature using the standard create method.
TABLE 3-32: AVAILABLE PROPERTIES
The property healparent determines how the parent object is healed to form a new
solid after detaching the faces. The value fill means that a new face is formed based
on the surrounding edges of each wound. The value patch means that the
surrounding faces of each wound are grown or shrunk.
The property healchild determines how the child solid is constructed from the
detached faces. The value fill means that a new face is formed based on the
surrounding edges of each wound. The value patchchild means that the detached
faces are grown or shrunk to form a solid. The value patchparent means that the
parent faces surrounding the detached faces are grown or shrunk to form a solid
together with the detached faces.
EXAMPLE
The following example imports the COMSOL Multiphysics geometry file
defeaturing_demo_2.mphbin and detaches a hole defined by a set of faces:
COMPATIBILITY
The following property is no longer supported:
TABLE 3-33: OBSOLETE PROPERTIES
SEE ALSO
DeleteFaces
SYNTAX
[Link](<ctag>).geom(<tag>).
defeaturing("DetectInterferences").selection(property);
[Link](<ctag>).geom(<tag>).
defeaturing("DetectInterferences").set(property,<value>);
[Link](<ctag>).geom(<tag>).
defeaturing("DetectInterferences").selection(property);
[Link](<ctag>).geom(<tag>).
defeaturing("DetectInterferences").find();
[Link](<ctag>).geom(<tag>).
defeaturing("DetectInterferences").detail();
DESCRIPTION
See Defeaturing Tools — Detect Interferences.
Available properties:
TABLE 3-34: AVAILABLE PROPERTIES
DirectedDistance
PURPOSE
Constrain the distance in a given direction between two geometric entities to a given
value.
SEE ALSO
Distance, XDistance, YDistance
PURPOSE
Constrain the distance between two geometric entities to a given value.
DESCRIPTION
SEE ALSO
DirectedDistance, XDistance, YDistance, EqualDistance, TotalEdgeLength
EqualDistance
PURPOSE
Constrain the distances between two pairs of geometric entities to be equal.
SEE ALSO
Distance
EqualRadius
PURPOSE
Constrain two circular edges to have the same radius.
SEE ALSO
Radius
Export, ExportFinal
Using the CAD Import Module, Design Module, or a LiveLink product for CAD
software, export selected geometry objects or the finalized geometry to a 3D CAD
format, such as ACIS, Parasolid, STEP, and IGES.
To export selected geometry objects to a file, first select the objects to export using
[Link](<ctag>).geom(<tag>).export().selection().set(<obj
names>);
where <objnames> is a string array of object names. Then export them by entering
[Link](<ctag>).geom(<tag>).export(<filename>);
[Link](<ctag>).geom(<tag>).exportFinal(<filename>);
In the above commands the file extension in the <filename> string determines the file
format, which can be of any of the following:
TABLE 3-40: SUPPORTED FILE FORMATS
[Link](<ctag>).geom(<tag>).export().setAcisVersion(<vers
ion>);
where <version> is a string 4.0, 7.0, or 2016 1.0. Default is 2016 1.0.
[Link](<ctag>).geom(<tag>).export().setLengthUnit(<unit>
);
[Link](<ctag>).geom(<tag>).export().getLengthUnit();
To decide how the non-manifold objects are exported use the following method:
[Link](<ctag>).geom(<tag>).export().setSplitInManifold(<
value>);
where <value> is either true (default) to split the objects into manifold objects during
the export, or false to export the unmodified objects.
[Link](<ctag>).geom(<tag>).export().setLengthUnitIGES(<u
nit>);
[Link](<ctag>).geom(<tag>).export().getLengthUnitIGES();
[Link](<ctag>).geom(<tag>).export().setLengthUnitSTEP(<u
nit>);
[Link](<ctag>).geom(<tag>).export().getLengthUnitSTEP();
SEE ALSO
Import 3D CAD
Horizontal
PURPOSE
Constrains straight edges to be parallel to the x-axis.
DESCRIPTION
SEE ALSO
Angle, Parallel, Vertical
Fillet3D
Fillet edges in 3D geometry objects.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Fillet3D");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Fillet3D")
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("edge") to select the edge to fillet. The default selection is empty.
EXAMPLE
Fillet a subset of edges on a block:
Import 3D CAD
Import geometry objects from a 3D CAD file using the CAD Import Module, Design
Module, or a LiveLink product for CAD software.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Import");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
importData();
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Import") creates an import feature. When the property filename
is set to a filename recognized as a 3D CAD file, the property type is set to cad. The
following properties are available.
TABLE 3-45: AVAILABLE PROPERTIES
Note 1: This format requires a license for the CAD Import Module, Design Module,
or a LiveLink product for a CAD package.
Note 2: This format requires, in addition to the CAD Import Module, Design
Module, or a LiveLink product for a CAD package, a license for the File Import for
CATIA V5 module.
Note 5: Embedded parts in assemblies are not supported. To import such an assembly,
first convert the embedded parts to external parts.
The imported geometry objects are represented using the Parasolid geometry kernel,
which is the geometry kernel utilized by the CAD Import Module and the LiveLink
products for CAD software.
The method
[Link](gname).feature(<ftag>).importData()
The import can generate object, boundary, edge, and point selections based on
material, layer, and color assignments in the 3D CAD file. The following properties are
available for working these selections:
TABLE 3-47: AVAILABLE PROPERTIES
COMPATIBILITY
The following property is no longer supported:
TABLE 3-49: OBSOLETE PROPERTIES
InterpolationCurve
The following additional properties are available with the Design Module.
TABLE 3-50: AVAILABLE PROPERTIES
Knit
Knit surface CAD objects to form solids or surface objects.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Knit");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property)
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
This function also removes gaps and spikes that are within the absolute tolerance
specified in the property repairtol.
COMPATIBILITY
The following property is no longer supported:
TABLE 3-53: OBSOLETE PROPERTIES
SEE ALSO
Repair
LineSegment
The following additional properties are available with the Design Module.
TABLE 3-54: AVAILABLE PROPERTIES
Loft
Create a lofted surface through a set of profile curves.
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Loft")
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("profile") to select loft profiles that are not specified as start or end
profiles. The default selection is empty.
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("startprofile") to select the loft start profile. The default selection is
empty.
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("endprofile") to select the loft start profile. The default selection is
empty.
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("guide") to select guide curves that are not specified as start or end guide
curves. The default selection is empty.
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("startguide") to select the start guide curve. The default selection is
empty.
EXAMPLE
Create a cylinder from two disc profiles. This illustrates two different ways of specifying
the profile.
Midsurface
Generate a surface object that is the midsurface of a solid object in 3D.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Midsurface");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Midsurface")
Use
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("input")
to select the objects for the midsurface operation. The default selection is empty.
TABLE 3-57: AVAILABLE PROPERTIES
EXAMPLE
Generate the midsurface of a thin block:
SEE ALSO
Thicken
Move
The following additional properties are available with the Design Module.
TABLE 3-60: AVAILABLE PROPERTIES
Parallel
PURPOSE
Constrains straight edges to be parallel.
SEE ALSO
Angle
Perpendicular
PURPOSE
Constrains two straight edges to be orthogonal.
DESCRIPTION
SEE ALSO
Angle
Polygon
The following additional properties are available with the Design Module.
TABLE 3-64: AVAILABLE PROPERTIES
Position
PURPOSE
Constrain a vertex to have given coordinates.
Projection
PURPOSE
Project 3D objects and entities to a 2D work plane.
SYNTAX
[Link](<ctag>).geom(<tag>).feature(<wptag>).
geom().create(<ftag>,"Projection");
[Link](<ctag>).geom(<tag>).feature(<wptag>).
geom().feature(<ftag>).selection("input");
[Link](<ctag>).geom(<tag>).feature(<wptag>).
geom().feature(<ftag>).set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<wptag>).
geom().feature(<ftag>).getType(property)
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
Use
[Link](<ctag>).geom(<tag>).feature(<wptag>).geom().
create(<ftag>,"Projection")
By default, you get the projection for all 3D objects that were generated by the features
preceding the work plane feature. To select a subset of these objects or to select
entities, set the project property to the appropriate entity level, and use the property
input to select the 3D objects or entities.
SEE ALSO
CrossSection, WorkPlane
QuadraticBezier
The following additional properties are available with the Design Module.
TABLE 3-68: AVAILABLE PROPERTIES
Radius
PURPOSE
Constrain a circular edge to have a given radius.
SEE ALSO
EqualRadius
Rectangle
The following additional properties are available with the Design Module.
TABLE 3-70: AVAILABLE PROPERTIES
sizeconstr String[2] {off, off} Constrain the width and the height.
Constrained properties cannot be
modified by constraint and dimension
functions.
posconstr String[2] {off, off} Constrain the position. Constrained
properties cannot be modified by
constraint and dimension functions.
rotconstr on | off off Constrain the rotation angle.
Constrained properties cannot be
modified by constraint and dimension
functions.
arrowdispl double[2] NaN Displacement of arrow symbols in the
normal direction.
labelpos double[2] {0.5, 0.5} Relative label position along arrow
symbols.
arrowint String[2] {on, on} Internal or external arrow symbols.
SYNTAX
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Repair");
[Link](<ctag>).geom(<tag>).feature(<ftag>).
selection(property);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
set(property,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getType(property)
[Link](<ctag>).geom(<tag>).feature(<ftag>).
setAttribute(attribute,<value>);
[Link](<ctag>).geom(<tag>).feature(<ftag>).
getAttribute(attribute);
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Repair")
creates a repair feature tagged <ftag>. The following properties are available.
TABLE 3-71: AVAILABLE PROPERTIES
COMPATIBILITY
The following property is no longer supported:
TABLE 3-73: OBSOLETE PROPERTIES
SEE ALSO
Check, Knit
Rotate
The following additional properties are available with the Design Module.
TABLE 3-74: AVAILABLE PROPERTIES
Square
The following additional properties are available with the Design Module.
TABLE 3-76: AVAILABLE PROPERTIES
TangentConstraint
PURPOSE
Constrain two edges to have a point of tangency. For each edge, you can require that
the tangency occurs at an adjacent vertex.
SEE ALSO
Angle
Thicken
Generate a solid object by thickening a surface object in 3D.
DESCRIPTION
[Link](<ctag>).geom(<tag>).feature().
create(<ftag>,"Thicken")
Use [Link](<ctag>).geom(<tag>).feature(<ftag>).
selection("input") to select the objects for the thicken operation. The default
selection is empty.
TABLE 3-78: AVAILABLE PROPERTIES
EXAMPLE
Create a cylinder by thickening a disc shaped surface:
TotalEdgeLength
PURPOSE
Constrain a set of edges to have a given total length. The edges must form a chain and
all lie on the same line, circle, or spline.
DESCRIPTION
SEE ALSO
Distance
Vertical
PURPOSE
Constrains straight edges to be parallel to the y-axis.
SEE ALSO
Angle, Horizontal, Parallel
XDistance
PURPOSE
Constrain the distance in the x-direction between two geometric entities to a given
value.
SEE ALSO
YDistance, DirectedDistance, Distance
YDistance
PURPOSE
Constrain the distance in the y-direction between two geometric entities to a given
value.
SEE ALSO
XDistance, DirectedDistance, Distance