Model.hm_comparesetanalysismode#
- Model.hm_comparesetanalysismode(mode=0)#
Specifies whether to consider 2D shell thickness and offset for element-to-surface comparisons. This must precede any calls to hm_compareentities functions.
When non-zero, the analysis will compare 2D shell elements to three dimensional surface data using the shell thickness and offset information to infer a 3D shell. This 3D shell is then compared to the surface geometries instead of the normal 2D shell.
- Parameters:
mode (int) –
0 - Normal (default)
1 - Consider 3D shells, ignore fillets
2 - Consider 3D shells, compare fillets
- Returns:
hwReturnStatus- Status object
Example#
Generate a same side comparison of surfaces with IDs 1 - 20 and elements with IDs 101 - 120 , use the 2D shell thickness and offset , but ignore fillets#import hm import hm.entities as ent model = hm.Model() surfs = hm.Collection(model, ent.Surface, list(range(1, 21))) elems = hm.Collection(model, ent.Element, list(range(101, 121))) model.hm_compareinit() model.hm_comparesetanalysismode(mode=1) model.hm_compareentitiessameside( source_entities=surfs, target_entities=elems, tolerance=0.1, result_type=2, review_results=False, ) model.hm_compareend()