OOF2: The Manual
Name
Edge boundary from segments (EdgeFromSegments) — Construct an edge boundary from a set of segments.
Synopsis
EdgeFromSegments
(group
,direction
)
Details
-
Base class:
BoundaryConstructor
-
Parameters:
group
- Construct the boundary from these segments Type: The name of a segment
group,
or the placeholder
selection
, referring to the currently selected segments. direction
- Direction of the boundary. Type: An object from the
Director
enumerated class.
Description
EdgeFromSegments
is a BoundaryConstructor, used as the
constructor
argument of the OOF.Skeleton.Boundary.Construct command when
building Skeleton
boundaries.
It creates Edge
Boundaries from the currently selected Skeleton
Segments
or from a group of
Segments
. The Segments
are specified by the
group
parameter, which must be either the name
of a Segment
group or the special placeholder object,
selection
.
Edge boundaries must be constructed from a single contiguous
non-branching set of Segments
, and they must be
directed. Boundary
conditions use the direction to determine the boundary
normal and the direction of applied Fields
and Fluxes
. The
direction
parameter specifies the direction of
the boundary being created. The legal values for
direction
depend on the topology of the
boundary being constructed. When the Segments
form a closed loop,
the legal values are 'Clockwise'
and
'CounterClockwise'
. When the Segments
form
an open line or curve, the values are 'Left to
right'
, 'Right to left'
,
'Top to bottom'
, and 'Bottom to
top'
. OOF2 compares the positions of only the first
and last Nodes
when determining the direction of an open
boundary.
See Figure 6.74 for examples.
Figure 6.74. Constructing an Edge Boundary from Segments

The Segments
on the border of the circular region have been
selected (by using OOF.SegmentSelection.Select_Internal_Boundary_Segments
after restricting the Active Area).

A clockwise edge boundary constructed from the selected
segments, using OOF.Skeleton.Boundary.Construct(skeleton
='microstructure:skeleton'
,
name
='boundary'
,
constructor
=EdgeFromSegments(group
=selection
,direction
='Clockwise'
)).

The Segments
on the border of the strip have been selected
(by using OOF.SegmentSelection.Select_Internal_Boundary_Segments
after restricting the Active Area).

A linear edge boundary constructed from the selected
segments, using OOF.Skeleton.Boundary.Construct(skeleton
='microstructure:skeleton'
,
name
='boundary<2>'
,
constructor
=EdgeFromSegments(group
=selection
,direction
='Left to right
)).