Model.CE_FE_SetDetails#
- Model.CE_FE_SetDetails(collection, config, tolerance, property_id, system_flag, snap_to_node, remesh, force_collinear, fe_type)#
Set FE realization details for the connectors on a collection.
- Parameters:
collection (Collection) – The collection containing the connector entities to update.
config (int) –
Weld element type. Valid values are:
2 - plot
3 - weld
5 - rigid
21 - spring
55 - rigidlink
60 - bar2
61 - rod
70 - gap
104 - quads
1001 - custom
tolerance (double) – The maximum distance allowed between the connector and the entity in order to create welds.
property_id (unsigned int) – The ID of property. Used to retrieve property specified for connector.
system_flag (int) –
0 - Build systems.
1 - Do not build systems.
snap_to_node (int) – Force weld to use one of the element connectivity nodes rather than create a new node.
remesh (int) –
Specifies if the welded area needs to be remeshed:
0 - Do not remesh
1 - Remesh
force_collinear (int) –
Force all the welds along all layers to be collinear:
0 - Non-collinear welds.
1 - Collinear welds.
fe_type (int) – The FE type for the current solver specified in the FE. Configuration File for user-defined FE only.
Example#
Set the required properties for the connectors with ID 1, 2 and 3, and create a simple bar element with a tolerance of 1#import hm import hm.entities as ent model = hm.Model() connector_collection = hm.Collection(model, ent.Connector, [1, 2, 3]) model.CE_FE_SetDetails( collection=connector_collection, config=60, property_id=1, system_flag=0, snap_to_node=0, remesh=0, force_collinear=0, fe_type=0, )