Literature DB >> 33063509

Estimates of Electrical Conductivity from Molecular Dynamics Simulations: How to Invest the Computational Effort.

Piotr Kubisiak1, Andrzej Eilmes1.   

Abstract

Although the electrical conductivity of an electrolyte can be estimated from the molecular dynamics trajectory, it is often a challenging task because of the need to obtain a substantial amount of data to ensure sufficient averaging. Here, we present an analysis on the convergence of results with the number of simulated trajectories. A series of molecular dynamics simulations have been performed for a model electrolyte (NaCl in water) and the Einstein relation has been used to calculate the electrical conductivity. The standard deviation of the conductivity estimates is relatively large compared to the mean value, and it has been shown that the off-diagonal contributions to the collective displacement of ions are responsible for large deviations between systems. It has been found that about 40 independent MD simulations may be required to reduce the errors. A procedure to improve the final estimate of the conductivity has been proposed.

Entities:  

Year:  2020        PMID: 33063509      PMCID: PMC7604855          DOI: 10.1021/acs.jpcb.0c07704

Source DB:  PubMed          Journal:  J Phys Chem B        ISSN: 1520-5207            Impact factor:   2.991


Introduction

Equilibrium molecular dynamics (MD) simulations are today a standard tool for modeling systems in the condensed phase and liquids in particular.[1,2] MD delivers invaluable information on the structure and dynamics of complex molecular systems; therefore, it is frequently used in various disciplines ranging from material science to biochemistry. A fast growing area of the application of MD is the research on power sources including studies on physicochemical properties of electrolytes. In this context, obtaining estimates of transport-related properties of the electrolyte, diffusion coefficients and electrical conductivity, is of great importance. Appropriate averaging of data is necessary in order to reliably calculate desired values. Generally, it is easier to achieve sufficient averaging in the case of diffusion coefficients because it may be improved by increase in the size of studied systems. Issues related to the derivation of diffusion coefficients have already been discussed in several studies.[3−5] Computations of electrical conductivity from MD simulations are more demanding. Complications arise because conductivity is a collective property, governed by the response of all ions in the system. Therefore, increasing the system size will not reduce fluctuations efficiently. Similar effects are encountered in estimates of shear viscosity; in such a case, a method based on multiple independent trajectories was proposed.[6] Because of problems with computations of conductivity from MD trajectories, there are significantly less papers attempting such estimates, compared to studies presenting diffusion coefficients, which are much easier to obtain. Moreover, quite often, such studies do not compute the conductivity exactly but instead use the Nernst–Einstein relationship to obtain the conductivity based on diffusion coefficients derived from MD simulations.[7] Such an approach assumes that the motions of individual ions are not correlated; therefore, it will be problematic in systems where correlations are supposed to be significant, such as concentrated salt solutions or ionic liquids. In this work, we want to check how well increasing computational effort can improve the quality of conductivity estimates. As the increase in the system size is not an efficient option, we will ask how many independent repetitions of MD simulations may be sufficient to obtain a reasonable average. Alternatively, we will consider the possibility of increasing the length of the MD trajectory. For this purpose, we will simulate a salt solution in a molecular liquid (NaCl in H2O) as a model electrolyte. We will compare the approaches based on increasing the number of trajectories or increasing the length of simulations and formulate some suggestions on the investment of computational time. A simple method to correct the estimate will be proposed.

Computational Details

