Introduction

Organic solar cells (OSCs), as a type of lightweight, flexible, and solution-processable photovoltaics, have shown promising prospects in integrating with wearable clothes, smart electronics and eco-friendly buildings1,2,3,4,5,6,7. Currently, the cutting-edge OSCs are featured with bulk heterojunction (BHJ) or pseudo-bulk heterojunction (p-BHJ, fabricated by layer-by-layer deposition with BHJ morphology sandwiched with donor- and electron- rich interfacial regions near the electrodes) photoactive layer consisting of electron donor and electron acceptor, in which the photogenerated excitons are dissociated at their interface and the free carriers are transported through their pristine phases toward electrodes8,9,10. However, in solution-processed photoactive layers, the disordered packing networks and undesired phase separation of organic semiconductors usually bring serious charge recombinations, which result in inferior open-circuit voltages (VOC) and fill factors (FF), compared to silicon, perovskite, or other inorganic solar cells11,12. Therefore, improving the structure orders and optimizing the nanoscale morphology of organic semiconductors play a critical role in achieving high power conversion efficiency (PCE) of OSCs8,13,14,15,16,17,18.

The well-intertwined fibrillar networks of organic semiconductors is considered one of the most suitable morphologies for the photoactive layers of OSC devices, in which the nanofibrils featured with long-range structural order can provide sufficient exciton dissociation interfaces and fast carrier transport channels8,19,20,21,22,23. The self-assembly and fibrillization of electron donors and acceptors are primarily driven by the non-covalent interactions between the conjugated backbones of organic semiconductors, thus it could be well mediated by chemical structural design20,21 and additive engineering22,23. Very recently, it was found that, in addition to broadening absorption spectra and manipulating interfacial energetics24,25, the ternary strategy can also obtain the fibrillar morphology and further improve photon capture and suppress charge recombination, and thereby achieving record efficiencies8,26,27,28,29. However, the lacking of deep insight into the mechanism of fibril formation, which involves the molecular interactions between the third component and host donor or acceptor within the ternary heterojunction, hinders the achievement of new milestone efficiency of 20%.

Here, we designed and synthesized a new non-fullerene acceptor (NFA), namely L8-ThCl, as the third component for the state-of-the-art host system, PM6:L8-BO19,30,31, and systematically investigate the morphology evolution of both donor and acceptor phases after the introduction of L8-ThCl. We found that the well-arranged edge-on PM6 chains can be twisted into face-on orientation by the dipole–dipole interaction with L8-ThCl, and refined into nanofibrils with enhanced and denser π−π stacks. Meanwhile, the good miscibility and intermolecular interactions between L8-BO and L8-ThCl in W and S-shaped packed dimers can effectively strengthen and regulate the packing networks of acceptors into one-dimension (1D) fibrils with high crystallinity. Employing the layer-by-layer (LbL) deposition method, the enhanced structural order can be retained for both donor and acceptor phases to significantly boost the power conversion efficiency (PCE) of the resulting OSCs. As a result, a PCE of 19.4% was obtained for LbL processed PM6:L8-ThCl/L8-BO:L8-ThCl ternary p-BHJ OSCs and a record PCE of 20.1% was achieved for the D18:L8-ThCl/L8-BO:L8-ThCl ternary p-BHJ OSCs, and the latter was certified 20.0%, which is the highest certified PCE reported so far for single-junction OSCs.

Results and discussion

Materials and fibrillization of donor and acceptor

The chemical structures and energy levels of PM6, L8-BO, and L8-ThCl (with the detailed synthesis routes shown in Supplementary Fig. 1) are shown in Fig. 1a and Supplementary Figs. 2, 3. It can be seen that L8-ThCl shares the same central core with L8-BO, but possesses chlorine-substituted thiophene (2-(1-chloro-6-oxo-5,6-dihydro-4H-cyclopenta[c]thiophen-4-ylidene)malononitrile (CPTCN-Cl)) as end groups, which has been reported to induce stronger intermolecular interaction as well as good compatibility with L8-BO28,32,33. This chemical structure feature leads to slightly upshifted energy levels and narrowed full-width-at-half-maxima (FWHM) at its (0-0) absorption peak (Supplementary Fig. 4), not only confirming the stronger aggregation in the film due to stronger intermolecular interaction but also implying that the aligned energy levels might facilitate charge transport in solar cell devices34.

