get_indices#

SamplingPoint.get_indices(spots=(Spot.BOTTOM, Spot.MIDDLE, Spot.TOP))#

Get the indices of the selected spots (interfaces) for each ply.

The indices are sorted from bottom to top. For instance, this method can be used to access the stresses at the bottom of each ply.

Parameters:

spots (Collection[Spot], default: (<Spot.BOTTOM: 1>, <Spot.MIDDLE: 2>, <Spot.TOP: 3>)) – Collection of spots. Only the indices of the bottom interfaces of plies are returned if [Spot.BOTTOM] is set.

Examples

>>> ply_top_indices = sampling_point.get_indices([Spot.TOP])
Return type:

Sequence[int]