Skip to main content
Version: Next

SamplingPoint

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

The sampling point enables picking through the laminate at a certain point to run detailed analyses.

Key features: : - Layup in the object tree of the closest element to the selected point.

  • Sampling direction defines the ply order (bottom-up or top-down).
  • Reference direction defines the 0 degree axis of the element used for the evaluations (CLT).
  • Optional a user-defined coordinate system can be selected to compute the reference direction. The element normal and reference direction. defines the result coordinate system.
  • 2D plots showing the layup, stress, strain and failure distribution through the laminate.
  • Polar plot of the laminate properties.
  • Analysis based on the Classical Laminate Theory (CLT).
  • Export to ESAComp, CSV file, etc.
  • Usage:
    >>> model.create_sampling_point(name='Sampling Point')

Attributes​

NameDescription
SamplingPoint.activeActive status of object
SamplingPoint.consider_coupling_effectWhether to consider coupling effects (B-Matrix) for the calculation of the laminate engineering constants
SamplingPoint.directionSampling Point Direction
SamplingPoint.element_idElement ID (label) of the Sampling Point
SamplingPoint.enabledWhether this object is currently enabled
SamplingPoint.graph_plotGraph Plot object used to configure 2D plots
SamplingPoint.idID of object
SamplingPoint.is_dict_itemSpecifies whether the object is an item of a dict
SamplingPoint.is_list_itemSpecifies whether the object is an item of a list
SamplingPoint.link_pathRoot path of the current node in the tree for links to this object
SamplingPoint.lockedSampling Point is generated from an imported source and cannot be changed
SamplingPoint.nameName of object
SamplingPoint.offset_is_middleWhether to offset the reference surface to the mid-plane of the laminate.
SamplingPoint.parentParent object in tree
SamplingPoint.pliesPlies of the Sampling Point
SamplingPoint.pointSampling Point Point
SamplingPoint.reference_directionReference direction
SamplingPoint.root_pathRoot path of the current node in the tree
SamplingPoint.rosetteRosette of the Sampling Point
SamplingPoint.solution_setSolution and Set selection
SamplingPoint.statusStatus of the object
SamplingPoint.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes.
SamplingPoint.uidUID of object
SamplingPoint.use_default_reference_directionFlag to use default reference direction
SamplingPoint.vertexThis will throw an error if the object has been removed from the graph

Methods​

NameDescription
SamplingPoint.aligned()Returns true if the sampling direction is aligned with the normal direction of the closest element
SamplingPoint.capture_analysis_plot([path, size])Saves the sampling point analysis plot to a file
SamplingPoint.clt_query([query, ...])Returns the properties of the classical laminate theory
SamplingPoint.create_plot([query, ...])Generates 2D plots with the results of interest
SamplingPoint.export_laminate(filename[, ...])
SamplingPoint.find_parent(type)Function steps up the tree and returns the first parent with given type
SamplingPoint.obj_exists()Checks if __obj still references the c++ object (i.e. has not been reset to None by self._delete) AND exists in the graph
SamplingPoint.serialize()
SamplingPoint.serialize_name_and_id()Helper function to serialize name and ID
SamplingPoint.update()
SamplingPoint.update_plot(offset_is_middle, ...)Updates the 2D plot
SamplingPoint.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node