Fig. 1: Materials and fibrillization of donor and acceptor.
figure 1

a Chemical structures of PM6, L8-ThCl and L8-BO. b AFM images of PM6 and L8-BO thin films with or without the addition of 20% L8-ThCl. c The 2D GIWAXS patterns of PM6 and L8-BO thin films with or without the addition of 20% L8-ThCl. d The 1D GIWAXS profiles of PM6 and PM6:L8-ThCl blends in a thin film state along the IP and OOP directions. e The 1D GIWAXS profiles of L8-BO, L8-ThCl, and L8-BO:L8-ThCl blend in a thin film state along the IP and OOP directions. Source data are provided as a Source Data file.

We first cast thin films of PM6 and L8-BO, with or without adding L8-ThCl, and investigated the interactions between the third component and host donor and acceptor, respectively. From the atomic force microscope (AFM) surface images (Fig. 1b and Supplementary Fig. 5), it is obvious that the weak, thin, and discontinuous PM6 fibrils become denser and continuous after the introduction of more L8-ThCl. These fine and long PM6 nanofibrils remain after chloroform rising to remove any isolated L8-ThCl, taking the one processed with the presence of 20 wt% L8-ThCl as an example (see Supplementary Fig. 5c). Although L8-ThCl in its neat phase will not form fibrils, nanofibrils can also be found in the L8-BO:L8-ThCl (1:0.2) blend film. The 0-0 absorption peak of PM6 in the PM6:L8-ThCl (1:0.2) blend film was also enhanced significantly (Supplementary Fig. 6), which remained strong even after rising with chloroform to remove L8-ThCl, confirming the enhanced structural order of PM6 as a result of strong intermolecular interactions between PM6 and L8-ThCl35. A red-shifted absorption peak located at 822 nm was found in the L8-BO:L8-ThCl (1:0.2) blend film, as well as the weakened shoulder peaks, corresponding to enhanced crystallinity and structural order. It was also found that the photoluminescence (PL) peak locations of L8-BO and L8-BO + 20% L8-ThCl films were almost the same, but the intensity of the latter was much higher, indicating the highly mixed phase of L8-BO and L8-ThCl (Supplementary Fig. 7).

According to the two-dimensional (2D) grazing-incidence wide-angle X-ray scattering (GIWAXS) patterns (Fig. 1c), we found the neat PM6 film showed a weak π−π stacking peak at 1.68 Å−1 in the out-of-plane (OOP) direction and (100) lamellar peaks at 0.29 Å−1 in both in-plane (IP) and OOP directions, corresponding to a mixture of face-on and edge-on orientations of PM6 chains36. Interestingly, after adding 20 wt% of L8-ThCl, the intensities of (100) in IP and (010) in OOP both increased, indicating the face-on orientation of PM6 chains (Fig. 1d). While blending with L8-ThCl at 1:1.2 (wt.), the lamellar peak of PM6 in OOP was almost eliminated, the film was dominated by face-on orientation (Supplementary Fig. 8). For NFA and its blend films, L8-ThCl exhibited similar face-on orientation like L8-BO, a π−π stacking diffraction peak locating at 1.74 Å−1 (compared to 1.73 Å−1 of L8-BO) in OOP was observed, translating to a shortened π−π stacking distance from 3.63 to 3.61 Å (Fig. 2e). When 20% of L8-ThCl was introduced into L8-BO, a red-shifted π−π stacking peak was found locating at 1.79 Å−1 with a shoulder at 1.50 Å−1, corresponding to the high crystallinity of NFA conjugated backbones. We also found that the (021) and (11-1) peaks, corresponding to the single crystal lattices of L8-BO, were much more enhanced and independent, as well as the presence of (110) peak, indicating the long-range order and high crystallinity of the L8-BO:L8-ThCl blend film30,37. By fitting the 1D profiles of the 2D grazing-incidence small-angle X-ray scattering (GISAXS) images of these pure or blend films, the size and proportion of the crystallized domain of these organic semiconductors can be quantified (Supplementary Fig. 9 and supplementary Table 1). For both PM6 and L8-BO, the introduction of L8-ThCl can significantly enlarge their domain sizes, confirming the strong molecular interactions between L8-ThCl and the host system. According to the SCLC measurements, fibrilization can significantly increase the charge mobilities of both donor and acceptor, which will improve JSC and FF (Supplementary Fig. 10 and Supplementary Table 2).