Our model system is 1 M NaCl solution in water. Two sets of structures were prepared. The major part of simulations was performed for systems containing 23 pairs of Na+ and Cl– ions in 1165 H2O molecules. Additionally, we also used a set of structures with a larger number of entities, composed of 93 ion pairs and 4772 water molecules. VMD v. 1.9.2[8] was used to build the initial structures. Force field parameters of Lennard-Jones potentials for Na+ and Cl– ions were taken from refs (9) and (10), respectively. TIP3P parameterization[11] was used for water molecules. It should be noted that in our study, we do not aim for correct reproduction of properties of the solution; therefore, the choice of a particular version of force field is of lesser importance; the parameterization used here was chosen for the simplicity of setting up the simulations. The NAMD v. 2.12[12] simulation package was used to perform the MD simulations under periodic boundary conditions in the NpT ensemble at p = 1 atm and T = 293 K with Langevin dynamics and a modified Nose–Hoover–Langevin barostat.[13,14] Electrostatic interactions were treated via the particle mesh Ewald algorithm.[15] A time step of 1 fs was used. A series of 200 ns long MD simulations was performed for 100 systems with 23 ion pairs. For three systems of this size, we collected much longer trajectories, lasting 2 μs. Hereafter, in the text, we will refer to these sets of data as “short” and “long” trajectories. Three larger systems (with 93 ion pairs) were simulated for 1.1 μs (“big” trajectories). The first 100 ns of each MD trajectory was treated as the equilibration stage, with the remaining part used for the analysis of the conductivity. Therefore, in figure captions, short and long trajectories will be marked as “100 ns” or “1.9 μs”, respectively. Conductivity of the electrolyte was estimated from the MD trajectories using the Einstein relation[16]where t stands for time, V is the volume of the simulation box, kB is Boltzmann’s constant, T is the temperature, e is the elementary charge, z and z are the charges of ions i and j, respectively, R(t) is the position of i-th ion at time t, and the brackets ⟨⟩ denote the ensemble average. The diffusion coefficients D± of cations and anions were calculated from the slopes of the time dependences of the mean square displacements (MSDs) of ions The conductivity is proportional to the collective ion diffusion coefficientN is the total number of ions in the system. Dcoll reduces to the average of anion and cation diffusion coefficients Davg = (D– + D+)/2 in the case where there are no correlations between movements of different ions, that is, when the off-diagonal (i ≠ j) terms in eq are negligibly small. In such a case, the Nernst–Einstein equation can provide a good estimate of the conductivity. The conductivity given by formula may be further broken down into contributions arising from different correlations between movements of ions. For this purpose, we write the total conductivity σ of the system as The diagonal (i = j) terms σNa and σCl are related to self-diffusion of Na+ and Cl– ions, respectively. The off-diagonal terms arise from correlations between different ions: cation–cation (σNa–Na), anion–anion (σCl–Cl), and cation–anion (σNa–Cl). In the literature, the diagonal terms σNa and σCl are named “self” contributions, whereas the off-diagonal terms related to ions of same charge σNa–Na and σCl–Cl are referred to as “distinct” contributions. It should be noted that the diffusion coefficients can be obtained from MSDs only if the data are sufficiently averaged, that is, over many ions or/and over sufficiently long time. Accordingly, in order to calculate the conductivities or the diffusion coefficients from formula or 2, usually, the data are averaged over all possible choices of time intervals Δt within the total simulation time of the trajectory and the estimates are obtained from the slope of the MSD dependence versus time. The formulas –3 use the limit of infinitely long time; however, in practice, the data for long times are noisy because of a smaller number of possible choices of long time intervals, resulting in data averaging much worse than for short times. On the other hand, short-time data may not reflect properly the long-time behavior of the system—a sufficiently long time is needed to observe the diffusive regime. Additional complication arises from the fact that the data for different positions of the Δt within the single trajectory are correlated, which affects the statistics, particularly for short times.[4,5] Therefore, in the choice of the time range used to estimate the conductivity, one seeks an optimal balance of the abovementioned factors.

Results

Short Trajectories

In Figure , we show the collective MSD for 100 individual systems, the diagonal contribution of the Na+ ions to the MSD, and the off-diagonal contribution arising from Na+–Cl– correlations. It is readily noticeable that the curves for different systems lie close to each other only at very short times and diverge with increasing time. The divergences are the smallest for the diagonal cation contributions and simultaneously, in this case, the MSD curves are the most linear. Nonlinearity and differences between systems are larger in the case of the collective MSDs and the off-diagonal anion–cation contribution to the MSDcoll may even differ in sign between systems. Approximate linearity of the initial part of the MSD curves (up to 10–20 ns) is a consequence of better data averaging over short time intervals. With the increasing length of simulated trajectories, the averaging over time intervals chosen from the whole trajectory improves the quality of the plot also for larger times and the linear part of the curve becomes longer. However, increasing the length of the trajectory requires an investment of computational time; we will come back to this issue later.
Figure 1

Collective MSD (a), diagonal contribution to MSDcoll from Na+ cations (b), and off-diagonal cation–anion contributions to MSDcoll (c) obtained from 100 ns trajectories. Color lines are the averages over 100 systems.

