**match_nset#
Description#
This command re-orders an nset to match with the order of another nset. It can be useful in the case where periodic boundary conditions are to be applied.
Syntax#
**match_nset
\(~\,\) *n1 nset1
\(~\,\) *n2 nset2
\(~\,\) *distance dist
\(~\,\) [ *no_x ]
\(~\,\) [ *no_y ]
\(~\,\) [ *no_z ]
*n1the reference node set.
*n2the node set to re-order.
*distancetwo nodes are matched if they are close together within the given distance.
*no_xDo not consider the x-coordinate while computing the distance between two nodes ( \(d=\sqrt{(y_1-y_2)^2+(z_1-z_2)^2}\)).
*no_yand
*no_zThe same for y and z-coordinates.
Example#
Here is an example to match two node sets top and bot.
**match_nset
*n1 bot
*n2 top
*distance 0.001
*no_y
The output is
**nset top ------> **nset top
8 10 6 9 7 10 9 8 7 6
**nset bot **nset bot
1 2 3 4 5 1 2 3 4 5