Fig. 2: Theorical calculation results.
figure 2

The MD snapshots of a PM6 box (360 PM6 pentamer chains), PM6 + 20%L8-ThCl box (300 chains of PM6 pentamers and 240 L8-ThCl molecules), b L8-BO box (1800 molecules) and L8-BO + 20%L8-ThCl box (1500 L8-BO molecules and 300 L8-ThCl molecules). The PM6 chains, L8-BO and L8-ThCl are colored green, blue, and red, respectively, and all alkyl chains are not shown for clarity. c The distribution of distance from different PM6 chains. d The calculated end-to-end distances and Rg of PM6 chains in the PM6 and PM6 + 20%L8-ThCl boxes. e The ratios of D-D, A-A, and A-D packings in the L8-BO and L8-BO + 20% L8-ThCl boxes. f Binding energies of L8-BO to L8-BO and L8-BO to L8-ThCl in W and S -shape packing styles. g Illustrations of interactions between PM6 and L8-ThCl, h as well as L8-BO and L8-ThCl, in which the long green strips represent the PM6 chain and the short strips represent L8-BO (blue) and L8-ThCl (red). Source data are provided as a Source Data file.

Theoretical calculations and discussions

Theoretical calculations were performed to understand how L8-ThCl improved the structure order and induced the fibrillization of both donor and acceptor. The density functional theory (DFT) calculation at B3LYP/def2-SVP level was first performed to obtain the optimized single-molecule geometries (Supplementary Fig. 11 and Supplementary Data 1), and the electrostatic potential (ESP) distributions of PM6 and NFAs were well fitted and shown in Supplementary Fig. 12. The ESP distribution of PM6 conjugated backbone is opposite to that of NFAs, which will lead to strong dipole–dipole interaction between adjacent PM6 and NFA molecules16,36. Then, molecular dynamics (MD) simulations were performed to simulate the packing behaviors and quantify the intermolecular interactions between L8-ThCl and the host donor and acceptor, with the snapshots of simulated molecular blends at the equilibrium state are shown in Fig. 2a, b. We counted the distance distribution between atoms from different conjugated backbones of PM6, within 4 Å, a general maximum for π−π stackings38. It was found that the π−π stacks in the PM6 + 20% L8-ThCl box are more than those in the pure PM6 box (Fig. 2c). Meanwhile, the end-to-end distance and radius of gyration (Rg) of PM6 chains in PM6 + 20% L8-ThCl box are 4.69 and 1.87 nm respectively, shorter than those (5.26 and 2.09 nm) of pure PM6 box (Fig. 2d). This means that with the strong dipole–dipole interaction with L8-ThCl, the PM6 conjugated backbones curved and entangled to form closer π−π stacks (Fig. 2g), which well explains the refined and elongated nanofibrils with improved structural order in the PM6 + 20%L8-ThCl thin film.

Since the NFAs were reported to form compact packing networks, which are composed of various dimers22,28, we defined the central core as the D unit and end groups as the A unit and counted their packing ratios (Supplementary Fig. 13)10. We found that the ratio of A-A packing, beneficial to prolong the packing network along the length of fibrils8,22, was increased, while the A-D and D-D packings were reduced, after the L8-ThCl was introduced. Moreover, we noted that the (11-1) and (021) lattices of L8-BO respond to the W shape dimer, and the (110) lattice responds to the S shape dimer. Both W and S shape dimers are featured with the overlapping of A units (Supplementary Fig. 14)21. It was found that the binding energies of L8-BO to L8-ThCl are greater than those of L8-BO to L8-BO in both W and S shape dimers (Fig. 2f). These results indicate that the interactions between L8-ThCl and L8-BO can strengthen the specific dimers, thus improve the structural order of acceptors and obtain nanofibrils in 1D (Fig. 2h). It was also found the introduction of L8-ThCl can reduce the free volume ratio (FVR) from 37.7 to 37.1%, a result that may lead to reduced non-radiative energy loss (Supplementary Fig. 15)39.

