Model.categorizeskeletonmodel#

Model.categorizeskeletonmodel(collection, holeswidth=10.0, youngsmoduli=20000.0, thickness=0.01, volume=30000.0, skeletonholeswidth=500.0, tolerance=20.0, hardpointsratio=0.2, adjacentfaces=15.0, adjacenthardpoints=10.0, connectpanels=True, detectionfiltertoggle=False, detectionfilterzplane=0.0, fillholestoggle=True, glazingflangestoggle=True, glazingtiedcontact=False, hardpointsratiotoggle=True, hardpointstiedcontact=False, includehardpointscastingstoggle=False, includehardpointspanelstoggle=False, minimumareatoggle=True, minimumarea=True, thicknesstoggle=True, volumetoggle=True, youngsmodulitoggle=True, hardpointsmask=Collection(), cofgoruserdefinedtoggle=False, retainfillholes=True)#

Creates sets of glazing, casting, skeleton, panel and hardpoint elements from provided model using geometrical and mechanical procedures.

Parameters:
  • collection (Collection) – The collection containing the input entities.

  • holeswidth (double) – Maximum allowed hole width.

  • youngsmoduli (double) – Remove all parts with small Young’s modulus.

  • thickness (double) – Remove all elements with small thickness.

  • volume (double) – Remove parts with low volume.

  • skeletonholeswidth (double) – Fills holes so that the skeleton set can be calculated.

  • tolerance (double) – Tolerance used to generate the skeleton set. Use a large value for cruder output, smaller for more refined.

  • hardpointsratio (double) – Ratio above which all parts are kept in the set of elements.

  • adjacentfaces (double) – Find the faces that are adjacent to features.

  • adjacenthardpoints (double) – The number of expansions performed towards nearby elements. Used to categorize elements around a hardpoint.

  • connectpanels (bool) –

    Connection elements that are connected to panel set elements are included in the panel set output.

    0 - Do not connect panel set

    1 - Connect panel set

  • detectionfiltertoggle (bool) –

    Disable or enable glazing filtering.

    0 - Do not filter glazings

    1 - Identify glazings above auto-calculated or user defined CofG

  • detectionfilterzplane (double) – Identify glazings above the auto-calculated or user defined CofG z-coordinate.

  • fillholestoggle (bool) –

    Fill holes in selected input.

    0 - Disable fill holes

    1 - Enable fill holes

  • glazingflangestoggle (bool) –

    Find the rows of elements around and attached to the adhesive on the glazing.

    0 - Do not create glazing flange set

    1 - Create glazing flange set

  • glazingtiedcontact (bool) –

    In addition to physically attached, include tied contacts. Requires glazingflangestoggle set to 1.

    0 - Disable glazing tied contact

    1 - Enable glazing tied contact

  • hardpointsratiotoggle (bool) –

    Ratio above which all parts are kept in the set of elements.

    0 - Disable hardpoints ratio

    1 - Enable hardpoints ratio

  • hardpointstiedcontact (bool) –

    Find surrounding elements attached to the selected hardpoints via tied contact.

    0 - Disable hardpoints tied contact

    1 - Enable hardpoints tied contact

  • includehardpointscastingstoggle (bool) –

    Controls the location of the hardpoint information.

    0 - Exclude hardpoints from castings set

    1 - Include hardpoints in castings set

  • includehardpointspanelstoggle (bool) –

    Controls the location of the hardpoint elements.

    0 - Exclude hardpoints from panel set

    1 - Include hardpoints in panel set

  • minimumareatoggle (bool) –

    All patches less than the size specified will be removed from the panel set.

    0 - Disable area filtering

    1 - Enable area filtering

  • minimumarea (double) – All patches less than the size specified will be removed from the panel set.

  • thicknesstoggle (bool) –

    Remove all elements with small thickness.

    0 - Disable thickness filtering

    1 - Enable thickness filtering

  • volumetoggle (bool) –

    Remove parts with low volume.

    0 - Disable volume filtering

    1 - Enable volume filtering

  • youngsmodulitoggle (bool) –

    Remove all parts with small Young’s modulus.

    0 - Disable Young’s Moduli filtering

    1 - Enable Young’s Moduli filtering

  • hardpointsmask (Collection) – The collection containing the input nodes for the hardpoints computation.

  • cofgoruserdefinedtoggle (bool) –

    Identify glazings above the auto-calculated or user defined CofG. Requires detectionfiltertoggle set to 1.

    0 - auto-calculated

    1 - User defined

  • retainfillholes (bool) –

    Retain or delete filled holes.

    0 - Delete filled holes

    1 - Retain filled holes

Example#

Categorize all the displayed elements#
import hm
import hm.entities as ent

model = hm.Model()

elems = hm.CollectionByDisplayed(model, ent.Element)

model.categorize_skeleton_model(collection=elems)
Categorize all the displayed components using thickness 0.05 and tolerance 30.0#
import hm
import hm.entities as ent

model = hm.Model()

comps = hm.CollectionByDisplayed(model, ent.Component)

model.categorize_skeleton_model(collection=comps, thickness=0.05, tolerance=30.0)
Categorize all the displayed elements and compute the hardpoints for node ID 34 and 43#
import hm
import hm.entities as ent

model = hm.Model()

nodes = hm.Collection(model, ent.Node, [34, 43])

elems = hm.CollectionByDisplayed(model, ent.Element)

model.categorize_skeleton_model(collection=elems, hardpointsmask=nodes)