Introduction

Polyaniline holds a special position amongst the family of conducting polymers because of its unique and novel properties1 with wide potential applications in micro/nano devices2,3,4, supercapacitors5, nanomaterials6, solar cells7, color displays8 and polymer membranes9. Introducing ionizable groups at rings or nitrogen sites might lead to new properties of parent polyaniline without substantially sacrificing conductivity and new opportunities in polyaniline-based materials and devices10,11,12. Direct functionalization to polyaniline backbone with ionizable groups such as boronic acid13, phosphoric acid14, sulfonic acid10,15 and acrylic acid16 have been reported. In general, two effects (stereo and electronic) in the local structure of polyaniline are associated with the substituent of ionizable groups10. The change in the stereo structure results in the decrease of the conjugation in the π system, the hypsochromic shifts of the band-to-band transition feature of π-π* electrons in the UV-vis spectra and the decreased stability of polysemiquinone radical cation10,15. The change in electronic structures primarily leads to the increase of solubility in basic aqueous solutions, the pH dependence of the conductivity, charge localization and the self-doping mechanism10,11,12,13,15. For instance, Epstein et al.15 have demonstrated that the sulfonated structure of polyaniline has improved the pH-dependent conductivity over the range of 0 ≤ pH ≤ 14 with a lower activation energy for the conductivity.

Although previously studied works9,10,11,16,17,18,19,20,21 have greatly contributed to the understanding of the molecular and physical properties of the conventional polymer system within the polyaniline family, such as emeraldine base of polyaniline (EB-PANI) and its conducting form, a number of fundamental issues remain to be uncovered. Maron and Winokur18 have investigated the processing-induced changes in the molecular structure of EB-PANI by RDF analysis of X-ray scattering data, but the effect of functionalization on the molecular structure of amorphous polyaniline in terms of intrachain and interchain ordering is not yet investigated. Venkataraman et al.22 have found that the conductance of π-conjugated biphenyl systems is linearly related to the cos2Ф of the inter-ring. A similar trend in increased conductance values has been reported for the series biphenyldithiols (BPDTs) with a divided π-system23. Yet, how does the functionalization, such as ring-substituted, affect the torsion angles between the adjacent rings in the case of polyaniline remains to be uncovered. The chain conformation and film morphology24, the location of functional groups and secondary guest species25 and the chain-to-chain packing26 often influence the manifested properties of polymers. However, knowledge on the role that functional groups play in affecting the various physical properties (e.g. eletcronic and optical) of polymers at atomic level is still unclear19. Furthermore, polyaniline is a potential material for gas separation and experimental study18 indicated that in the presence of water, the EB matrix has covalently bonded to either carbon or nitrogen atoms. Introducing ionized groups such as -SO3, -SO3Na+,-COO and -COONa+ on polyaniline chains27,28, hydrogen-bond may form in the polymer matrix. Therefore, the effect of the hydrogen-bond network on gas transport properties of polymers remains to be theoretically validated.

In the present paper, the above issues are addressed through the analysis of the effect of ionizable group -SO3Na+ on the local structure and physical properties (electronics, optical and gas transport properties) of amorphous polyaniline by employing a combination of first-principles and molecular dynamics techniques. The polymers considered in this work are EB-PANI and its ionizable group -SO3Na+ ring-substituted form which is named as Na-SPANI. To understand how the ionizable groups -SO3Na+ at phenyl rings affect the local structure of polyaniline, both the intrachain and interchain RDF profiles of the two polymers are calculated and analysed. In order to further delineate the intrachain change, the atom-atom pairs (types and distances), bond structures (bond lengths and angles) and the torsion angles impact on the structural changes of the polyaniline are also investigated. In addition, results of band gap and absorption spectra are presented to provide insight into both the electronic and optical properties. Furthermore, the self-diffusivity of water vapor in the two polymers is estimated to describe the change of gas transport property of EB-PANI at the presence of the -SO3Na+ groups. To our knowledge, this work is the first attempt to compute the effect of ionizable group on the structural and physical properties of polyaniline at atomic and molecular levels.