Device performance and morphology of binary and ternary OSCs

To validate the advantages of these nanofibrils of both donors and acceptors toward photovoltaic efficiencies, a series of OSC devices were fabricated in a conventional architecture (ITO/PEDOT:PSS/active layer/PDINN/Ag) (Fig. 3a, Table 1, Supplementary Figs. 16, 17, and Supplementary Table 3). As the reference, the PM6:L8-BO binary OSC received a PCE of 18.5% with an FF of 80.6%, consistent with the literature reports21,30,31, and an inferior PCE of 15.4% with a higher VOC of 0.91 V was obtained for the PM6:L8-ThCl binary OSC. We first mixed PM6, L8-BO, and L8-ThCl directly in the same solution with a weight ratio of 1:1:0.2 to fabricate ternary OSCs with a BHJ photoactive layer. It was found that the ternary BHJ OSC can only slightly improve the PCE to 18.7%. Since the fibrillization strategy had been demonstrated with superior photovoltaic performance in layer-by-layer (LbL) fabricated OSC devices19,22,23, we further prepared a p-BHJ structured photoactive layer by sequentially casting the PM6 + 20%L8-ThCl and L8-BO + 20%L8-ThCl solutions. As such, a superior PCE of 19.4% was achieved, with all device metrics improved simultaneously (Fig. 3c). The corresponding external quantum efficiency (EQE) spectra are shown in Fig. 3b. All OSCs exhibit higher spectrum intensity above 0.75 across the wavelength range from 450 to 800 nm, and the errors of the integrated current density values and JSC obtained from J-V are within 5%, proving the reliability of device performance. It can be observed that the improvement of JSC in ternary p-BHJ device originates from the enhanced photon response of both donor and acceptor, which is also in good agreement with the absorption spectra (Supplementary Fig. 18). From the Fourier transform photocurrent spectroscopy (FTPS)-EQE spectra, the introduction of L8-ThCl indeed significantly reduced the non-radiative recombination losses (Supplementary Fig. 19). Furthermore, the transient photovoltage (TPV) and transient photocurrent (TPC) (Supplementary Fig. 20) show that the p-BHJ ternary OSC possess longer carrier lifetime and shorter carrier extraction time, also implying ideal fibrillar networks with optimized structural order that effectively suppressed charge recombination and promoted the photovoltaic performance40.

Fig. 3: Photovoltaic performance and morphology of photoactive layers.
figure 3

a The J-V curves of PM6:L8-BO based binary and ternary OSCs with b corresponding EQE spectra, and c their PCE, FF, JSC, and VOC values. d The AFM height images and e 2D GIWAXS patterns of PM6:L8-BO (1:1.2) BHJ, PM6:L8-BO:L8-ThCl (1:1:0.2) BHJ and PM6:L8-ThCl(1:0.2)/L8-BO:L8-ThCl(1:0.2) p-BHJ ternary active layers, f the corresponding 1D profiles along the in-plane (IP) and out-of-plane (OOP) direction. Source data are provided as a Source Data file.

Table 1 Summary of device parameters of various OSCs

