DiscreteLineSegmentInterface
This interface is used to define mesh along a line segment in 3D space. The line segment is defined with a "start" point , corresponding to either end, the direction to the other end, and the distance in that direction, . Thus the other end of the line segment is
These quantities are defined using the following parameters:
position
: the "start" point ,orientation
: the direction (which gets automatically normalized), andlength
: the length(s) that sum to .
The most basic mesh specification is given by a single value for the parameters length
and n_elems
, which correspond to the length of the component and number of uniformly-sized elements to use. For example, the following parameters would specify a total length m, divided into 100 elements (each with width 0.5 m):
The length
and n_elems
parameters can also be supplied with multiple values. Multiple values correspond to splitting the length into segments that can have different element sizes. However, within each segment, the discretization is assumed uniform. The numbers of elements in each segment are specified with the parameter n_elems
, with entries corresponding to the entries in length
. For example, the following would also specify a total length m with 100 total elements, but in this case the first 10 m have 40 elements of size 0.25 m, whereas the last 40 m have 60 elements of size m.