Result and Discussions

The non-periodic models of EB-PANI and Na-SPANI with one monomer are given in Fig. 1a and used for the prediction of optical properties of the polymers. The periodic models for the investigation of the structural (RDF profiles, atom-atom pairs, bond structures and torsion angles) and physical (electronic and gas transport) properties of Na-SPANI as well as comparative studies with the parent EB-PANI are shown in Fig. 1b–d, respectively.

Figure 1
figure 1

(a) The non-periodic models of EB-PANI (top) and Na-SPANI (bottom) with one monomer used for the calculation of optical properties; (b) The periodic molecular models for RDF calculations of EB-PANI (left) and Na-SPANI (right); (c) The periodic models used for structural comparison and electronic properties calculations of EB-PANI (left) and Na-SPANI (right) where the blue dotted line represents the hydrogen-bond between oxygen and hydrogen atoms in the intrachain packing; (d) The periodic models for the water diffusion study of EB-PANI (left) and Na-SPANI (right), where hydrogen, carbon, nitrogen, oxygen, sulfur and sodium atoms are shown in white, gray, blue, red, yellow and violet colors, respectively.

Radial distribution function

In statistical mechanics, RDF in a system of polymers gives a measure of the probability that there will be an atom located in a spherical shell of infinitesimal thickness at a distance, r, from the reference atom. The resulting function is often expressed in terms of G(r) and, described by18

where ρ = N/V is the overall number density of atoms; N is the total number of atoms and V is the volume of the polymer system. Therefore, the RDF is normalized by G(r). According to the definition by Hansen and McDonald29, RDF G(r) can be calculated as follows:

where the atoms of chemical types α and β are separated by , and respectively denote the mole fraction of chemical type α and β, and respectively represent the number of atoms of chemical type α and β, δ(r) is the Dirac delta function and is the ensemble average. The prime indicates that terms where i = j are excluded when the chemical types are the same.

As given by Eqs (1) and (2), the RDF is related to the pair distribution function G(r). G(r) can be decomposed into the sum of an intrachain GI(r) and of an interchain GE(r)18. GI(r) provides information on intrachain correlations between atoms covalently bonded in a given polymeric chain while GE(r) gives details about interchain correlations on the chain packing.

The calculated GI(r), GE(r) and G(r) profiles for each of polymer systems are shown in Fig. 2a–c, respectively. In Fig. 2a, the positions of the peaks of the GI(r) profiles for EB-PANI and Na-SPANI are mostly coinciding. It is of interest to note that the relative GI(r) intensity fluctuations of Na-SPANI samples at r ≤ 4.0 Å are less than those of EB-PANI. It is also of interest to note that a small peak at ~1.8 Å is only presented in the GI(r) of Na-SPANI. This weak peak represents the intrachain hydrogen-bond as illustrated in Fig. 1c using blue dotted line. From Fig. 2b, a unique peak at 1.93 Å is observed in the GE(r) profiles of Na-SPANI while no distinct peak is presented in that of EB-PANI. This noteworthy difference is attributed to the hydrogen-bond between the -SO3Na+ group and the H atoms on neighboring polymer chains. The presence of the -SO3Na+ groups also induces oscillations in the interchain GE(r) spectra in the 2.1–3.4 Å region which gives higher GE(r) intensity in the Na-SPANI30. The result implies that with the introduction of -SO3Na+ groups on the polyaniline chain, the hydrogen-bond and van der Waals are induced and therefore the interactions among polymer chains at r ≤ 3.4 Å are improved. Using the intrachain GI(r) data in Fig. 2a together with the interchain GE(r) data in Fig. 2b for each of the polymer, it is possible to derive the total G(r) profiles as given in Fig. 2c. It is most important to note that, whether in the intrachain GI(r) profiles or in the total G(r) profiles at r ≤ 4.0 Å, the intensity fluctuations of the major peaks of Na-SPANI are less than those of EB-PANI. It is also important to note that at 1.8 ≤ r ≤ 2.0 Å the relative total G(r) intensity fluctuations of Na-SPANI is significantly improved by the presence of the -SO3Na+ group. This can be attributed to the presence of -SO3Na+ groups on the phenyl rings results in the generation of new hydrogen-bond in both the intrachains and interchains. To make a quantitative comparison between the computed and measured RDF, in Table 1 we compare the positions of all the major peaks in the computed distributions with the experimental data given by Maron and Winokur18. The good agreement between the computed and measured RDF data confirms the reality and accuracy of our atomistic models.