We further systematically studied the morphology evolution from binary BHJ to ternary p-BHJ photoactive layers, to better understand the origins of their different photovoltaic performance. According to the AFM images (Fig. 3d), it can be observed that the more distinguished and slenderer nanofibrils were well-distributed on the surfaces of both BHJ and p-BHJ ternary blend films, compared to the pristine PM6:L8-BO film, validating the fibrillization effect of L8-ThCl in ternary systems. The PM6:L8-BO blend films showed a dominant face-on orientation with π-π stacking peak located at 1.73 Å−1 with the lamellar peak at 0.30 Å−1 in IP (Fig. 3e). For the ternary BHJ blend film, a more profound (11-1) peak locating at 0.45 Å−1 in IP was found (Fig. 3f), indicating the enhanced crystallinity of the acceptor phase and confirming the interaction between L8-BO and L8-ThCl. Interestingly, in the ternary p-BHJ blend film, the (100) peaks in the IP direction of PM6 was also significantly enhanced, as well as a stronger π−π stacking peak of both donor and acceptor. The GISAXS results also indicate that the domain size of the acceptor phase can be enlarged in both ternary BHJ and p-BHJ blends, but the domain size of donors only increased in the p-BHJ blend (Supplementary Fig. 21 and supplementary Table 4). The charge mobilities of these films shared the same trend, and the ternary p-BHJ films possessed the highest and most balanced mobilities (Supplementary Fig. 22 and supplementary Table 5). It was also found the PL peaks of these ternary films were closer to the neat L8-BO film, and the quenching in p-BHJ was the most effective (Supplementary Fig. 23). These results imply that the nanofibrils in the ternary BHJ blend film is more likely to correspond to the acceptors phase, while those in the ternary p-BHJ blend film correspond to both donor and acceptor phases.

Here, we calculated the Flory-Huggins interaction parameters of these organic semiconductors by measuring the contact angles of water and ethylene glycol droplets on the neat material substrates (Supplementary Fig. 24 and supplementary Table 6). It was found that the two NFAs, L8-BO and L8-ThCl, showed a very small χ value corresponding to superior miscibility to form molecular co-crystals28,34,41. It also implies that in the PM6:L8-BO:L8-ThCl ternary BHJ blends, the merging of L8-ThCl molecules into the L8-BO phase is spontaneous and inevitable, thus the fibrillization of acceptors will be much more remarkable than that of polymer donors. On the other hand, compared with L8-BO, L8-ThCl exhibits better miscibility with PM6, which means it is more suitable as a fibrillization agent for PM6.

Fibrillization of p-BHJ photoactive layer toward 20% efficiency

We further prepared OSCs with another state-of-the-art polymer donor, D18 (Fig. 4a), featured self-assembled nanofibrils, to validate the versatility of our strategy (Fig. 4b-c, Table 1 and Supplementary Figs. 2527 and Supplementary Table 7, 8)42,43,44. The D18:L8-BO binary OSC realized a PCE of 19.3% with a VOC of 0.901 V, JSC of 27.2 mA cm−2, and FF of 78.7%, consistent with the literature report44. The incorporation of L8-ThCl in the ternary BHJ OSC again brought a minor PCE elevation to 19.5%. Encouragingly, by sequentially depositing the photoactive layer using the D18 + 20%L8-ThCl solution and L8-BO + 20%L8-ThCl solution to form ternary p-BHJ OSC, an unprecedented PCE of 20.1% with the VOC of 0.910 V, JSC of 27.5 mA cm−2 and FF of 80.3% was achieved. This device obtained a certified PCE of 20.0% at the National Photovoltaic Product Quality Inspection and Testing Center of China (Supplementary Figs. 2830). To our best knowledge, this is the first case of single-junction OSCs with a certificated PCE of over 20%. The JSC deviations between J-V and EQE measurements are less than 5% too. The longer carrier lifetime and faster carrier extraction calculated from TPV and TPC (Supplementary Fig. 31), respectively, also confirm the better power conversion processes in our championship ternary OSC with a p-BHJ structure. The PL spectra also confirm the most effective charge separation in the p-BHJ film (Supplementary Fig. 32).

Fig. 4: Fibrillization of p-BHJ photoactive layer toward 20% efficiency.
figure 4

a The chemical structure of D18. b The J-V curves and c EQE spectra of D18-based OSCs. d A summary of single-junction OSCs from literature and this work8,10,13,14,15,16,17,23,43,44,48,49,50,51,52,53,54,55,56,57,58,59. e 2D GIWAXS patterns of neat D18, D18:L8-ThCl(1:0.2), D18:L8-ThCl(1:1.2) blend films, f the corresponding 1D profiles. g 2D GIWAXS patterns of D18:L8-BO (1:1.2) BHJ, D18:L8-BO:L8-ThCl (1:1:0.2), and D18:L8-ThCl(1:0.2)/L8-BO:L8-ThCl(1:0.2) ternary p-BHJ active layers, h the corresponding 1D profiles. Source data are provided as a Source Data file.