Collective MSD (a), diagonal contribution to MSDcoll from Na+ cations (b), and off-diagonal cation–anion contributions to MSDcoll (c) obtained from 100 ns trajectories. Color lines are the averages over 100 systems. As seen in Figure , averaging the data over different systems yields the averaged MSD curves, which are much less noisy and quite linear within the scale of the plot. Only after such an averaging one may conclude that the off-diagonal anion–cation contribution in our system is negative—leads to a decrease in the total conductivity. In Figure , we show the different contributions to the collective MSDs averaged over all 100 simulated systems. The averaged diagonal contributions of cations and anions exhibit linear MSD versus time upon 100 ns. These positive contributions are proportional to the diffusion coefficients of Na+ and Cl– ions, and therefore, the result is not surprising, confirming common knowledge that the self-diffusion coefficients can be relatively easily estimated from the MD trajectories. All off-diagonal contributions arising from cation–cation, anion–anion, and cation–anion correlations are negative. It has to be expected that for a salt solution in a molecular liquid, the correlations between ion motions decrease the conductivity of the electrolyte. We should note that the averaging over different systems was necessary to see the negative sign of the off-diagonal contributions because the contributions obtained for individual systems differ in sign, as shown for the Na–Cl contribution in Figure c. These contributions describe the effect of correlations between ion motions, and therefore, accidentally obtaining the wrong sign from insufficiently averaged data could lead to unphysical conclusions about ion transport in the system. The off-diagonal contributions to the MSDcoll are much noisier that those of diagonal components and the corresponding MSD plots are approximately linear only at short times. The absolute values of the diagonal contributions to the conductivity are about an order of magnitude larger than those of the off-diagonal terms. Note, however, that this statement is true only for the data averaged over different systems or at short times (where averaging over time intervals is sufficiently effective) because as seen in Figure b,c, the span of MSD curves for individual systems at long times is comparable for both diagonal and off-diagonal components. The behavior of the collective MSDs is therefore dominated by the diagonal contributions, linearly increasing with time and the MSDcoll curve shown in the upper panel of Figure is rather linear. There is some noise at long times, resulting from the fluctuations of the off-diagonal contributions. A closer look at the details reveals also that the line changes slightly its slope between 30 and 40 ns, and again, this feature stems from the behavior of the off-diagonal components.
Figure 2

Average collective MSDs and different contributions to MSDcoll obtained from 100 short (100 ns) MD simulations. Data for off-diagonal contributions are shown in detail in the bottom panel.

Average collective MSDs and different contributions to MSDcoll obtained from 100 short (100 ns) MD simulations. Data for off-diagonal contributions are shown in detail in the bottom panel. From Figure and the linearity of the diagonal MSDs up to 100 ns, we may expect that the choice of the time range within this range will have little impact on the estimates of the diffusion coefficients of ions from the slope of the MSD curve. For calculations of the conductivity, the choice of the time window used to estimate the slope of the MSDcoll is more important because the curve is not a perfectly straight line—yet the differences will not be too large (as we will show later). On the other hand, if one wants to estimate the transport properties of individual systems (Figure ), the time window is rather limited because above about 40–50 ns, the deviations from linearity become quite significant. Nevertheless, obtaining the estimates from individual systems enables us to get some information on the distribution of the values and their deviation (the mean value of all systems will be of course the same as estimated from the system-averaged MSD curve). In Figure , we summarized the information on the conductivity values estimated for individual systems from the slope of the MSDcoll in the time window 10–20 ns. The results span the range 1.2–13.5 S/m with the mean value 5.9 S/m and the standard deviation 2.85 S/m. The bottom part of Figure shows the histogram of the estimates compared with the Gaussian distribution corresponding to the calculated mean value and the standard deviation. The ratio of the standard deviation to the mean value for the conductivity is about 0.5. For the diagonal contributions to the MSDcoll (and therefore for the diffusion coefficients of ions), this ratio is much smaller—about 0.1. The large width of the distribution of conductivity values results from the off-diagonal contributions to the collective MSDs, for which the mean value is close to 0, and therefore, the stdev/avg ratio is between 5 and 7.
Figure 3

Estimates of the conductivity obtained from individual 100 ns trajectories using the time window M = 10–20 ns (upper panel) and histogram of estimated values with a fit of Gaussian distribution (bottom panel). Solid and broken lines in the upper panel mark the mean value and the standard deviation, respectively.

Estimates of the conductivity obtained from individual 100 ns trajectories using the time window M = 10–20 ns (upper panel) and histogram of estimated values with a fit of Gaussian distribution (bottom panel). Solid and broken lines in the upper panel mark the mean value and the standard deviation, respectively. Given the uncertainty of the calculated values, it is evident that the use of a single 100 ns trajectory to estimate the conductivity carries a significant risk of obtaining the value that significantly differs from the average. Therefore, for such a trajectory length, averaging over different systems is necessary. We analyzed closer how the average and the standard deviation vary with increasing number of samples N. For this purpose, we used different time windows to estimate the conductivity from the slope of the MSDcoll, ranging from 10–20 to 10–100 ns. There was no particular ordering of the systems; they were added into the set randomly, in the order in which the electrolyte structures had been generated. Results are collected in Figure .
Figure 4

Mean values of the conductivity estimated using time windows M from 100 ns trajectories averaged over N datasets (upper panel); averaged exponent in the MSDcoll ∼ tα dependence (middle panel); and standard deviation of estimated conductivity (bottom panel).