Table 1 The positions of the major peaks (in Å) of the computed total G(r) in Fig. 2(c) and their comparison with the experimental data from Maron and Winokur18.
Figure 2
figure 2

Results for RDF calculation of EB-PANI and Na-SPANI explicitly comparative showing (a) the intrachain, (b) the interchain and (c) the total (interchain + intrachain) G(r).

Structure comparison

After reaching equilibrium conditions, the molecular configuration of a single polymer chain is fixed. Using ab initio calculations, the interatomic distances between atoms (as given in Fig. 1a) have been listed in Table S1 of the supplementary information. From the supplementary information, it is clearly seen that the functional groups have hardly any effect on the bond length of C-H. Generally speaking, except the 1.1 Å, 1.8 Å and 2.1 Å peaks, no significant interatomic distances differences have been observed between the EB-PANI and Na-SPANI molecules. The first peak centered at 1.09 Å is observed in both the polymers represents the primary C-H intrachain pairs18, such as C2–H2 (see Fig. 1a). Lower intensity of this peak at 1.09 Å for Na-SPANI is observed. This may indicate weaker intrachain interaction of the C-H is possessed in the Na-SPANI structure. A peak at 1.81 Å only exists in the Na-SPANI model. The peak represents the C-S and O-H interaction of the SO3Na+ groups with the neighbor atoms. A better illustration of the O-H interaction of the Na-PANI molecules is shown with the blue dotted line in Fig. 1c. The peak at 2.17 Å represents the secondary C-H (e.g. C3-H5) and the multilevel H-H (e.g. H4-H6 or H5-H7) intrachain pairs in PANI. With the substitution of the H atoms with the -SO3Na+ groups, C-H and H-H groups are less in Na-SPANI. This explains the reduction of intensity of this peak for Na-SPANI as shown in Fig. 2a. With the increase of the distances, there are modest changes in atom-atom pair distances between EB-PANI and Na-SPANI due to the presence of the functional groups. Some representative atom-atom pair distances have been picked out, as listed in Table 2. Bond angle (δ) is an important parameter to reflect the intrachain structure of polymer chain. Therefore, the bond angles of the backbone for the two polymers are calculated and the representative bond angles are summarized in Table 3. It is evident from Table 3 that the difference in the bond angles the two structures (EB-PANI and Na-SPANI) is infinitesimally small.

Table 2 Comparisons of the representative atom-atom pair distances (in Å) between EB-PANI and Na-SPANI.
Table 3 Comparisons of bond angles and torsion angles in EB-PANI and Na-SPANI.

In order to further understand how the derivatization at rings alters the spatial structure of polyaniline, the torsion angles between the adjacent two rings for the two polymers have also been calculated, as listed in Table 3. The functional groups induced variations (∆Φ) of these torsion angles are also calculated and listed in Table 3. It is noticeable that there is surprising difference in the torsion angles, especially in the torsion angles between phenyl and quinone, for EB-PANI and Na-SPANI. It is also noticeable that the absolute values of torsion angles are close to each other in the case of EB-PANI while the absolute values of ΦC17-C18-C19-C21 exhibit significant difference as compared with other torsion angles in Na-SPANI. In other words, EB-PANI has much better interchain ordering than that of Na-SPANI. To have a good overview on the local structure change, the three-dimensional (3D) structures in equilibrium of the polymers are illustrated in Fig. 3. From the top views of the structure as given in Fig. 3a,b, it has been found that the angles between the ring plane and the reference plane (red dotted line) of Na-SPANI has been significantly changed as compared with that of EB-PANI. This phenomenon can be also seen from the side view of the optimized 3D model structure as shown in Fig 3c,d. From this, it is confirmed that the adjacent phenyl rings of the polymer have larger torsion angles with respect to the plane of the nitrogen atoms due to the possible steric repulsion between the SO3Na+ groups and hydrogens on the adjacent phenyl rings.

