Model.CE_FE_1DQuality#
- Model.CE_FE_1DQuality(ce_incollection, outputcollection, free1d, length_flag, length, angle_flag, angle)#
Checks the quality of 1D elements (welds) created by realizing connector entity (CE). It places all failed connectors on an output collection and highlights them.
- Parameters:
ce_incollection (Collection) – The collection containing the displayed connector entities.
outputcollection (Collection) – The output collection containing the connector entities that contain FE (welds) that failed quality check criteria.
free1d (int) –
Check if any connectors realized welds that are not connected to the mesh. Valid values are:
1 - turned on.
length_flag (int) –
Check if the length of FE (welds) exceeds a certain value specified by the
lengthparameter. Valid values are:1 - turned on.
length (double) – The value of the length of the weld that should not be exceeded. Used in conjunction with
length_flag.angle_flag (int) –
Check if the angle between the FE (welds) and the shell element normal exceeds the values pecified by the
angleparameter. Valid values are:1 - turned on.
angle (double) – The orientation that the weld should not exceed with respect to the shell normal. A proper weld is oriented along the shell normal. Used in conjunction with
angle_flag.
Example#
Check all the quality options of FE (weld elements) in a realized connector with IDs 1, 2, and 3. Let the value of length be 3.0 and the value of the angle be 12.0. The failed connectors are placed onoutputcollection.#import hm import hm.entities as ent model = hm.Model() connector_collection = hm.Collection(model, ent.Connector, [1, 2, 3]) out_collection = hm.Collection(model, ent.Connector, populate=False) model.CE_FE_1DQuality( ce_incollection=connector_collection, outputcollection=out_collection, free1d=1, length_flag=1, length=3.0, angle_flag=1, angle=12.0, )