Mean values of the conductivity estimated using time windows M from 100 ns trajectories averaged over N datasets (upper panel); averaged exponent in the MSDcoll ∼ tα dependence (middle panel); and standard deviation of estimated conductivity (bottom panel). The mean value of the conductivity σavg stabilizes when the set used for averaging contains 30–40 samples. For smaller numbers of samples, adding a new result may change the average quite significantly. As visible in the bottom panel of Figure , standard deviation of the conductivity calculated for the dataset increases up to N = 10 and then decreases slowly and for N > 40 becomes approximately constant, although significant stepwise increase in standard deviation still may be observed when the system far from the average is added to the set. Likewise, the value of the correlation coefficient R2 does not significantly improve further for more than 40 samples in the dataset. The final mean value of the conductivity obtained for the whole set of 100 systems depends on the time window used to estimate the slope of the MSDcoll—wider intervals result in lower conductivities. Values of σavg and their standard deviations σstdev obtained for different choices of time window are listed in Table . In addition to the data plotted in Figure , we also include in Table the results obtained using the time windows between 40 and 100 ns, yielding lower conductivities (which is a result of the lower slope of MSDcoll above 40 ns, cf. Figure ). As seen in Figure , the divergences between MSD curves for different systems and their nonlinearity become more prominent for longer times; accordingly, standard deviations presented in Table increase with the width of the time window and, generally, for windows covering the long-time part of the data. We should also note that because of large standard deviations, at the 95% confidence level one cannot reject the hypothesis that the mean values of the conductivity obtained for different time ranges shown in Table do not differ. Therefore, the data in Table suggest that the conductivity in the system is between 4.8 and 5.9 S/m.
Table 1

Mean Values σavg, Standard Deviations σstdev, Exponents α, and Corrected Values σcorr of Conductivity Estimated from 100 Short (100 ns) Trajectories Using Different Time Windows M

M, nsσavg, S/mσstdev, S/mσstdevavgασcorr, S/m
10–1005.1044.6640.910.9345.823
10–805.1564.6270.900.9385.821
10–605.3804.3650.810.9585.811
10–405.7863.4480.600.9955.864
10–205.9092.8490.481.0095.848
40–1004.9546.0851.230.9085.561
40–804.8355.9311.230.8815.563
40–604.8586.1421.260.8685.480
At this point, we would like to comment on the minimal length of the trajectories necessary to obtain reliable results. In order to get some insight into this issue, we repeated the analysis of the 100 ns trajectories but using only the limited part from the beginning of the trajectory to perform the time averaging. The length L of the analyzed part was L = 20, 40, 60, and 80 ns; in all cases, the time window 10–20 ns was used to estimate the conductivity. The results are collected in Figure . The upper panel shows the averaged MSDcoll and two curves corresponding to the two individual trajectories which are the most deviating from the average. Apparently, for larger L values, the average and the individual curves become more linear. Simultaneously, the extreme individual MSDcoll curves become closer to the average, indicating that the width of the distribution of estimated conductivities becomes narrower. This is confirmed by the ratio of the standard deviation of the conductivity to its mean value σstdev/σavg and the R2 coefficient shown in the bottom panel of Figure . The σstdev/σavg ratio decreases with L and for L ≥ 60, it is lower than 1. From σstdev and R2 values, we may conclude that the length L = 80 ns of the trajectory could be sufficient to estimate the conductivity. Here, this conclusion was obtained from a posteriori analysis, but in practice, such an analysis can be performed during MD computations to decide whether the collected trajectories are sufficient for estimates of the conductivity or it is necessary to continue the simulations.
Figure 5

Averaged MSDcoll curves (solid lines) and individual trajectories most differing from the average (broken lines) obtained for different lengths L of the trajectory used in the analysis (top) and dependence of the σstdev/σavg ratio and the correlation coefficient on L (bottom).

