Model.penetrationdisplay#
- Model.penetrationdisplay(contact_thickness, part_thickness_scale, display_mode, normal_scale, label, segment_orientation, magnitude_mode)#
Displays the amount of penetration through nodes, vectors, or contour.
- Parameters:
contact_thickness (double) – Supplied value of the contact thickness.
part_thickness_scale (double) – Supplied value of the part thickness scale.
display_mode (int) –
Type of mode used to display penetration.
0 - Nodes
1 - Normal
2 - Contour
normal_scale (double) – Value \(\gt\) 0 - uniform size or % of magnitude of vectors.
label (int) –
The vector label option.
0 - Vector labels off
1 - Vector labels on
segment_orientation (int) –
Flag for taking element normal into consideration for checking penetration.
0 - Elements normal will not be considered
1 - Elements normal will be considered
magnitude_mode (int) –
Determines if a magnitude percentage or a uniform size is to be used.
0 - Uniform size
1 - Percentage of magnitude
Example#
For displaying the amount of penetration if a contact thickness supplied is 1.5, part thickness scale supplied is 1.0, display mode is normal, percentage of magnitude used is 50%, vector labels are on, and segment orientation and percentage of magnitude are used#import hm import hm.entities as ent model = hm.Model() model.penetrationdisplay( contact_thickness=1.5, part_thickness_scale=1.0, display_mode=1.0, normal_scale=0.5, label=1, segment_orientation=1, magnitude_mode=1, )
Note
The
penetrationcheck(),penetrationchecktwo(), orpenetrationrecheck()function is required.