Model.createdoubler#

Model.createdoubler(elements, domElements, normal, plane_point, length, mesh_elem_size, offset, thickness, flange_width, material=Entity(), connectorControl=Entity(), realizeconnectors=True, seperation_edges='')#

Creates a doubler at a C section formed by selected elements with a given length and width of the flanges and sets the specified thickness on the property card. The doubler is created on either side of the plane defined by the base point and normal.

Optionally, you can specify the material ID used for the doubler, enable connector creation and realization, and define separation edges between the dominant face and the flanges in the form of node pairs.

Parameters:
  • elements (Collection) – The collection containing the element entities of the C section.

  • domElements (Collection) – The collection containing the element entities from the dominant face of the C section.

  • normal (hwTriple) – The normal direction defining the main doubler plane.

  • plane_point (hwTriple) – The coordinates of the base point defining the position of the doubler.

  • length (double) – The length of the doubler.

  • mesh_elem_size (double) – The element size used for the doubler mesh.

  • offset (double) – The extra offset value for the doubler flanges. Should be set to 0 if no extra offset is needed other than the offset needed for the doubler thickness.

  • thickness (double) – The thickness value assigned to the property card of the doubler.

  • flange_width (double) – The width of the doubler flanges.

  • material (Entity) – The object describing the material entity which is set as the material property for the created doubler..

  • connectorControl (Entity) – The object describing connector control entity (spot/point, seam/line) which is used for realizing the connectors along the flanges of the doubler.

  • realizeconnectors (bool) –

    The flag to control the connector realization.

    False - Keep the connectors unrealized.

    True - Realize the created connectors.

  • seperation_edges (hwString) – Feature edges defined by node pairs IDs to differentiate between flanges and the dominant face.

Example#

Create a doubler at a C section defined by elements with IDs 1-9889, with the dominant face defined by elements with IDs 8396 and 8418, a central plane defined by point (42.6, -21.9, 223.9), a plane normal (0.0, 0.0, -1.0), a width of the flanges of 32.0, an element size of 3.0, a thickness of the doubler of 2.0, with no extra offset, with material ID 12, connectors with control ID 8, and separation feature edges “1-2 2-3 3-4 4-5 5-6 30-31 31-32 32-33 33-34 34-35”#
import hm
import hm.entities as ent

model = hm.Model()

model.createdoubler(
    elements=hm.Collection(model, ent.Element, list(range(1 - 9890))),
    domElements=hm.Collection(model, ent.Element, list(range(8396, 8419))),
    normal=[0.0, 0.0, -1.0],
    plane_point=[42.6, -21.9, 223.9],
    flange_width=32.0,
    mesh_elem_size=3.0,
    thickness=2.0,
    offset=0.0,
    material=ent.Material(model, 12),
    connectorControl=ent.Connectorcontrol(model, 8),
    realizeconnectors=True,
    seperation_edges="1-2 2-3 3-4 4-5 5-6 30-31 31-32 32-33 33-34 34-35",
)