Model.CE_PreviewBoltCylinder#
- Model.CE_PreviewBoltCylinder(collection, solver_name, config, fe_config, tolerance, ce_bodylen=0.0, ce_dia_factor=0.0, ce_diameter=0.0, ce_ijk=hwTriple(0.0, 0.0, 0.0), ce_l1=0.0, ce_l1d1=0.0, ce_l2=0.0, ce_l2d2=0.0, ce_passthroughce=0, ce_notuseijk=0)#
Sets cylinder bolt parameters for bolt connectors and displays the graphical preview.
- Parameters:
collection (Collection) – The collection containing the connector entities to update.
solver_name (hwString) – The name of the solver to query. Examples include: Nastran, Abaqus, LS-DYNA, etc.
config (int) – The connector config. Must always be set to 1001 at the present time.
fe_config (int) – The FE element config.
tolerance (double) – The realization tolerance.
ce_bodylen (double) – The length of the bolt when it is a spring.
ce_dia_factor (double) – The factor for the bolt diameter.
ce_diameter (double) – The diameter of the bolt.
ce_ijk (hwTriple) – The bolt vector.
ce_l1 (double) – The length of the bolt upper half.
ce_l1d1 (double) – The diameter of the bolt upper half, overriding
ce_diameter.ce_l2 (double) – The length of the bolt lower half.
ce_l2d2 (double) – The diameter of the bolt lower half, overriding
ce_diameter.ce_passthroughce (int) –
0 - Do not enforce passing through connector position.
1 - Enforce passing through connector position.
ce_notuseijk (int) –
0 - Do not use the bolt vector.
1 - Use the bolt vector.
Example#
Assign values of parameters for “bolt (cylinder rigid)” for Nastran to connectors with IDs 1-3 using a tolerance of 10.0#import hm import hm.entities as ent model = hm.Model() ce = hm.Collection(model, ent.Connector, [1, 2, 3]) model.CE_PreviewBoltCylinder( collection=ce, solver_name="Nastran", config=1001, fe_config=60, tolerance=10.0, ce_bodylen=-1.0, ce_dia_factor=1.0, ce_diameter=2.0, ce_ijk=(1, 0, 0), ce_l1=5.0, ce_l1d1=1.0, ce_l2=5.0, ce_l2d2=1.0, ce_passthroughce=0, ce_notuseijk=1 )