The nonuniformgrid command allows to create a non-uniform grid along one axis.
As input it requires a numpy array with an even number of elements. In particular, the array is of the form:
x1, ∆1, x2, ∆2, x3, ∆3, ….. xn, ∆n, where xi defines the position in nm of the grid point along the generic direction (x, y or z),
while the number ∆i the spacing between two user’s defined grid points.
As an application, please refer to the grid tutorial.