*loadcreatewithsystemonentitywithvars

Create loads on nodes using Tcl variables for the load components, using a local system.

Syntax

*loadcreatewithsystemonentitywithvars entity_type mark_id config type comp1_var comp2_var comp3_var comp4_var comp5_var comp6_var system_id

Type

HyperMesh Tcl Modify Command

Description

Create loads on nodes using Tcl variables for the load components, using a local system.

Inputs

entity_type
The type of entity the load is applied to. Currently only nodes are supported.
mark_id
The ID of the mark containing the entities.
config
The config of the load to create:
1 - force
2 - moment
3 - constraint
5 - temperature
6 - nodal flux
8 - velocity
9 - acceleration
type
Solver-dependent type of the specified config.
comp1_var - comp6_var
Tcl variables containing the components of the load for each node. Each variable is an array with its indices as node IDs and its value the component for that direction. If the variable or index does not exist, the component will be set to zero. These variables must be fully qualified when passed in (for example, ::data::comp1).
system_id
The ID of a system that will transform the first three components before creating the load. An ID of zero indicates use of the global system.

Example

To create a force on node 50 with a value of 100 in the x-direction and on node 51 with a value of 200 in the y-direction, relative to system 5:
set ::comp1(50) 100
set ::comp2(51) 200
*createmark nodes 1 50 51
*loadcreatewithsystemonentitywithvars nodes 1 1 1 ::comp1 ::comp2 ::comp3 ::comp4 ::comp5 ::comp6 5

Errors

None.