Figure 3
figure 3

Comparison of 3D structures of EB-PANI and Na-SPANI using periodic molecular models (a,b) top view; (c,d) side view. The red dotted line is the central plane as reference.

Electronic properties

Polyaniline is an intrinsically conductive polymer. According to the Mott’s theory, at a given temperature, the density of states (DOS) at the Fermi energy N(E) determined the dc conductivity of polyaniline can be calculated as follows31:

where σ is the dc conductivity; e, ν, N(E) represent the electronic charge, the hopping frequency and the DOS at the Fermi level, respectively; and α, k and T denote the inverse rate of the fall of the wave function, Boltzmann’s constant and the thermodynamic temperature, respectively; λ(≈18.1) is a dimensionless constant.

Towards a better understanding of the effect of the -SO3Na+ group on the conductivity of polyaniline, we firstly calculate the band gap of the two polymers. The band gaps of EB-PANI and Na-SPANI are 1.067 eV and 1.099 eV, respectively. It is implicit in the results of band gaps that introducing -SO3Na+ group on ring slightly changes the conductivity of EB-PANI. In addition, we investigate how the DOS depend on the functionalization at ring. And the DOS of EB-PANI and Na-SPANI are compared in Fig. 4. It is remarkable to find that the dominant features of the DOS at the Fermi level, N(E) exhibited by the vertical dashed line, remain very similar. Meanwhile, from Fig. 4 we notice that the DOS of Na-SPANI at the left side of the Fermi level N(E) is higher than that of EB-PANI, which means more valence bands have been introduced in Na-SPANI. We also notice that the DOS of Na-SPANI at right side of the Fermi level N(E) has a slightly left shift as compared with that of EB-PANI. The shift may be due to a contribution from the Na+ ion. Both observations are the direct consequence of the presence of the -SO3Na+ group on the phenyl rings. As mentioned before, -SO3Na+ groups on the polyaniline backbone change the torsional angles between adjacent rings, therefore, the charge transport in Na-SPANI systems would be discounted. But the results of N(E) and DOS indicate that derivatization at ring does not substantially change the electronic properties of the parent polyaniline.

Figure 4
figure 4

Density of states of EB-PANI and Na-SPANI monomer under the periodic condition.

Absorption spectra

Figure 5 shows the UV–vis spectra of EB-PANI and Na-SPANI. The electronic spectra of EB-PANI consist of three major absorption bands, which are centered at 380 nm, 415 nm and 621 nm, respectively. The first absorption band at 380 nm is ascribed to π-π* electronic transition and the third absorption band at 621 nm are ascribed to the “exciton” transition based on earlier experimental studies on the polyaniline system10,32. When the absorption occurred in intrachain, the excitation leads to formation of a “molecular” exciton (positive charge on adjacent benzenoid units bound to the negative charge centered on the quinoid), while interchain charge transfer from the highest occupied molecular orbital (HOMO centered on the benzenoid rings) to the lowest unoccupied molecular orbital (LUMO centered on the quinoid rings) may result in the formation of positive and negative10. Two similar adsorption bands respectively centered at 326 nm and 620 nm are observed from the experiment work did by McCall et al.32. Comparing the predicted and measured data, two differences are obsereved: i) the first absorption band in the predicted absorption spectra has shifted somewhat due to the limitation the oligomer length; ii) The oscillator strength of our modeling are smaller than that of the experiment32, this may be attributed to the local changes reflected by the exciton transition, which are sensitive to a chain conformation related process since strong solvatochromism. The peak values of the EB-PANI dissolved in NMP (N-methyl-2-pyrrolidinon) reported by Yue et al.10 are also greatly smaller than the peak values reported by McCall et al.32 After introducing -SO3Na+ groups on the polyaniline backbone, comparing with the adsorption peaks of EB-PANI, the first absorption band of Na-SPANI located at 378 nm shows a hypsochromic shift. This absorption band is also assigned to the π-π* electronic transition and the hypsochromic shift caused by the presence of -SO3Na+ groups that increases the torsional angles and decreases the conjugation of the polymer system. This phenomenon is also agree with the band gap of Na-SPANI is bigger than that of EB-PANI. The other absorption band appeared at 657 nm basically coincide with the experimental value ~620 nm is also assigned to the exciton transition. This is due to the -SO3Na+ groups are strong electron withdrawing groups, the groups would decrease the electron density of the benzene, therefore less electron excitation and the required energy will be reduced, the peak shows bathochromic shift. Whether from the position and strength of the major absorption bands, the introduction of -SO3Na+ groups on the phenyl rings has obviously changed the optical properties of the parent EB-PANI. It is of interest to note that a distinct at ~420 nm has been observed in both absorption spectra of EB-PANI and Na-SPANI. What caused this phenomenon is still unknown.

