Dear all,
I constructed a hetero-bilayer using the "Interface" plugin, as seen in attached .py file. However, since there is no potentials preseted for optimizing the interlayer distance of the two layers, I want to get the value by calculating the total energy of the bilayer system with various interlayer distance values. I tried to follow the tutorial "Carbon Nanotube Junctions" where there is a script dealing with different distance between two graphene nanotubes. However, because of my limited knowledge about python script, there are so many errors with my script that I'm shamed to post it here.
What I want to do is to make a loop with various interlayer diatance. There are two layers in the bulk configuration: each of them is signed a tag named "Left_layer" and "Right_layer", respectively. Based on an original bulk configuration, each time, I want to change the distance a between these two layers a little to form a new configuration, and then calculate the total energy of this new configuration. By observing the total energy vs. interlayer distance curve, I can get the idea which value of interlayer distance is the optimum one.
There is another question: if the van der Waals interaction is not considered, can I get the right figure of the total energy of the system? Can I get the correct value of interlayer distance by a scan without considering the van der Waals interaction? I tried to follow the tutorial "DFT-D and basis-set superposition error", however, it took me too long the time that I don't want to use it any more.
Thanks a lot for anyone who is willing to help me!