Hi Yiweide,
There are two ways to do this:
1. If you want to scan many structures quickly: See /path-to-Twister/FFRelaxation/mos2/. Take a look at near_0/near_60 folders.
--> In the no_relax/relax folder, you will find a script called "homo.sh".
Within the script homo.sh, uncomment the "printf "$latcon" | python $aux_files/hex_table_generic.py" line and comment out ""printf "$latcon" | python $aux_files/hex_table_least.py"".
--> In the aux_files/ folder set the angle range in hex_table_generic.py (change the line "sort_angles(100, 100, 40, 50, 'hex.table', 200)" to something like this) and run "python3 /path-to-aux-files/hex_table_generic.py". You will generate hex.table.
--> use the preferred indices from hex.table and run homo.sh. You can generate multiple structures with arbitrary twist angles. change "init" and "end" indices in homo.sh.
****
In simple words, the hex.table is generated with the general formula (np.arccos((m**2 + 4*n*m + n**2)/(2*(m**2 + n*m + n**2)))*180./np.pi, m and n can be any integer) rather than the specific one where |m-n|=1 is enforced.
****
2. With get_ang.py. See for example
:/path-to-Twister/examples/Homobilayer_hex/Mos2_withGetAng folder.
Change the "strain_per" to a minimum and "theta_range" to the desired
value.
Please let us know if this works for you.
Best regards,
Indrajit