“…To study the band gap, the structural features of the polymers, we have used the DMol3 in the copyrighted Material Studio software combined with the Density Function Theory (DFT) method. To investigate band gap, the structural, calculates the thermodynamic properties of many different polymer systems [ 65–71 ], and polythiophenes [ 72 , 73 ]. Besides, use the GGA package [ 74 ] with takes the combined parameters of the PW91 exchange, correlation functional [ 75 , 76 ], and the K-point grid according to the Monkhorst–Pack diagram [ 77 ] was directed into a three-dimensional unit cell with definite dimensions a, b, c, α, β and γ as follows: P1: C 11 H 7 NS-O (a = 10 Å, b = 10 Å, c = 25 Å), P2: C 11 H 7 NS-S (a = 10 Å, b = 10 Å, c = 6 Å), P3: C 18 H 9 ON 2 S 2 -H (a = 10 Å, b = 10 Å, c = 40 Å), P4: C 18 H 9 ON 2 S 2 -OCH 3 (a = 10 Å, b = 15 Å, c = 40 Å) and P5: C 18 H 9 ON 2 S 2 -Cl (a = 10 Å, b = 15 Å, c = 40 Å) and α = β = γ = 90°.…”