HMIN_CE_CreateDefined()
Syntax
HMIN_CE_CreateDefined(HM_entityidtype id, int total_t, int numlinks, char **etype_names, int num_names, char **ent_names, int num_ids, HM_entityidtype *ent_id, int *ent_rules, int *ent_states, int config, int type)
Type
HyperMesh hminlib Function
Description
Inputs
- id
- ID of the connector being read into HyperMesh.
- total_t
- Number of layers to connect at the connector location.
- numlinks
- Number of link entities that are added to the connector.
- etype_names
- The names of the link entity types (like components, surfs, etc) added to the connector. The size of this array must be equal to the "numlinks" value.
- num_names
- The number of link entity names added to the connector. The size of ent_names array.
- ent_names
- The array of names of link entities (comps and tags only).
- num_ids
- The number of link entity id’s added to the connector. The size of ent_ids array.
- ent_id
- The array of Ids of link entities.
- ent_rules
- The link entity rules specified for each link entity. The various rules supported are:
- ent_states
- The link entity states specified for each link entity. This specifies if the connection is made to the mesh or to the geometry. The values for the supported states are:
- config
- The FE (weld) configuration to be specified for the connector realization.
- type
- The FE type (for user defined FE only). Please see help on connector feconfig file for more information.
Example
To import a connector that connects components with ID 1 and 2, and requiring a 2 thickness weld of HM config 60,
id = 1, total_t = 2, numlinks = 2, etype_names[] = { components, components }, num_names = 0, ent_names = NULL, num_ids = 2, ent_id[] = { 1, 2 }, ent_rules[] = { 1, 1 }, ent_states[] = { 1, 1 }, config = 60 and type = 0.
Note: The sum of the "num_ids" and "num_names" values must be equal to the "numlinks" value if
valid "ent_names" and "ent_id" array is specified. If either one of the arrays is specified
then its individual size must be equal to the "numlinks" value. For the proximity case, the
above arrays must be empty (their size must be 0) and "numlinks" should have a valid value.
The "numlinks" value dictates the number of links added to a connector and the "total_t"
defines the number of layers that are connected.
Errors
None.