*seatfoamdeformer
Deforms the selected seat foam components with a choice to create their initial reference geometries.
Syntax
*seatfoamdeformer foamcompsmark=<mark_id> dummycompsmark=<mark_id> fixednodesmark=<mark_id> ?displacementdirectionratio={<value>}? ?createrefgeom=<value>?
Type
HyperMesh Tcl Modify Command
Description
Deforms the seat foam and updates the nodes of the selected seat foam components. The seat foam components must contain solid elements. The final configuration is obtained by displacing the appropriate dummy components in a specified direction. The fixed nodes on the foam need to be specified as well.
Inputs
- foamcompsmark=<mark_id>
- The ID of the mark containing the foam components to be deformed. Valid values are 1 and 2.
- dummycompsmark=<mark_id>
- The ID of the mark containing the dummy components used to deform the selected foam components. Valid values are 1 and 2.
- fixednodesmark=<mark_id>
- The ID of the mark containing the fixed nodes on the selected foam components. Valid values are 1 and 2.
- displacementdirectionratio={<value>}
- The direction in which the dummy components are displaced to deform the foam components. The default vector is {0.3, 0.0, -0.7}.
- createrefgeom=<value>
- The option that specifies whether the reference geometries of the foam components need to be created or not. Valid values are 0 and 1 (default).
Example
To deform the seat foam component with ID 1 using a dummy component with ID 2 and fixed
nodes on the foam with IDs ranging from 1000-1005; the entities need to be selected
first:
hm_createmark comps 1 1
hm_createmark comps 2 2
hm_createmark nodes 1 "by id only" {nodes 1000 1001 1002 1003 1004 1005}
To deform the foam using the default
settings:
*seatfoamdeformer foamcompsmark=1 dummycompsmark=2 fixednodesmark=1
To deform the foam in the direction {0.4, -0.2, -1.0} without creating the reference
geometries:
*seatfoamdeformer foamcompsmark=1 dummycompsmark=2 fixednodesmark=1 displacementdirectionratio={0.4 -0.2 -1.0} createrefgeom=0
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2021.2