SET_PART
Sets
*SET_PART
"Optional title"
setid
range${}_1$, ..., range${}_{\mathrm{K}}$
.
range${}_{\mathrm{M}}$, ..., range${}_{\mathrm{N}}$
"Optional title"
setid
range${}_1$, ..., range${}_{\mathrm{K}}$
.
range${}_{\mathrm{M}}$, ..., range${}_{\mathrm{N}}$
Parameter definition
Variable
Description
setid
Unique part set identification number
range${}_1$, ..., range${}_{\mathrm{K}}$
Part ID range 1 to K
.
range${}_{\mathrm{M}}$, ..., range${}_{\mathrm{N}}$
Part ID range M to N
Description
This command defines a set of parts. A range is either a part ID (e.g. 10), or a range of parts (e.g. 10..20).
Example
SET_PART
The following command defines a part set with ID 123 that contains part ID's 1, 5, 6, 7, 15 and 20. A range of parts is defined with 5..8 i.e. part ID's 5, 6, 7, 8 while referring to -8 removes part ID 8 from the part set. The part set can then be used as entity type for a multitude of supported commands e.g. INITIAL_VELOCITY.
*TIME
0.1
~repeat 20
*COMPONENT_BOX
[r1], [r1], 1, 1, 1
[r1], [1], [1], [r1+1], [2], [2]
*PART
[r1], 1
~end_repeat
*MAT_RIGID
1, 1
*SET_PART
123
1, 5..8, -8, 15, 20
*INITIAL_VELOCITY
PS, 123, , , 10
*END