Model.CE_DetailSetInt#

Model.CE_DetailSetInt(connector_id, detail_name, integer_value, reserved, force_storage)#

Sets an integer connector detail for a single connector.

Parameters:
  • connector_id (unsigned int) – The ID of connector to update.

  • detail_name (hwString) –

    The name of the standard integer detail, or user-defined integer detail, to update. Standard integer details include:

    • ce_adjust_diameter

    Has different meaning based on ce_hole_option value.

    Case 1: Options to adjust hole diameter during realization.

    0 - Create hole diameter (2D).

    1 - Create and adjust hole diameter (2D).

    Case 2: Options to use the new diameter during realization.

    0 - Do not adjust hole diameter.

    1 - Adjust hole diameter (2D).

    • ce_adjust_hole

    Flag to specify whether to adjust the hole or the realization to make the connection successful.

    0 - Adjust realization.

    1 - Adjust hole position (2D).

    • ce_allow_recenter

    Recenter CWELD elements.

    Valid values are 0, 1.

    • ce_allowadjacent

    Flag to allow adjacent projections.

    Valid values are 0, 1.

    • ce_appliedmassdis

    Applied mass distribution type.

    Valid values are 0, 1.

    • ce_areastacksize

    Density for area connector.

    Value ≥ 0

    • ce_areathicknesstype

    Thickness type for area connector.

    Valid values are 0, 1.

    • ce_aspect_flag

    Fail hexa seam or area, as per aspect ratio check.

    Valid values are 0, 1.

    • ce_centered_quad

    Allow centered quad mesh imprint.

    Valid values are 0, 1.

    • ce_collectorid

    Component ID of the connector entity.

    • ce_configval

    FE configuration value of the realized connector.

    Value ≥ 0

    • ce_connectivity

    FE connectivity.

    0 - Mesh independent

    1 - Mesh dependent + remesh

    2 - Mesh dependent + ensure projection

    3 - Mesh dependent + quad transition

    4 - Mesh dependent + projection and find nodes

    5 - Mesh dependent + find nearest nodes

    • ce_cweld_option

    CWELD options.

    1 - GRIDID

    2 - ELEMID

    3 - PARTPAT

    4 - ELPAT

    5 - ALIGN

    • ce_cweld_suboption

    Sub-options for CWELD. The use/availability of sub-options is dependent on ce_ceweld_option.

    1 - GA-GB

    2 - GS (face to face)

    3 - GS (point to face)

    • ce_density

    The line or seam density value.

    Value ≥ 0

    • ce_fefactorreverse

    Vector reverse flag for seam connectors.

    Valid values are 0, 1.

    • ce_fe_acm_numhexa

    Hexa cluster pattern.

    1 - 1 hexa

    4 - 4 hexa

    8 - 8 hexa

    12 - 12 hexa

    16 - 16 hexa

    32 - 32 hexa

    • ce_fe_createcap

    Allow to create cap elements in the begining and end.

    Valid values are 0, 1.

    • ce_fe_density

    Number of coats of hexas.

    Value ≥ 0

    • ce_fe_edgesnapping_l

    Tolerance options to determine snapping to edge in L connection.

    0 - no

    1 - maximum 1 element row

    2 - maximum 2 element rows

    • ce_fe_edgesnapping_t

    Tolerance options to determine snapping to edge in T connection.

    0 - no

    1 - maximum 1 element row

    2 - maximum 2 element rows

    • ce_fe_normal_wt_cal

    Allow to normalize RBE3 weights.

    Valid values are 0, 1.

    • ce_fe_orthohexa

    Allow to make orthogonal faces for a single hexa.

    Valid values are 0, 1.

    • ce_fe_proj_hexa_face

    Allow to project hexa faces to shell planes.

    Valid values are 0, 1.

    • ce_fe_rows

    Number of rows of realization.

    Value ≥ 0

    • ce_fe_sharpcorner

    Allow a sharp corner during mesh imprint.

    Valid values are 0, 1.

    • ce_fe_strips

    Number of strips of realization.

    Value ≥ 0

    • ce_fe_tapered_t_input

    Options to input parameters for tapered T.

    0 - thickness dependent

    1 - angle, H and D

    2 - H1, H2 and D

    • ce_fe_thck_flag

    Options to position hexa between shells. This has different meanings under different realization types.

    For spots:

    1 - equival (T1+T2)/2

    2 - detached (T1+T2)/2

    3 - shell gap

    4 - mid thickness

    5 - const thickness

    7 - maintain gaps

    For seams:

    0 - (T1+T2)/2

    1 - shell gap

    2 - mid thickness

    3 - const thickness

    6 - maintain gaps

    • ce_fesolver

    FE solver number.

    Value > 0

    • ce_fetype

    Type value for realized connector as defined in feconfig.cfg file.

    Value ≥ 0

    • ce_fileattribute_opt

    File attribute option.

    1 - From search file

    2 - From current model

    3 - From connector metadata”

    • ce_fill_hole

    Allow to fill any 2D bolt holes during realization.

    Valid values are 0, 1.

    • ce_fill_hole_num

    Number of pie pieces to fill a bolt hole during realization.

    Value ≥ 0

    • ce_fill_hole_pattern

    Options to what pattern is used to fill a bolt hole during realization.

    -1 - pie pieces preserve

    0 - pie pieces=

    1 - 3 quads

    2 - 4 quads

    3 - 9 quads

    4 - 12 quads

    5 - 16 quads

    6 - 60 quads

    • ce_folderattribute_opt

    Folder attribute option.

    1 - From search folder

    2 - From current model

    3 - From connector metadata”

    • ce_forcecollinear

    FE force collinear flag.

    Valid values are 0, 1.

    • ce_half_spacing

    Half spacing offset flag for seams and lines.

    Valid values are 0, 1.

    • ce_hexa_position_opt

    Options to determine hexa position related to edge.

    0 - midpoint

    1 - offset from edge

    2 - positive edge

    3 - negative edge

    • ce_hexa_tapered_t_position_opt

    Options to determine hexa position related to edge.

    0 - connector side

    1 - positive side

    2 - negative side

    3 - element normal

    8 ce_hexaoffsetcheck

    Consider shell thickness and offset for solid positioning.

    Valid values are 0, 1.

    • ce_hole_option

    Bolt hole determination options.

    0 - consider existing hole only.

    1 - create hole, if none.

    2 - use hole, if available.

    3 - fill and remesh hole, if available.

    • ce_jacobian_flag

    Fail hexa seam or area, as per Jacobian check.

    Valid values are 0, 1.

    • ce_layers

    The number of thickness layers.

    Value ≥ 0

    • ce_link_option

    Link position related to seam connector.

    0 - closest

    1 - opposite

    • ce_material_option

    Material assignment options.

    0 - no material

    1 - select material

    • ce_materialid

    FE material ID.

    Value ≥ 0

    • ce_n_node_flag

    Limit the number of nodes per layer.

    Valid values are 0, 1.

    • ce_nonnormal

    Allow non-normal projections.

    Valid values are 0, 1.

    • ce_num_nodes_per_layer

    The number of nodes per layer.

    Value ≥ 0

    • ce_pass_through_ce

    Force weld going through connector position.

    Valid values are 0, 1.

    • ce_penta_fit_option

    Options to fit penta between shells.

    1 - fitted

    2 - equilateral

    3 - equilateral/fitted

    • ce_penta_right_angled

    Allow to create right-angled pentas.

    Valid values are 0, 1.

    • ce_penta_side_option

    Options to the side(s) of penta location.

    1 - positive side

    2 - negative side

    3 - both sides

    • ce_property_option

    Property assignment options.

    0 - no property

    1 - select property

    • ce_propertyid

    FE property ID.

    Value ≥ 0

    • ce_realizeto

    Organize realization results options.

    0 - elems to current comp

    1 - elems to connector comp

    • ce_remesh

    Mesh dependent flag.

    Valid values are 0, 1.

    • ce_seam_discontinuity

    Allow to create discontinuous hexas.

    Valid values are 0, 1.

    • ce_snaptonode

    FE snap to node flag.

    Valid values are 0, 1.

    • ce_spot_rbe_radius_option

    Allow to define a circle area to locate nodes for RBE3s.

    Valid values are 0, 1.

    • ce_state

    Connector entity state.

    Valid values are 0, 1.

    • ce_style

    Connector style.

    Valid values are 0, 1.

    • ce_systems

    FE build system flag.

    Valid values are 0, 1.

    • ce_trimsurfeachside

    Trim surfaces on each side flag for area connector.

    Valid values are 0, 1.

    • ce_usercontrol

    User control flag.

    Valid values are 0, 1.

    • ce_washer_elems

    Number of elements of washers.

    • ce_washer_elems_num

    Number of elements around bolt hole.

    Value ≥ 0

  • integer_value (int) – The integer value to update for the detail.

  • reserved (unsigned int) – Reserved for future development. Must be set to 0.

  • force_storage (unsigned int) –

    0 - Do not store user-defined detail.

    1 - Store user-defined detail.

Examples#

Set the thickness (number of layers) to 3 for connector with ID 1#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_DetailSetInt(
    connector_id=1,
    detail_name="ce_layers",
    integer_value=3,
    reserved=0,
    force_storage=0,
)
Set a user-defined double detail “test” to a value of 5 for connector with 2#
import hm
import hm.entities as ent

model = hm.Model()

model.CE_DetailSetInt(
    connector_id=2,
    detail_name="test",
    integer_value=5,
    reserved=0,
    force_storage=1,
)