Skip to main content
Version: Next

SolidModel

class compolyx.SolidModel(graph, obj, parent=None)

Solid Model class

Attributes

NameDescription
SolidModel.activeSolid-Model active
SolidModel.analysis_pliesAnalysis Plies of the Solid Model
SolidModel.changedStatus boolean
SolidModel.connect_butt_joined_pliesDo not make drop-offs between butt-joined plies if set to True
SolidModel.coordinate_system_indexCoordinate System index
SolidModel.cut_off_geometry_objsCut-Off Geometry objects
SolidModel.delete_bad_elementsBoolean whether to delete the erroneous elements
SolidModel.disable_dropoff_sets_on_bottomElements where the drop-offs on bottom are disabled
SolidModel.disable_dropoff_sets_on_topElements of where the drop-offs on top are disabled
SolidModel.disable_dropoffs_on_bottomBoolean whether to disable the drop-off elements on bottom surface
SolidModel.disable_dropoffs_on_topBoolean whether to disable the drop-off elements on top surface
SolidModel.disable_numbering_updatesDebug option to disable all numbering updates
SolidModel.disable_skin_componentsDebug option to disable the creation of skin components
SolidModel.drop_hanging_nodesIf the hanging nodes are exported or dropped
SolidModel.drop_off_typeDrop-off type
SolidModel.element_indexElement offset index
SolidModel.element_setsElement Set(s) of the solid model
SolidModel.enabledWhether this object is currently enabled or not
SolidModel.ex_typeExtrusion type
SolidModel.extrusion_guidesExtrusion Guides
SolidModel.global_cut_off_materialGlobal material of the cut-off elements
SolidModel.global_drop_off_materialGlobal material of the drop-off elements
SolidModel.idID of object
SolidModel.is_dict_itemSpecifies whether the object is an item of a dict
SolidModel.is_list_itemSpecifies whether the object is an item of a list
SolidModel.is_uptodateUpdate status of the object
SolidModel.link_pathRoot path of the current node in the tree for links to this object
SolidModel.lockedSolid Model is generated from an imported source and cannot be changed
SolidModel.material_indexMaterial index
SolidModel.max_thicknessMaximum thickness of solid elements
SolidModel.mesh_componentsElement Sets of the solid mesh
SolidModel.minimum_volumeDefines the minimum volume of each solid element
SolidModel.nameName of object
SolidModel.node_indexNode offset index
SolidModel.num_coordinate_systems
SolidModel.num_materials
SolidModel.num_solid_elements
SolidModel.num_solid_nodes
SolidModel.num_solid_sections
SolidModel.offset_typeOffset type
SolidModel.parentParent object in tree
SolidModel.ply_group_pointersPly group pointers for user defined extrusion
SolidModel.root_pathRoot path of the current node in the tree
SolidModel.section_indexSection offset index
SolidModel.skip_elements_without_pliesEnable this option to automatically skip elements without plies from the region of extrusion
SolidModel.snap_to_geometry_objsSnap to Geometry objects
SolidModel.statusStatus of the object
SolidModel.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
SolidModel.transfer_all_setsWhether to transfer all edge and element sets to the solid model or not
SolidModel.transferred_edge_setsEdge sets to transfer to solid model
SolidModel.transferred_element_setsElement sets to transfer to solid model.
SolidModel.uidUID of object
SolidModel.use_default_coordinate_system_indexUse consecutive coordinate system numbering
SolidModel.use_default_element_indexUse consecutive element numbering
SolidModel.use_default_material_indexUse consecutive material numbering
SolidModel.use_default_node_indexUse consecutive node numbering
SolidModel.use_default_section_indexUse consecutive section numbering
SolidModel.use_solid_model_prefixIf the solid model name is used as a prefix for all components exported to the *cdb file
SolidModel.use_solsh_elementsIf selected solid-shell elements are written to the *cdb file
SolidModel.vertexThis will throw an error if the object has been removed from the graph
SolidModel.warping_limitDefines the maximum allowable warping limit.
SolidModel.write_degenerated_elementsIf set to false no drop-off and cut-off elements are written to the *cdb file

Methods

NameDescription
SolidModel.add_disable_dropoff_set_on_bottom(set)Add set where the drop-offs on bottom surface are disabled
SolidModel.add_disable_dropoff_set_on_top(set)Add set where the drop-offs on top surface are disabled
SolidModel.add_element_set(element_set)Add Element Set to Solid Model
SolidModel.clear_disable_dropoff_sets_on_bottom()Clear sets where the drop-offs on bottom are disabled
SolidModel.clear_disable_dropoff_sets_on_top()Clear sets where the drop-offs on top are disabled
SolidModel.clear_element_sets()Clear Element Sets of Solid Model
SolidModel.clear_generated_data()Function clears generated solid model but keeps all definitions
SolidModel.copy_cut_off_geometry_obj(source)Copy a Cut-Off Geometry
SolidModel.copy_extrusion_guide(source)Copy a Extrusion Guide
SolidModel.copy_snap_to_geometry_obj(source)Copy a Snap-To Geometry
SolidModel.create_cut_off_geometry_obj(name)Create a new cut-off geometry object
SolidModel.create_extrusion_guide(name[, ...])Create a new extrusion guide
SolidModel.create_snap_to_geometry_obj(name)Create a new snap-to-geometry object
SolidModel.export_skin(path[, midside_nodes])Creates a geometry file (STP or IGES) of the solid model based on the tessellated FE mesh
SolidModel.find_parent(type)Function steps up the tree and returns the first parent with given type
SolidModel.get_short_description()
SolidModel.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
SolidModel.remove_element_set(element_set)Remove Element Set from the solid model
SolidModel.remove_global_cut_off_material()Removes the global cutoff material of the SolidModel
SolidModel.remove_global_drop_off_material()Removes the global dropoff material of the SolidModel
SolidModel.reorder_extrusion_guides(source, ...)Reorders the extrusion guides
SolidModel.serialize()
SolidModel.serialize_name_and_id()Helper function to serialize name and ID.
SolidModel.shell_elements()Function returns the shell elements where this extrusion operates on
SolidModel.solid_elements(...)
SolidModel.update()
SolidModel.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node
SolidModel.write_h5_and_cdb_file(path, ...)Writes the .h5 and .cdb file for ANSYS Workbench application
SolidModel.write_lsdyna_solid_model(path[, ...])Export solid model as FE model for LS Dyna
SolidModel.write_solid_model(path)Export solid model as FE model for ANSYS