### 6.5.17. SamplingPoint

`class compolyx.SamplingPoint`(graph, obj, parent=None)

The Sampling Point allows to pick through the laminate at a certain point to run detailed analyses.

Usage

    >>> model.create_sampling_point(name='Sampling Point')

`aligned`()

  Returns true if the sampling direction is aligned with the normal direction of the closest element

`clt_query`(query='layup', offset_is_middle=True, consider_coupling_effect=True)

  Returns the properties of the classical laminate theory:

  Parameters

  - query : query parameter (see below)

  - offset_is_middle : Bool to set laminate reference to middle for the laminate stiffness evaluation.

  - consider_coupling_effect : Bool whether to consider the coupling effect or not

  Options

  - layup : Returns the layup of the laminate (Modeling, Production and Analysis Plies). Default.

  - laminate_properties : Young's, flexural and shear moduli of the laminate

  - polar_properties : E1, E2 and G12 depending on the laminate orientation

  - text_labels : Returns a list with the material names, angles and thicknesses

  - stiffness_matrix : Returns the laminate stiffness matrix (ABD)

  - compliance_matrix : Returns the lamiante compliance matrix (inverse of ABD)

  - laminate_forces : Returns a dict with the laminate forces Nx, Ny, Nxy, Mx, My, Mxy, Qx and Qy. Offset is middle is always true for this evaluation.

  Usage:

        >>> se.clt_query(query='polar_properties')

`consider_coupling_effect`

  Specifies the coupling effect is considered or not.

`create_plot`(query={'layup': ['mp'], 'polar_properties': ['E1', 'G12']}, offset_is_middle=True, consider_coupling_effect=True)

  Generates 2D-plots with the results of interest

  Parameters

  - query : query parameter

  - offset_is_middle : Bool to set lamiante reference plane to middle

  - consider_coupling_effect : Bool whether to consider the coupling effect or not

  Options

  - layup:['mp', 'pp', 'ap'] Modeling Plies, Production Plies and Analysis Plies

  - polar_properties:['E1','E2','G12'] polar plot of laminate stiffesses

  - strains:['e1', 'e2', 'e3', 'e12', 'e13', 'e23', 'eI', 'eII', 'eIII'] - Strain definition name and component

  - stresses:['s1', 's2', 's3', 's12', 's13', 's23', 'sI', 'sII', 'sIII'] - Stress definition name and component

  - failures:['FailureCriteria.1_irf', 'FailureCriteria.1_rf', 'FailureCriteria.1_mos', 'FailureCriteria.1_fm'] - Name of FC and value

  - text_labels:['material', 'angle', 'thickness']

  Usage

      >>> se.create_plot(query={layup:['mp'], failure:['FailureCriteria.1_irf']}
      >>> se.graph_plot.x_values
      >>> se.graph_plot.layer_thicknesses

`direction`

  Sampling Point Direction

`element_id`

  Element ID (label) of the Sampling Point

`enabled`

  Whether this object is currently enabled or not. SamplingPoints are always enabled.

`graph_plot`

  Graph Plot object used to configure 2D plots.

`locked`

  Sampling Point is generated from an imported source and cannot be changed.

`offset_is_middle`

  Specifies the offset of the reference plane for the CLT analysis.

`plies`

  Plies of the Sampling Point

`point`

  Sampling Point Point

`reference_direction`

  Reference direction

`rosette`

  Rosette of the Sampling Point

`solution_set`

  Solution and Set selection

`update_plot`(offset_is_middle, consider_coupling_effect)

  Updates the 2D plot

  Parameters

  - offset_is_middle : Bool to set laminate reference plane to middle

  - consider_coupling_effect : Bool whether to consider the coupling effect or not

`use_default_reference_direction`

  Flag to use default reference direction

Release 18.2 - © ANSYS, Inc. All rights reserved.