Figure 5
figure 5

UV−vis spectra of EB-PANI and Na-SPANI.

Diffusion coefficient

The governing physics of small molecule transport in polymer matrix is described along with one-dimensional (1D) analytical solutions of related transport processes. The mean square displacement (MSD) function, which increases linearly with time in a liquid or a gaseous phase system with free motion of atoms, is used to calculate the diffusion coefficient D:

where represents an average over all the guest molecules, ri(t) and ri(0) denote the position vector of the analyte molecule i in space at time t and its initial position, respectively.

The gas transport properties of polyaniline for gas separation application are highly dependent on the molecular structures. The diffusion properties of water in the polymers are quantified. Using the molecular models given in Fig. 1d, the MSD of water molecules in EB-PANI and Na-SPANI systems have been calculated. Figure 6a,b plot log (MSD) versus log (time) of the diffusion of water in EB-PANI and Na-SPANI respectively. The plots show a linear relations between log (MSD) and log (t) which mean the diffusive transport are up to equilibrium (with the correlation coefficient R2EB-PANI = 0.969 and R2Na-SPANI = 0.980 then the variances δ2EB-PANI = 0.038 and δ2Na-SPANI = 0.023, respectively in the two models). The diffusion coefficients of water in the EB-PANI and Na-SPANI are calculated by Eq. (4), with the DEB-PANI = 6.95 × 10−9 cm2/s and DNa-SPANI = 6.15 × 10−9 cm2/s. To verify the models, we compare the calculated values with the experimental data for the diffusion of water vapor in HCl and HBr doped polyaniline as reported by Ostwal et al.33 The measured diffusion coefficients are DPANI–Cl = 3.14 × 10−9 cm2/s and DPANI–Br = 2.43 × 10−9 cm2/s, respectively. The computed and measured diffusion coefficients are in the same order of magnitude. The good agreement between simulation results and experimental data has confirmed the accuracy of our models again. The computed diffusion coefficients of water in EB-PANI are larger than that of Na-SPANI. We observe that after complete equilibrium, the density of model polymer EB-PANI is 1.23 g/cm3 which agree well with experiment value (1.245 ± 0.006 g/cm3)21,34 and the density of model polymer Na-SPANI is 1.44 g/cm3. The density of Na-SPANI is larger than that of EB-PANI. This implies the -SO3Na+ substituent will reduce the open morphology in model polymer and finally results in the decrease of the self-diffusivity of water, which is consistent with the result of the diffusion coefficients.

Figure 6
figure 6

Plot of log (MSD) against log (time) of H2O diffusion in (a) EB-PANI and (b) Na-SPANI.

Conclusion

