Model.adjustcontactsurfacenormal#
- Model.adjustcontactsurfacenormal(name, collection, elem_flag, orientation_element, reverse_normal)#
Adjusts a contact surface normal using an orientation element.
- Parameters:
name (hwString) – The name of the contact surface entity to adjust. User can directly supply a Python string.
collection (Collection) – The collection containing the elements to adjust.
elem_flag (int) –
Flag for reversing the contact normal of all or individual elements of the contact surface.
0 - All elements,
collectionis ignored.1 - Individual elements,
collectionis used.orientation_element (unsigned int) – The ID of the shell element that should be used for shell contact surface normal correction on shell face. This element should be part of the selection.
reverse_normal (int) –
0 - Correct contact normal along the direction of
orientation_elementnormal1 - Correct contact normal opposite to the direction of
orientation_elementnormal
Examples#
Adjust the normal of contactsurf “ test “ for the elements with IDs 12 , 23 , 29 , and 53 in the normal direction of reference element with ID 23#import hm import hm.entities as ent model = hm.Model() elems = hm.Collection(model, ent.Element, [12,23,29,53]) model.adjustcontactsurfacenormal( name="test", collection=elems, elem_flag=1, orientation_element=23, reverse_normal=0 )
Adjust the normal of contactsurf “ test “ for the elements with IDs 12 , 23 , 29 , and 53 in the reverse normal direction of reference element with ID 23#import hm import hm.entities as ent model = hm.Model() elems = hm.Collection(model, ent.Element, [12,23,29,53]) model.adjustcontactsurfacenormal( name="test", collection=elems, elem_flag=1, orientation_element=23, reverse_normal=1 )