Averaged MSDcoll curves (solid lines) and individual trajectories most differing from the average (broken lines) obtained for different lengths L of the trajectory used in the analysis (top) and dependence of the σstdev/σavg ratio and the correlation coefficient on L (bottom). Seeking a way to narrow the 4.8–5.9 S/m interval containing the estimated values of the conductivity, we turned our attention to the dependence on the MSDcoll versus time. Generally, one may write it as MSD ∼ tα. In calculations of the conductivity, we assume that the dependence is linear, that is, α = 1 and the conductivity is proportional to the slope of the MSD. This assumption may be verified by fitting the α parameter in the dependence log(MSD) ∼ α log t. The middle panel of Figure shows the values of the exponent α obtained for the increasing number of samples N in the dataset and for different time windows used to estimate the parameters. The values calculated for the whole set of 100 systems are listed in Table . Like the mean value and the standard deviation, the fitted value of the exponent α becomes approximately constant for N > 50. Only for one of the choices of the time interval (M = 10–40 ns), α is close to 1. It is slightly larger than 1 for M = 10–20 ns and lower than 1 for broader time ranges. The mean value of the conductivity σavg positively correlates with the value of the exponent α. This is not surprising because for α < 1 and α > 1, the MSD curve bends downward or upward, respectively; therefore, the linear fit to the data accordingly yields a slope lower or higher than that in the perfectly linear case α = 1. The deviations of the exponent α from 1 may indicate a special behavior of the system but may as well result from the uncertainty of data. In fact, regardless of the time window, the diagonal contributions of cations and anions to the MSDcoll are described by the dependences with α in the range between 0.99 and 1.01. Therefore, the electrolyte exhibits normal diffusion of Na+ and Cl– ions, with MSD ∼ t. As mentioned earlier, the deviations of the MSDcoll from linearity are caused by off-diagonal contributions, which have much larger uncertainties than those of the diagonal components. Let us suppose that the deviations from unity of the exponent α in the dependence of the MSDcoll versus time result from the noise in the data. In such a case, the most reliable estimates of the conductivity come from these datasets/time windows, which yield the values of α most close to 1. In Figure , this would correspond to the M = 10–40 ns time range. We can inspect the data closer, checking the correlation between the value of α and the corresponding conductivity σavg. The data are displayed in Figure .
Figure 6

Correlation between the exponent α and the conductivity σ estimated using different time windows M. Lines are linear fits to the data.

Correlation between the exponent α and the conductivity σ estimated using different time windows M. Lines are linear fits to the data. Apparently, α and σavg are correlated and several sets of data (for different choices of M) fall onto one common curve. We used linear fits to the data in Figure to find the conductivity σcorr corresponding to α = 1. Corrected values of the conductivity σcorr are listed in Table . Both from the numerical values in Table and from the enlarged region of the plot close to α = 1 shown in the inset of Figure , it is clear that the differences between values corresponding to different time windows are greatly reduced. All five time windows starting at 10 ns yield conductivity within the range between 5.81 and 5.86 S/m. The three other sets with M starting at 40 ns give lower values, from 5.48 to 5.56 S/m, but the difference between these two groups of results is much smaller than that in “uncorrected” data. The data obtained for time windows including long times are less-reliable (because averaging over time intervals is worse in this region), but even including the results for M = 40–60, 80, and 100, we find the conductivity in the interval 5.5–5.9 S/m, significantly narrower than that of the previously determined 4.8–5.9 S/m. The difficulties in computations of a reliable estimate of collective MSDs of ions (and therefore the estimate of the conductivity) together with the fact that the average MSDs of ions (proportional to the self-diffusion coefficients) can be obtained much easier are the origin of a quite common approach in which the conductivity is estimated from the diffusion coefficients of cations and anions. This approximation is reasonable in the systems in which the correlations between motions of ions are expected to be small. A simple check of whether this assumption is valid is to compare the average of the diffusion coefficients of cations and anions Dav = (D+ + D–)/2 with the collective diffusion coefficient Dcoll. Following this reasoning, one may calculate the ratio of the uncorrelated to correlated motion of ions ru/c = Dav/Dcoll and use it to rescale the conductivity obtained from the average diffusion coefficient Dav. The latter can be usually estimated with satisfactory accuracy even from relatively short trajectories. On the other hand, to estimate the ru/c value, only the time window at short times can be used because for longer times, the MSDcoll will be too noisy. Such an approach, used, for example, in refs,[17−19] relies on the assumption that the ru/c value does not change significantly between short and long times. Nevertheless, it may provide an alternative way to estimate the conductivity from the length of the trajectory, which is sufficient only to calculate the diffusion coefficients but shorter than what would be normally necessary to obtain the conductivities directly from the MSDcoll curves. In Figure , we show how the ru/c ratio depends on time between 0 and 100 ns for short trajectories. The value averaged over all 100 trajectories is about 1.2, and indeed, it is reasonably constant in time, taking values between 1.15 and 1.25, but the data for individual trajectories differ substantially. Only in a narrow time interval of 0.1–0.2 ns, the ru/c values for all systems are close to the average (between 1.1 and 1.25) but they diverge fast above that time. Already at 1 ns, there are some systems with a ru/c ratio lower than 1, suggesting the opposite effect of correlations (enhancing the conductivity instead of suppressing it). For some trajectories, ru/c reaches values much larger than 1, which would result in significantly underestimated conductivity if used to rescale the conductivity estimated from the Dav. The approach discussed here, although generally justified as seen from the average ru/c, should be therefore adopted with care, possibly using the average over several systems. It should be avoided when the estimated ru/c ratio significantly exceeds 1, indicating the important role of correlations. In such a case, correlations do not constitute small correction to the conductivity, which therefore should be rather calculated without approximations.
Figure 7

