The dominant phenomenon observed during mechanical operations at grain boundaries is known as GB sliding. To gain insights into how the segregation of aluminum at GB influences this phenomenon, a comprehensive study of GB sliding becomes imperative. As a result, we have developed a model through our custom Python script. In our approach, we have fixed one layer within each of the grains, preventing any atomic position relaxation. Employing a systematic, serial methodology, we introduce relative displacements between the layers of one grain to the other. Subsequently, the resulting atomic structure is subjected to geometric optimization. These fixed layers effectively serve as constraints, maintaining the deformation within the GB region.