SamplingPoint#
- class ansys.dpf.composites.sampling_point.SamplingPoint(*args, **kwargs)#
Implements the
Sampling Point
object that wraps the DPF sampling point operator.Use
CompositeModel.get_sampling_point()
to get a sampling point object. This class provides for plotting the lay-up and results at a certain point of the layered structure. The results, includinganalysis_plies
,e1
,s12
, andfailure_modes
, are always from the bottom to the top of the laminate (along the element normal direction). Postprocessing results such ase1
are returned as flat arrays whereself.spots_per_ply
can be used to compute the index for a certain ply.Notes
The results of layered elements are stored per integration point. A layered shell element has a number of in-plane integration points (depending on the integration scheme) and typically three integration points through the thickness. The through-the-thickness integration points are called spots. They are typically at the
BOTTOM
,MIDDLE
, andTOP
of the layer. This notation is used here to identify the corresponding data.The
SamplingPoint
class returns three results per layer (one for each spot) because the results of the in-plane integration points are interpolated to the centroid of the element. The following table shows an example of a laminate with three layers. So a result, such ass1
has nine values, three for each ply.Layer
Index
Spot
Layer 3
8
7
6
TOP of Layer 3
MIDDLE of Layer 3
BOTTOM of Layer 3
Layer 2
5
4
3
TOP of Layer 2
MIDDLE of Layer 2
BOTTOM of Layer 2
Layer 1
2
1
0
TOP of Layer 1
MIDDLE of Layer 1
BOTTOM of Layer 1
The get_indices and get_offsets_by_spots methods simplify the indexing and filtering of the data.
Methods
Add the stacking (ply and text) to an axis or plot.
SamplingPoint.add_results_to_plot
(axes, ...)Add results (strain, stress, or failure values) to an
Axes
object.SamplingPoint.get_indices
([spots])Get the indices of the selected spots (interfaces) for each ply.
SamplingPoint.get_offsets_by_spots
([spots, ...])Access the y coordinates of the selected spots (interfaces) for each ply.
Get the critical failure value and modes per ply.
SamplingPoint.get_polar_plot
([components])Create a standard polar plot to visualize the polar properties of the laminate.
Generate a figure with a grid of axes (plot) for each selected result entity.
Attributes
List of analysis plies from the bottom to the top.
Strains in the material 1 direction of each ply.
In-plane shear strains e12 of each ply.
Out-of-plane shear strains e13 of each ply.
Strains in the material 2 direction of each ply.
Out-of-plane shear strains e23 of each ply.
Strains in the material 3 direction of each ply.
Element label for sampling the laminate.
Critical failure mode of each ply.
Critical inverse reserve factor of each ply.
True if the Sampling Point is up-to-date.
Lowest margin of safety of each ply.
Name of the object.
Number of plies.
Z coordinates for each interface and ply.
Polar property E1 of the laminate.
Polar property E2 of the laminate.
Polar property G12 of the laminate.
Lowest reserve factor of each ply.
Results of the sampling point results as a JSON dictionary.
Stresses in the material 1 direction of each ply.
In-plane shear stresses s12 of each ply.
Out-of-plane shear stresses s13 of each ply.
Stresses in the material 2 direction of each ply.
Out-of-plane shear stresses s23 of each ply.
Stresses in the material 3 direction of each ply.
Number of through-the-thickness integration points per ply.