I want to slice a 3D array
[-500:500]
to subarrays in sequence 100 subarrays of length 2 then one of length 50 then 100 of length 2 then one of length 50, and I wish every subarray is spaced by length one from the following.
I want to slice a 3D array
[-500:500]
to subarrays in sequence 100 subarrays of length 2 then one of length 50 then 100 of length 2 then one of length 50, and I wish every subarray is spaced by length one from the following.
This solution is the only one that worked for me:
The purpose of the slicing is to distribute particles inside the box.
I used software called gsd
to produce a GSD file.
*) get the xyz
file, with the help of another software (I used jmol program ), then you have the orientations of the particles in the model.
I wrote the orientations into my program to avoid overlapping.