I want to create a solar panel array in the following data tree structure. There is only one item/element in the bottom level branch.

I can create a two branch layer data tree to represent a bifacial PV panel, i.e. branch level C in the diagram above has two items, representing both faces, and the branch level D has 72 items, representing the solar cells on one side of a panel:

I want to replicate this bifacial PV panel to the points in a grid by moving it according to 8 vectors:

However, the data tree structure of the replicated pv array becomes 144 branches, each with 8 elements, rather than with 8 branches, each with two layer of branches. In other words, what I want to get is a data tree like {B; C; D}, in which level B has 8 branches, representing the 8 panels; level C has 2 branches, representing two sides of a panel; and level C has 72 items, representing the 72 cells on each side of a panel.

May I ask how shall I manipulate the data tree to achieve this?

Thanks.

pv_array_v001.gh (28.5 KB)