The influence of L8-ThCl toward D18 is also evident from the GIWAXS and AFM measurements. The incorporation of 20% L8-ThCl can also enhance the crystallinity of D18, where the intensities of (100) peak in IP and (010) π−π stacking peak in OOP both increased (Fig. 4e, f), with refined nanofibrils (Supplementary Fig. 33). We notice that, from the ternary BHJ to ternary p-BHJ blends, the crystallinity of both donor phase, associating with the (100) peak in IP, and acceptor phase, associating with the (11-1) and (021) peaks, were increased simultaneously (Fig. 4g, h). Moreover, the (110) peak of L8-BO located at 0.38 Å−1 could be recognized in the ternary p-BHJ film, indicating the promoted structure order of L8-BO fibrils. It was also found that the electron mobility of the ternary p-BHJ film is higher than that of the ternary BHJ film (Supplementary Fig. 34 and Supplementary Table 9). We envisage that the donor phase with a high fibrillization ability, like the case of D18 here, is beneficial for the fibrillization of acceptor in the blend26, that will further promote the structural order, thus exceptional PCE. Regarding the different solubilities of D18 and PM6, which may lead to different vertical phase separations, the depth-XPS was conducted to quantify the contents of each component of both PM6 and D18-based p-BHJ films (Supplementary Fig. 35). It was found that both PM6 + L8-ThCl/L8-BO + L8-ThCl and D18 + L8-ThCl/L8-BO + L8-ThCl films exhibited vertical gradient for both donors and acceptors, which were beneficial for charge collections9,14,16.

In this work, we designed and synthesized a new NFA L8-ThCl and employed it as a third component into host photovoltaic blends to form BHJ and p-BHJ ternary OSCs. We found that the incorporation of L8-ThCl into the host donor and acceptor phases independently and casting the photoactive layer via layer-by-layer deposition to form the p-BHJ ternary photoactive layer led to the refined fibrillization of both host donor and acceptor, with fine and long nanofibrils with enhanced structural order and face-on orientation. The molecular dynamics simulations revealed that the PM6 chains can be twisted into closer π−π stacks by the dipole–dipole interactions with L8-ThCl, and on the other hand, the packing networks of L8-BO can be well regulated and elongated into 1D nanofibrils by the intimate interactions with L8-ThCl. As a result, a PCE of 19.4% was obtained for LbL processed PM6:L8-ThCl/L8-BO:L8-ThCl ternary p-BHJ OSCs and a record PCE of 20.1% (certified 20.0%) was achieved for the D18:L8-ThCl/L8-BO:L8-ThCl ternary p-BHJ OSCs. Our strategy offers an encouraging perspective on molecular aggregation manipulation of organic semiconductors to surpass the 20% milestone efficiency of OSCs.

Methods

Materials

PM6, D18, L8-BO, and PDINN were purchased from Solarmer (Beijing), China. PEDOT:PSS (Clevios AI 4083) was purchased from Heraeus, Germany. Other reagents and solvents were purchased from commercial sources and used as received. The synthesis and characterization details of L8-ThCl are provided in the Supporting Information, and Cl-CPTCN were synthesized according to our previous work28.

Solar cell device fabrication

