Model.CE_FE_3DQuality#

Model.CE_FE_3DQuality(ce_incollection, outputcollection, length_flag, length, jacobian_flag, jacobian)#

Checks the quality of 3D elements (welds) created by realizing connector entity (CE). It places all failed connectors on an output mark 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.

  • length_flag (int) –

    Check if the length of FE (welds) exceeds a certain value specified by the length parameter. 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.

  • jacobian_flag (int) –

    Check if the Jacobian of the FE (3D welds) exceeds the value specified by the jacobian parameter.

    1 - turned on

  • jacobian (double) – The value of the Jacobian of the 3D weld that should not be exceeded. Used in conjunction with jacobian_flag.

Example#

Check all the quality options of FE (3D weld elements) in a realized connector with IDs 1, 2, and 3. Let the value of length be 3.0 and the jacobian value be 0.7. The failed connectors are placed on outputcollection.#
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_3DQuality(
    ce_incollection=connector_collection,
    outputcollection=out_collection,
    length_flag=1,
    length=3.0,
    jacobian_flag=1,
    jacobian=12.0,
)