Ratio of uncorrelated to correlated conductivity obtained from 100 ns trajectories. The color line is the average over 100 systems.

Ratio of uncorrelated to correlated conductivity obtained from 100 ns trajectories. The color line is the average over 100 systems.

Long Trajectories

In the preceding part of the paper, we analyzed the results of relatively short 100 ns MD trajectories. To improve the averaging, we used as many as 100 independent simulations. Now, we want to check the performance of the alternative way of investing of the computational time: using only few long trajectories instead of many short simulations. For this purpose, we analyze the three long (2 μs) trajectories. With this length of the trajectory, averaging of the MSD over different choices of Δt will be about 20 times better than that for individual short trajectories. We tried also the alternative possibility of averaging: the production part of the long trajectory was split into 19 parts, each 100 ns long, and the analysis was performed for these segments in the same way as that applied to short trajectories in the preceding section. Resulting MSDcoll dependences on time are presented in Figure . Data time-averaged over one long trajectory (solid lines) are marked as “long #”; the averages over 100 ns parts of the trajectory (broken lines) are marked as “avg #”. For comparison, the average over 100 of short 100 ns trajectories from Figure a is also shown. Within the time range shown in Figure (up to 100 ns), the collective MSDs obtained from the whole trajectory are more linear than the MSDcoll averaged over parts of the trajectory. Nevertheless, the curves corresponding to the same system lie close together. In the time window up to 20 ns (inset of Figure ), the differences between the two ways of data averaging are minimal. This is confirmed by the numerical data collected in Table , presenting the conductivities estimated in the time range M = 10–20 ns from the whole long trajectory (σl) or as the average over its 100 ns intervals (σavg). In the latter case, the corresponding standard deviations σstdev are also given. As seen from the data, the two ways of data averaging yield similar estimates of conductivity, but there are differences (up to 0.8–0.9 S/m) between different systems. Standard deviations are similar to those obtained earlier for short trajectories, in agreement with the observation that for about 20 systems, the standard deviation becomes close to the value calculated from a large set of data. Both ways of averaging can provide, therefore, a reasonable estimate for the given system, but as there are differences between systems, a single trajectory cannot provide information on whether the estimate represents the typical situation (e.g., the third trajectory apparently yields values lower than the two other). The differences between trajectories reflect different starting configurations; however, for sufficiently long simulations, they become smaller because of better sampling of the configurational space. In particular, this supposition seems to be justified in the approach based on splitting the trajectory into parts because for long times, the segments separated by large time intervals may be viewed as separate simulations initiated from different structures. Nevertheless, the use of multiple relatively short simulations will be more efficient in the averaging.
Figure 8

