Model.interfaceaddsolidface#
- Model.interfaceaddsolidface(name, main, element_collection, node_collection, break_angle)#
Creates interface elements on shell elements and faces of solid elements.
- Parameters:
name (hwString) – The name of the group into which the interface elements should be placed.
main (int) –
0 - For secondary elements.
1 - For main elements.
element_collection (Collection) – The collection containing the input solid element entities.
node_collection (Collection) – The collection containing the node entities that define the face of a solid element.
break_angle (double) – The angle used to define a “sharp corner”.
Note
HyperMesh will use the
node_collectionto find the face of a solid element. All adjacent faces will then be found until a sharp corner (defined bybreak_angle) is found. Finally, main/secondary elements will be created on these faces.Example#
Create interface elements on shell elements and faces of solid elements and place them into set with name “ group1 “#import hm import hm.entities as ent model = hm.Model() # Selecting elements and face nodes via interactive selection elem_collection = hm.CollectionByInteractiveSelection(model, ent.Element) face_node_collection = hm.CollectionByInteractiveSelection(model, ent.Node) model.interfaceaddsolidface( name="group1", main=1, element_collection=elem_collection, node_collection=face_node_collection, break_angle=0, )