All organic solar cell (OSC) devices were fabricated in a conventional structure (ITO/PEDOT:PSS/active layer/PDINN/Ag). The pre-patterned ITO-glass (resistance ca. 15 Ω per square) were cleaned by sequential sonication in water, ethanol, and isopropyl alcohol for 15 min each. Then these glass/ITO substrates were further treated with ultraviolet/ozone for another 20 min after drying at 150 oC on a hotplate to remove any organic contaminants. About 20 nm PEDOT:PSS films were spin-coated at 5000 rpm on top of the cleaned glass/ITO substrates, followed by thermal annealing at 150 oC for 10 min in air. For BHJ OSC devices, the chloroform solution of the active layer was prepared in a concentration of 15.4 mg/mL, with a mass ratio of 1:1.2 (D:A), and stirred in an N2-filled glovebox overnight. Then, the BHJ active layer with a thickness of around 95 nm was obtained by spin coating at 2500 rpm. As for layer-by-layer (LBL) deposited OSC devices, the organic semiconductors are dissolved in chloroform respectively, with concentrations of 6 mg/mL for PM6, 4 mg/mL for D18, and 8 mg/mL for NFAs. The lower layer was firstly spin-coated from neat polymer donor solution with designed amount of L8-ThCl at 2000 rpm for 30 s to provide thickness of around 46 nm, and the upper layer was then spin-coated from NFA solution (neat L8-BO or L8-BO:L8-ThCl = 1:0.2) at 2500 rpm for another 30 s to obtain a p-BHJ active layer of thickness of around 95 nm. Before spin coating the active layer, 1-bromo-3,5-dichlorobenzen (DCBB) of the same weight with NFA was added as the additive. Then, both the BHJ and p-BHJ active layers were thermal annealed at 100 oC for 10 min. After that, 1.2 mg/mL PDINN solution was spin-coated at 3000 rpm onto the active layer to afford a 5 nm electron transport layer. Finally, 100 nm Ag were thermally evaporated through a shadow mask under a high vacuum to form the anode. The size of the active area for OSCs defined by the overlapping of anode and cathode is 6.675 mm2.

Instruments and measurements

Photovoltaic performance of all OSCs were performed with current density-voltage (J-V) sweep software developed by Ossila Ltd. (Sheffield, UK) and a source meter unit (2612B, Keithley, USA). The J-V curves of OSCs were measured under AM 1.5 G (100 mW cm−2) in the air at room temperature via a Newport 3 A solar simulator, of which the light intensity was calibrated with a standard silicon solar reference cell certified by the National Renewable Energy Laboratory (NREL, USA). An aperture mask was placed over the OSC to accurately define an area of 4 mm2 for each pixel. External quantum efficiency (EQE) was measured with a standard Si diode and a Zolix system (China) equipped with the monochromatic beam that was generated using a 150 W xenon lamp. Film thickness was measured using a spectroscopic ellipsometer (J. A. Woollam, USA). The absorption spectra of films were obtained using a UV-visible spectrophotometer (HITACHI, Japan). The surface morphology of all the thin films was measured by an atomic force microscope (AFM) (Solver Next, NT-MDT, Russia). A Bruker Avance III HD 500 MHz spectrometer was used to characterize the 1H and 13C NMR spectra of all compounds. Grazing-incidence wide-angle X-ray scattering (GIWAXS) and grazing-incidence small-angle X-ray scattering (GISAXS) measurements were conducted at beamline BL14B1 and BL16B1 at the Shanghai Synchrotron Radiation Facility in China, with a beam energy of 10 keV.

Theoretical calculations

The density functional theory (DFT) calculations were experimented with the ORCA-5.0.4 software package45, and molecular dynamics (MD) simulations were conducted with the GROMACS 2023 software package with GPU acceleration. The GAFF2 force field was used as an initial parameter. The geometry optimization and single point energy of all single molecules were calculated at the B3LYP/def2-SVP level, and the atomic charges were fitted using the restrained electrostatic potential (RESP) method by Multiwfn software46. The dihedral parameters which decide the planerites of conjugated backbones was fitted by scanning the potential energy surfaces at B3LYP-D3BJ/def2-SVP level via Ztop program47.

The PM6 chains of five repeat units and NFAs were packed in a rectangle box with a size of 40 × 40 × 40 nm3 by Packmol software. An annealing run between 500 and 300 K under isothermal-isobaric ensemble (NPT) was firstly performed for five circles in 20 ns. Since the system was well compressed, another NPT run at 300 K in 20 ns was performed to obtain the equilibrated configuration, and the analysis are according to the trajectories in the last 5 ns.

In all of the MD simulations, the V-rescale thermostat and Berendsen barostat were employed to control the temperature and pressure of the system, and the velocity-Verlet integrator at 2.0 fs time step with LINCS algorithm was employed to constrain bonds with hydrogen.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.