*CE_ConnectorCreateByListAndRealizeWithDetails
Creates a certain style of connector at locations specified by a list, with certain rules and details, and realize the connectors using specified realization details.
Syntax
*CE_ConnectorCreateByListAndRealizeWithDetails entity_type list_id ce_style num_links link_entity_type link_mark_id solver_name fe_type tolerance string_array number_of_strings
Type
HyperMesh Tcl Modify Command
Description
Creates a certain style of connector at locations specified by a list, with certain rules and details, and realize the connectors using specified realization details.
Inputs
- entity_type
- The entity type that specifies the location to create connectors. Valid values are:
- list_id
- The ID of the list containing the entities. Valid values are 1 and 2.
- ce_style
- The style of connectors to create. Valid values are area, bolt, seam and spot.
- num_links
- The number of links to use.
- link_entity_type
- The type of entity to create links for. Valid values are comps and surfs.
- link_mark_id
- The ID of the mark containing the link entities. Valid values are 1 and 2.
- solver_name
- The target solver for realization.
- config
- The element type used for realization. Valid values are:
- 2 - plot
- 3 - weld
- 5 - rigid
- 21 - spring
- 55 - rigidlink
- 60 - bar2
- 61 - rod
- 70 - gap
- 104 - quads
- 1001 - custom
- fe_type
- The type ID for the current solver specified in the feconfig.cfg file. Only used for custom config 1001.
- tolerance
- The maximum distance allowed between the connector and each of its links during realization.
- string_array
- The ID of the string array that contains the additional input parameters. The string array is created using the *createstringarray command. This should always be set to 1.
- number_of_strings
- Integer indicating the size (number of strings) in the string array created using *createstringarray.
Examples
To create a seam connector at the location of node list 66 55 65 to connect components 1
and 2 using a tolerance of 6.0 for Nastran:
*createlist nodes 1 66 55 65
*createmark comps 2 1 2
*createstringarray 5 "link_elems_geom=elems" "link_rule=now" "relink_rule=none" "tol_flag=1" "tol=6.000000"
*CE_ConnectorCreateByListAndRealizeWithDetails nodes 1 seam 2 comps 2 Nastran 2 0 10.0 1 5
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}