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

The polynomial constraint is defined to be

anxn=0,\sum{}a_nx^n=0,

where xx is the coordinate of the target DoF of the target node.

For example, if one wants to select all nodes on the line y=200y=200, then the following command can be defined.

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.

There is no restriction on the size of each point defined, but the sizes of two points must match. If one wants to select all points lie on the line segment between points (3, 4)(3,~4) and (8, 7)(8,~7), then

form four: generate a node group based on plane

A plane is defined by

aixi+b=0,\sum{}a_ix_i+b=0,

where xix_i are coordinates and aia_i are the corresponding constants, bb is constant.

For example, a plane can be defined as

3x+2yz+7=0.3x+2y-z+7=0.

Then

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

There is no restriction on the number of coordinates used. So it is possible to define a hyper-plane, or a line. However, the last parameter will always be the constant. For example, the following command defines the line x+2y3=0x+2y-3=0 in the 2D plane.

If this is used to find nodes to define a group in a 3D problem, then the zz coordinates of all nodes will be automatically skipped so that nodes such as (2,1,0)(2,1,0) and (2,1,10)(2,1,10) will be added to the group.

Last updated