In conclusion, a combination of first-principles and molecular dynamics techniques has been used to more fully investigate the functionalization-induced changes in the local structure and physical properties within polyaniline polymers. The results for EB-PANI and its -SO3Na+ substituted form Na-SPANI are particularly inspiring because both the intrachain and interchain RDF’s can be independently modeled and distinguished. And the computed RDF profiles show a good agreement with the experimental data given by Maron and Winokur18. We observe that an unique RDF feature in 1.8–2.1 Å regions is usually resolved in both the interchain and intrachain RDF profiles of the resulting substituted polyaniline (i.e. Na-SPANI) and this indicates the -SO3Na+ groups have covalently bonded to either hydrogen or nitrogen atoms in the polymer matrix. Further evidences of irreversible changes in the intrachain ordering are observed from the structure comparison analysis including atom-atom pairs, bond structures, torsion angles and 3D structures. It shows that EB-PANI has much better intrachain ordering than that of Na-SPANI. Besides, band gap, DOS and absorption spectra of each polymer are calculated to provide insight into both the electronic and optical properties and to link the structure change from the macroscopic level. The result of band gap and DOS show that derivatization at ring slightly change the electronic properties of the parent polyaniline. In contrast, obvious changes in the optical properties of Na-SPANI as compared with EB-PANI are observed from the absorption spectra. Furthermore, the effect of the -SO3Na+ substituent on the gas transport properties of polyaniline has also been investigated. The computed diffusion coefficient of water in Na-SPANI exhibits more than ten percentage (~13%) of decrease than the one of EB-PANI. And the Na-SPANI shows a larger density than that of EB-PANI. It is inferred that the presence of -SO3Na+ groups has reduced the open morphology in model polymer and finally results in the decrease of the self-diffusivity of water. Comparative studies of the structural and physical properties show similarities due to the same backbone structure and differences because of the -SO3Na+ groups on the phenyl rings. Our findings provide insight into the role that the -SO3Na+ group plays in affecting the structural, electronic, optical and gas transport properties in the polyaniline system. It is clear that the functional groups play a critical role in controlling the material properties of polyaniline. Therefore, we are of interest to study the effects of different derivatization at ring and nitrogen sites with different functional groups on the transport, solubility, electronic, chemical and optical properties of polyanilines in the coming further study. Furthermore, we are also planning to work on potential micro/nano devices based on some new polyaniline with tailored material properties.

Molecular Models and Computational Details

Polymers

The monomer structures for EB-PANI and Na-SPANI were given in Fig. 1a. All the polymer chains were generated by using the polymer builder based on its stereoisomerism (tacticity) and sequence isomerism (connectivity). The tacticity of the repeat units in the constructed polymer is isotactic. The side groups could be on one side (isotactic), alternate sides (syndiotactic) or randomly arranged (atactic) around the polymer backbone. The torsion angle in degrees between new repeat units is generated randomly in the range: 180 to –180. The connectivity of the monomer units was head-to-tail27.

RDF calculations

To estimate the RDF G(r) of the polymers, eight polymer chains were assembled into a 3D unit cell with a low initial density of 0.80 g/cm3 by using the “Amorphous Cell” module21 in the software of Materials Studio® 7.0 (Accelrys, San Diego, CA, USA) and each polymer chain had 10 monomers. To suppress surface effects while keeping the number of particles in the model of reasonable size, periodic boundary condition (PBC), in which the system was considered to be surrounded on all sides by replicas of itself, was employed27. 3696 atoms in the cubic box of 34 Å for the EB-PANI system and 4336 atoms in cubic box of 37 Å for the Na-SPANI system were used. The periodic atomistic models for the two polymers were given in Fig. 1b. The polymer models were initially minimized by MM. This was followed by compressing at high pressures 1 GPa using isothermal-isobaric ensemble (NPT) for 20 ps and then decompressed at pressure 0.5 GPa for 50 ps and 0.0001 GPa for 200 ps respectively to make the density (ρ) of polymers as close as possible to their experimental value at 298 K. This was then followed by running annealing dynamics using a stepwise procedure of canonical ensemble (NVT), in which the system temperature was varied in cycles from one temperature to another and back again. In our case, temperatures were varied in increments of 50 K for a cycle from 298–698 K and back and each step was carried out for 50 ps. In order to overcome energy barriers and to create a final structure with low-potential-energy characteristics, five cycles of the annealing dynamics were performed. This was then followed by a NPT dynamics at 1 atm and 298 K and in duration of 1000 ps. Ultimately, the computed density of EB-PANI system is 1.22 g/cm3 which was reasonably close to the experimental density of 1.30 g/cm3 35, this suggesting that the density of 1.49 g/cm3 for Na-SPANI was reliable. Subsequently, a NVT dynamics at 298 K was run for 7 ns and the output of the dynamics was used to calculate the RDF of polymer system.

