SubLaminate
class compolyx.SubLaminate(graph, obj, parent=None)
Class to represent sublaminate.
Attributes
| Name | Description |
|---|---|
SubLaminate.active | Active status of object |
SubLaminate.area_price | Price per area of the Sub Laminate |
SubLaminate.area_weight | Area weight of the Sub Laminate |
SubLaminate.enabled | Whether this object is currently enabled or not |
SubLaminate.fabrics | Fabrics property of the Sub Laminate |
SubLaminate.graph_plot | Graph Plot object used to configure 2D plots |
SubLaminate.id | ID of object |
SubLaminate.is_dict_item | Specifies whether the object is an item of a dict |
SubLaminate.is_list_item | Specifies whether the object is an item of a list |
SubLaminate.layup_sequence | Layup Sequence of the Sub Laminate. Available options: Top-Down or Bottom-Up |
SubLaminate.link_path | Root path of the current node in the tree for links to this object |
SubLaminate.name | Name of object |
SubLaminate.parent | Parent object in tree |
SubLaminate.root_path | Root path of the current node in the tree |
SubLaminate.status | Status of the object |
SubLaminate.status_changed | Boolean flag which is set to true in C++ when up-to-date status of object changes |
SubLaminate.symmetry | Symmetry of the Sub Laminate. Available options: No Symmetry, Even Symmetry, or Odd Symmetry |
SubLaminate.thickness | Thickness of the Sub Laminate |
SubLaminate.uid | UID of object |
SubLaminate.vertex | This will throw an error if the object has been removed from the graph |
Methods
| Name | Description |
|---|---|
SubLaminate.add_fabric(fabric[, angle]) | Add fabric at end of fabrics list |
SubLaminate.capture_analysis_plot([path, size]) | Saves the 2D polar plot to a file |
SubLaminate.clear_fabrics() | Clear all fabrics |
SubLaminate.clt_query([query]) | Returns the properties of the classical laminate theory |
SubLaminate.create_plot([query, ...]) | Generates 2D plots with the results of interest |
SubLaminate.find_parent(type) | Function steps up the tree and returns the first parent with given type |
SubLaminate.get_ordered_fabrics() | Returns a list with all sub-materials (fabrics and stackups) and orientations including symmetry and layup sequence option |
SubLaminate.get_ordered_sub_materials() | Returns a list with all fabrics and orientations including symmetry and layup sequence option |
SubLaminate.insert_fabric(pos, fabric, angle) | Insert fabric at given position |
SubLaminate.is_constant() | Returns true if all engineering constants and strength limits of the assigned fabrics are constant |
SubLaminate.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 |
SubLaminate.remove_fabric(pos) | Remove fabric from position |
SubLaminate.serialize() | Serialize to Python string |
SubLaminate.serialize_name_and_id() | Helper function to serialize name and ID |
SubLaminate.update() | |
SubLaminate.update_plot() | Updates the data of the 2D plot |
SubLaminate.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node |