Collective MSD obtained for 1.9 μs trajectories. Data are averaged over the whole trajectory (“long #”) or over its 100 ns parts (“avg #”); “short avg” is the average over the 100 individual 100 ns trajectories.

Table 2

Estimates of the Conductivity Obtained Using the Time Window M = 10–20 ns from Long (1.9 μs) Trajectories Treated as a Whole (σl) or Split Into 100 ns Parts (σavg with the Corresponding Standard Deviation σstdev)

trajectory #σl, S/mσavg, S/mσstdev, S/mσstdevavg
15.8805.9852.1980.37
25.9365.7482.6710.46
35.1805.1231.9350.38
Collective MSD obtained for 1.9 μs trajectories. Data are averaged over the whole trajectory (“long #”) or over its 100 ns parts (“avg #”); “short avg” is the average over the 100 individual 100 ns trajectories. We also analyzed the data collected from long trajectories in the same way as was done for short trajectories, treating all 100 ns parts as one set of data. The results obtained for different time windows are shown in Figure . The picture is similar to that presented in Figures and 6 for short trajectories. The mean values depend on the time window used to extract the slope of the MSDcoll and vary between 5.05 and 5.6 S/m. The σavg correlates with the exponent α, and the linear fits to the dependence σavg versus α are shown in the bottom panel of Figure . Like for the short trajectories, the corrected values σcorr corresponding to α = 1 calculated from the fit parameters do not depend much on the time window and fall in the interval from 5.70 to 5.87 S/m. This result agrees well with the estimates obtained from short MD trajectories. Also, the time dependence of the ru/c ratio calculated from long trajectories exhibits features similar to those shown in Figure , with the average ru/c close to 1.2.
Figure 9

Mean values of the conductivity estimated using time windows M from 100 ns parts of 1.9 μs trajectories averaged over N datasets (upper panel); averaged exponent in the MSDcoll ∼ tα dependence (middle panel); and correlation between the exponent α and the estimated conductivity (bottom panel).

Mean values of the conductivity estimated using time windows M from 100 ns parts of 1.9 μs trajectories averaged over N datasets (upper panel); averaged exponent in the MSDcoll ∼ tα dependence (middle panel); and correlation between the exponent α and the estimated conductivity (bottom panel). Finally, we will comment on the trajectories obtained for “big” systems, which were analyzed in the way applied to long trajectories for small systems, that is, treating individual 100 ns parts as separate trajectories. Statistics of averaged data shows that the standard deviation of the conductivity is practically the same for “long” and “big” datasets, that is, there is no improvement for larger system sizes. Inspection of different contributions to the MSDcoll and the conductivity reveals that the standard deviations of the diagonal contributions of cations and anions (related to self-diffusion coefficients) for “big” systems are two times smaller than those for the “long” set. The unaffected standard deviation of the conductivity results from the standard deviations of the off-diagonal contributions, which are of similar sizes for both long and big trajectories. As shown earlier, the errors of conductivity estimates are governed by the off-diagonal contributions. Therefore, although increasing the size of the simulated systems improves the accuracy of estimated self-diffusion coefficients, it is ineffective for collective properties, such as the conductivity.

Discussion

We presented some results of conductivity estimates for a model system using MD trajectories of different lengths and for different system sizes. Here, we will try to summarize our findings and to formulate some suggestions. In order to improve the accuracy of properties estimated from the MD simulations, one may invest the computational effort in increasing the system size, the length of the MD trajectory, or the number of realizations of the system. The first possibility, enlargement of the system, may be beneficial for calculations of diffusion coefficients but will not efficiently improve estimates of the conductivity. Of course, there are other factors which should be considered for the choice of system size, for example, possible finite-size (boundary) effects,[20−23] but the discussion on this issue is beyond the scope of our work. Once the system size is established, given a limited amount of resources, one faces the choice between the number of investigated samples versus the length of simulations—between running many short simulations or few only but relatively long trajectories. The advantages of increasing the number of realizations are obvious: the improved statistics making it possible to estimate the deviations between samples. With this approach, it is also possible to eliminate the outliers caused, for example, by the nonphysical starting configurations. From the data obtained for our model systems, it seems that at least 10 trajectories should be used in order to get reliable estimates. However, above a certain number of simulations, adding more trajectories to the dataset does not decrease the standard deviation of the conductivity; therefore, at this point, it seems reasonable not to increase further the number of realizations. The optimal number of independent trajectories seems to be about 30–40 systems, similar to that found in the study on estimating the shear viscosity.[6] Assuming that the deviations of the MSDcoll from the linearity result from insufficient averaging and they are not the intrinsic property of the system (like a subdiffusive regime), one may try to improve the estimate of the conductivity using the procedure outlined in Section . By establishing the correlation between σavg and the exponent α, the corrected value of the conductivity may be found from the fit to the data as the value corresponding to α = 1. As a proof of concept, we applied this procedure to the conductivity estimated in our recent paper on Me-TFSI electrolytes (Me = Li or Na) in EMIM-TFSI ionic liquid.[24] Results are displayed in Figure . The upper panel shows the original data, averaged over 10 parts (100 ns each) of a 1.1 μs trajectory. The bottom panel contains the data after the correction. The corrected plot is less-noisy and the trends are more easily noticeable: decrease in the conductivity with increasing Me+ concentration, increase in conductivities for Na+ electrolytes compared to Li+-based systems, or larger conductivity calculated in the polarizable (DP) force field.
Figure 10

Results of the correction applied to the conductivities of the MeEMIM(1–TFSI electrolytes estimated in ref (24).

Results of the correction applied to the conductivities of the MeEMIM(1–TFSI electrolytes estimated in ref (24). The disadvantage of using many short trajectories is the computational time lost for the equilibration of multiple systems. This time is greatly reduced when only few systems are simulated. However, the loss of the computational time used for the equilibration stage is partially compensated by better parallelization. Given the number of available CPU cores, one may allocate all of them to one MD simulation (in practice probably to few simulations, with a large number of cores allocated to each run) or to divide the CPUs to small groups used to compute simultaneously many trajectories. Because the scaling of the simulation speed with the number of cores is typically worse than linear, the other setup is more efficient in terms of ns of MD trajectories produced in total per day. If for some reason long trajectories are simulated, they give the opportunity to improve the statistics by averaging over more time intervals within the trajectory. This improves the linearity of the MSDcoll (as seen from Figure compared to the top panel of Figure ). Nevertheless, using only one set of data, even with perfectly linear MSDs, one cannot be sure whether the system is a representative for the population of possible systems, which may be constructed and simulated, or if it is rather an outlier. Splitting the long trajectory into shorter parts and averaging the analyzed data will not answer the abovementioned question but at least will provide some information on the deviations of obtained estimates. It will also make possible the correction of the data using the correlation σavg versus α. In any case, simulation of only one trajectory per system should be avoided.

Conclusions

We have investigated the issue of calculations of the electrical conductivity from the MD simulations. The results of our study show that the errors of the estimated conductivity result from the off-diagonal contributions to the collective MSD of ions and therefore, as a collective property, cannot be efficiently reduced by increasing the size of simulated systems. The most effective way to reduce the fluctuations of MSDcoll is to average the data over many independent simulations. The minimal number of trajectories is about 10, and the optimum seems to be between 30 and 40 realizations. Adding more than 40 simulations to the dataset is unlikely to further reduce errors because at this number of trajectories, the calculated standard deviation reaches the value roughly corresponding to the population of systems, and therefore, it will not decrease for more samples. If long trajectories are available, it is advisable to split them into shorter parts and to perform the analysis of the averages obtained from the set of segments treated as separate individual trajectories. We have proposed an ad hoc correction to the estimated conductivity, based on the assumption that the deviations of the system from an ideal behavior are caused by the fluctuations of the off-diagonal contributions to the conductivity and not by the deviations from normal diffusion. The correction is based on fitting correlations between the conductivity and the exponent of the dependence of the MSDcoll versus time and finding the estimate corresponding to the linear increase in MSDcoll. We have also shown that the approximate estimates based on the ratio of uncorrelated and correlated displacements may be an effective way to reduce the computational effort using shorter trajectories but with careful choice of a short time window at the beginning of the trajectory in which the ru/c values least differ between systems. For this purpose, comparing several systems is recommended.
  15 in total

1.  Estimating error in diffusion coefficients derived from molecular dynamics simulations.

Authors:  Gaurav Pranami; Monica H Lamm
Journal:  J Chem Theory Comput       Date:  2015-10-13       Impact factor: 6.006

2.  Scalable molecular dynamics with NAMD.

Authors:  James C Phillips; Rosemary Braun; Wei Wang; James Gumbart; Emad Tajkhorshid; Elizabeth Villa; Christophe Chipot; Robert D Skeel; Laxmikant Kalé; Klaus Schulten
Journal:  J Comput Chem       Date:  2005-12       Impact factor: 3.376

3.  VMD: visual molecular dynamics.

Authors:  W Humphrey; A Dalke; K Schulten
Journal:  J Mol Graph       Date:  1996-02

4.  Computational studies of ionic liquids: size does matter and time too.

Authors:  Sonja Gabl; Christian Schröder; Othmar Steinhauser
Journal:  J Chem Phys       Date:  2012-09-07       Impact factor: 3.488

5.  Valence selectivity of the gramicidin channel: a molecular dynamics free energy perturbation study.

Authors:  B Roux
Journal:  Biophys J       Date:  1996-12       Impact factor: 4.033

6.  Molecular Dynamics Investigation of Correlations in Ion Transport in MeTFSI/EMIM-TFSI (Me = Li, Na) Electrolytes.

Authors:  Piotr Kubisiak; Piotr Wróbel; Andrzej Eilmes
Journal:  J Phys Chem B       Date:  2020-01-03       Impact factor: 2.991

7.  A combined theoretical and experimental study of the influence of different anion ratios on lithium ion dynamics in ionic liquids.

Authors:  Volker Lesch; Sebastian Jeremias; Arianna Moretti; Stefano Passerini; Andreas Heuer; Oleg Borodin
Journal:  J Phys Chem B       Date:  2014-06-23       Impact factor: 2.991

8.  Effect of organic solvents on Li+ ion solvation and transport in ionic liquid electrolytes: a molecular dynamics simulation study.

Authors:  Zhe Li; Oleg Borodin; Grant D Smith; Dmitry Bedrov
Journal:  J Phys Chem B       Date:  2015-02-03       Impact factor: 2.991

9.  System-size corrections for self-diffusion coefficients calculated from molecular dynamics simulations: The case of CO2, n-alkanes, and poly(ethylene glycol) dimethyl ethers.

Authors:  Othonas A Moultos; Yong Zhang; Ioannis N Tsimpanogiannis; Ioannis G Economou; Edward J Maginn
Journal:  J Chem Phys       Date:  2016-08-21       Impact factor: 3.488

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.