Structure comparison calculations

The periodic atomistic models given in Fig. 1c were used to study the effect of -SO3Na+ groups on the molecular structure including pair correlations (type and distance), bond structures (length and angle), torsion angles and 3D structures. All the models were generated using one polymer chain with one monomer surrounded by vacuum. The structure comparison calculations were performed by using DMol3 code of Materials Studio 7.0, which was an ab initio quantum mechanical program employing density functional theory (DFT)36. The exchange-correlation approximations was treated by the standard Perdew-Burke-Ernzerhof (PBE) generalized gradient approximation (GGA) with long range dispersion correction which used the Grimme’s scheme37. A double numerical basis set plus polarization basis sets (DNP) were used. The k-point was set to 12 × 1 × 1. A tighter smearing criterion of 0.005 hartree was applied to ensure accurate electronic convergence. Self-consistent field procedure was carried out with a convergence criterion of 10−6 a.u.

Electronic properties calculations

In order to investigate the electronic properties of these two polyaniline at a more real condition, we run a canonical ensemble-molecular dynamics (NVT-MD) at room temperature (298 K) using the Forcite package of Materials Studio after the structure comparison calculations38. The total simulation time was 100 ps and the time step was 1.0 fs, the commercial force field “COMPASS” was used to evaluate the atomic forces. The temperature was controlled by the “Berendsen” method using a half-life for decay to the target temperature in 0.1 ps. The non-bonded electrostatic and van der Waals forces were controlled by “Ewald” at “Fine” quality and the summation methods “atom-based” with a cutoff value of 10.5 Å, respectively.

Absorption spectra calculations

To investigate the optical properties of EB-PANI and Na-SPANI, a monomer model of these two polymers were geometry optimized by DMol3 code under the non-periodic environment, respectively. The set parameters were the same with the structure comparison calculations except for the k-point was set to Gamma.

Diffusion coefficient calculations

To estimate the self-diffusivity of water in EB-PANI and Na-SPANI, ten water molecules were added to the simulation box containing 80 monomers, as shown in Fig. 1d. The energy of the atomistic models was then minimized by MM. The polymer models were then compressed and equilibrated/relaxed using the same methodology as addressed for RDF. Subsequently, NVT-MD simulations at 298 K were carried out for 7 ns and the diffusion coefficients were then calculated from the MSD of the water molecules. All the MM and MD simulations for RDF and diffusion coefficient calculations were performed on Forcite Plus in Materials Studio 7.0. The second generation forcefield of Condensed-phase Optimized Molecular Potentials for Atomistic Simulation Studies (COMPASS) was employed. The COMPASS forcefield provided more accurate precision in determining the polymer properties and had been verified by our previous work21. All MD simulations were run with a 1.0 fs time step. The temperature and pressure were controlled by the Berendsen’s method using a half-life for decay to the target temperature of 0.1 ps (decay constant) and 0.1 ps for the pressure scaling constant. “Ewald” and “Atom based” summation methods were respectively used to calculate the electrostatic and van der Waals terms, the cut-off distance was 15.5 Å and the algorithm was smart.

Additional Information

How to cite this article: Chen, X. P. et al. Functionalization-induced changes in the structural and physical properties of amorphous polyaniline: a first-principles and molecular dynamics study. Sci. Rep. 6, 20621; doi: 10.1038/srep20621 (2016).