generate

The generate command is used to generate node/element groups according to predefined rules.

For custom rules, please refer to CustomNodeGroup.

form one: generate based on a fixed interval

# to hold one node/element only
generate nodegroup (1) (2)
generate elementgroup (1) (2)
# (1) int, unique group tag
# (2) int, object tag

# generate from tag (2) to tag (3) with unit increment
generate nodegroup (1) (2) (3)
generate elementgroup (1) (2) (3)
# (1) int, unique group tag
# (2) int, starting object tag
# (3) int, ending object tag

# generate according to given increment
generate nodegroup (1) (2) (3) (4)
generate elementgroup (1) (2) (3) (4)
# (1) int, unique group tag
# (2) int, starting object tag
# (3) int, interval
# (4) int, ending object tag

It shall be noted that the starting tag does not have to be smaller than the ending tag.

form two: generate a node group based on polynomial

generatebyrule nodegroup (1) (2) [(3)...]
# (1) int, unique group tag
# (2) int, DoF tag that polynomial shall be applied on
# [(3)...] double, parameters a_n, a_{n-1}, a_{n-2},..., a_0

The polynomial constraint is defined to be

generatebyrule nodegroup 1 2 1. -200.

form three: generate a node group based on the line segment

It is sometimes useful to select all nodes lie in a straight line segment. The following command can be used.

generatebypoint nodegroup (1) [(2)...]
# (1) int, unique group tag
# [(2)...] double, coordinates of two end points
generatebypoint nodegroup 1 3. 4. 8. 7.

form four: generate a node group based on plane

generatebyplane nodegroup (1) [(2)...]
# (1) int, unique group tag
# [(2)...] double, parameters that define a plane

A plane is defined by

For example, a plane can be defined as

Then

generatebyplane nodegroup 1 3. 2. -1. 7.

finds all nodes that fall in this plane and groups them.

generatebyplane nodegroup 1 1. 2. -3.

Last updated