...
TOPAS includes a 'rigid-body editor' which can be used to create and test rigid bodies. There are some examples of rigid bodies in the 'C:\TOPAS-6TOPAS7\rigid' folder; if at any point you get stuck while editing the z_matrix
for this section, it may help to look at some of the examples in this folder.
...