*BCM
Creates loads by performing linear interpolation between existing loads or loads defined in a text file.
Syntax
*BCM entity_type mark_id load_mark_id config type filename tolerance facenode_mark_id break_angle
Type
HyperMesh Tcl Modify
Description
This command creates loads by interpolating between existing loads (field loads) or loads defined in a text file (linear interpolation).
Inputs
- entity_type
- The type of entity to create loads on. Valid values are nodes and elements.
- mark_id
- The ID of the mark containing the entities to create the loads on. Valid values are 1 and 2.
- load_mark_id
- The ID of the mark containing any existing loads to use during the interpolation. The mark does not have to be populated. Valid values are 1 and 2.
- config
- The configuration of the load to create. Valid values are:
- type
- The solver type of the load to create. This value is dependent on the current solver template loaded.
- filename
- The name and path of a file containing the coordinates and values of any input loads to use for the linear interpolation. This parameter is optional and should be set to "" if not specified. The format of the file is:
- tolerance
- The search radius to use for finding nodes/elements for interpolation. If a negative value is provided, gap filling is used and a load is created at every selected node/element regardless of the search tolerance.
- facenode_mark_id
- The ID of the mark containing the face nodes when defining solid element faces. The mark does not have to be populated. Valid values are 0 (when entity_type is set to nodes), 1 and 2.
- break_angle
- The break angle to use when defining solid element faces. Should be set to 0 when entity_type is set to nodes.
Examples
To create forces on nodes 100, 101 and 102 by interpolating from existing loads on nodes 99
and 103, using a search radius of
10.0:
*createmark nodes 1 101-102
*createmark loads 2 99 103
*BCM nodes 1 2 1 1 "" 10.0 0 0 0
To create forces on nodes 100, 101 and 102 by interpolating from loads defined in the file
C:/my_loads.txt, using a search radius of
10.0:
*createmark nodes 1 101-102
*createmark loads 2
*BCM nodes 1 2 1 1 "C:/my_loads.txt" 10.0 0 0
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}