betaFeedback

WorksPhysics and Astronomy

Dynamics and Statistical Mechanics of Born-Oppenheimer Auxiliary Velocities

Abstract

In Born-Oppenheimer (BO) dynamics, auxiliary variables such as electron densities, induced polarization and electrode charges follow stationarity conditions, yet their time derivatives, such as currents, are physical observables. Using Mass-Zero constrained dynamics, we interpret these derivatives as explicit dynamical variables and derive the invariant measure giving their equilibrium statistical properties. We illustrate the framework in constant-potential molecular dynamics, where the electrode-charge velocities reproduce BO current fluctuations and the frequency-dependent admittance.

Introduction

In molecular dynamics, many physically relevant quantities are fixed by instantaneous stationarity conditions rather than by their own equations of motion. Examples include electron densities in orbital-free [1] and Kohn-Sham electronic-structure dynamics [2], induced polarization in classical force fields [3, 4, 5, 6], and electrode charges in constant-potential simulations [7]. In the Born–Oppenheimer (BO) description these auxiliary variables are functions of the evolving physical coordinates. In particular, their time-derivatives (referred to as “auxiliary velocities” hereafter) follow from the chain rule, but as derived quantities, without a statistical-mechanical framework of their own. These derivatives, however, correspond to physical observables. For example, polarization and electrode currents determine transport and, through fluctuation–dissipation relations, frequency-dependent response [8, 9, 10, 11, 12, 13]. A consistent dynamical and statistical-mechanical description of these derivatives is therefore interesting and useful.

A dynamical framework is introduced in extended-Lagrangian methods that propagate auxiliary variables with fictitious inertia, as in Car–Parrinello dynamics [2, 14], or combine auxiliary dynamics with approximate self-consistent updates [15, 16, 17, 18]. Finite values of the fictitious electronic mass, however, are known to introduce systematic deviations from Born–Oppenheimer dynamics [19, 20], including effective renormalization of the ionic masses and associated biases in dynamical observables such as vibrational frequencies [21, 22]. Mass-Zero (MaZe) constrained dynamics [23, 24] removes these spurious effects via an extended dynamical system that enforces a rigorous null inertia limit and imposes the stationarity conditions as holonomic constraints throughout the propagation. MaZe has been applied to polarizable models [25], orbital-free density functional theory [26], shell models [27] and constant-potential electrodes [24], and its mass-zero limit is proven to reproduce BO dynamics and equilibrium statistics for the physical variables. Here we focus on the auxiliary variables.

We show that (i) in Hamiltonian variables the auxiliary momenta and the constraint multipliers scale linearly with the inertia, so that the mass-zero limit is regular and the auxiliary velocities remain finite and explicit; (ii) these velocities coincide exactly with the time derivatives of the BO stationary solutions along the same physical trajectory; and (iii) the phase-space compressibility and invariant measure of the constrained flow provide the statistical description needed for equilibrium averages and time-correlation functions of the velocities. We illustrate the framework on constant-potential electrodes, where the auxiliary velocities are electrical currents, by comparing MaZe with a BO reference for the current, its autocorrelation, and the frequency-dependent admittance.

Theory We consider a system of NN physical particles with coordinates rr, conjugate momenta pp, and masses collected in the diagonal matrix M\mathbf{M}, coupled to ff auxiliary variables ss through a (possibly generalised) potential V(r,s)V(r,s). In the Born–Oppenheimer (BO) description, the auxiliary variables are determined at each physical configuration by the stationarity conditions

σα(r,s)≡∂V(r,s)∂sα=0,α=1,…,f.(1)\sigma_{\alpha}(r,s) \equiv\frac{\partial V(r,s)}{\partial s_{\alpha}} = 0,\qquad\alpha= 1,\ldots,f. \tag*{(1)}

We assume that these conditions define a smooth, locally unique solution s∗(r)s^{*}(r) so that the corresponding (f×f)(f \times f) Jacobian with respect to the auxiliary variables, (Σs)αβ=∂σα∂sβ(\boldsymbol{\Sigma}_{s})_{\alpha\beta} = \frac{\partial\sigma_{\alpha}}{\partial s_{\beta}}, is nonsingular. MaZe dynamics enforces (1) as a set of holonomic constraints while propagating the auxiliary coordinates. To formulate the dynamics in Hamiltonian variables, we initially assign a finite inertia μ\mu to the auxiliary variables and introduce their conjugate momenta π\pi. The extended Hamiltonian is

H(r,p,s,π)=12pTM−1p+12μπTπ+V(r,s).(2)H(r,p,s,\pi)=\frac{1}{2}p^{\mathsf{T}}M^{-1}p+\frac{1}{2\mu}\pi^{\mathsf{T}}\pi+V(r,s). \tag*{(2)}

The constrained equations of motion are

r˙=M−1p,p˙=−∇rV−ΣrTλ,s˙=π/μ,π˙=−ΣsTλ.(3)\begin{aligned} \dot{r}&=M^{-1}p,\\ \dot{p}&=-\nabla_rV-\Sigma_r^{\mathsf{T}}\lambda,\\ \dot{s}&=\pi/\mu,\\ \dot{\pi}&=-\Sigma_s^{\mathsf{T}}\lambda. \tag*{(3)} \end{aligned}

where the ff-dimensional λ\lambda denotes the Lagrange multipliers and we have introduced the (f×3N)(f\times3N) matrix

(Σr)αi=∂σα∂ri.(\Sigma_r)_{\alpha i}=\frac{\partial\sigma_\alpha}{\partial r_i}.

The auxiliary potential forces vanish on the constraint manifold because ∇sV=σ=0\nabla_sV=\sigma=0 (see Eq. (1)).

Preservation of the stationarity conditions requires the velocity constraint

σ˙=ΣrM−1p+μ−1Σsπ=0.(4)\dot{\sigma}=\Sigma_rM^{-1}p+\mu^{-1}\Sigma_s\pi=0. \tag*{(4)}

This relation gives

π=−μΣs−1ΣrM−1p≡μπ^,s˙=π^.(5)\pi=-\mu\Sigma_s^{-1}\Sigma_rM^{-1}p\equiv\mu\hat{\pi},\qquad\dot{s}=\hat{\pi}. \tag*{(5)}

Thus, the auxiliary momenta scale linearly with μ\mu, whereas the auxiliary velocities remain finite for all values of the fictitious inertia.

Differentiating the constraints once more and using Eqs. (3), we obtain a linear equation for the multipliers, whose solution can be written as

λ=μγ,γ=Z~−1F,Z~=ΣsΣsT+μΣrM−1ΣrT.(6)\lambda=\mu\gamma,\qquad\gamma=\widetilde{Z}^{-1}F,\qquad\widetilde{Z}=\Sigma_s\Sigma_s^{\mathsf{T}}+\mu\Sigma_rM^{-1}\Sigma_r^{\mathsf{T}}. \tag*{(6)}

where

Fα=∑a,b∂2σα∂xa∂xbx˙ax˙b−(ΣrM−1∇rV)α,(7)F_\alpha=\sum_{a,b}\frac{\partial^2\sigma_\alpha}{\partial x_a\partial x_b}\dot{x}_a\dot{x}_b-\left(\Sigma_rM^{-1}\nabla_rV\right)_\alpha, \tag*{(7)}

with x=(r,s)x=(r,s) and x˙=(M−1p,π^)\dot{x}=(M^{-1}p,\hat{\pi}), which is finite for μ→0\mu\to0 by Eq. (5) (π^=π/μ\hat{\pi}=\pi/\mu). For nonsingular Σs\Sigma_s and finite constrained velocities, Z~\widetilde{Z} remains invertible and γ\gamma remains finite as μ→0\mu\to0. Consequently, the constraint multipliers also scale linearly with the auxiliary inertia.

Taking the mass-zero limit while retaining the scaled momenta π^\hat{\pi} gives

r˙=M−1p,p˙=−∇rV(r,s),s˙=π^,π^˙=−ΣsTγ0,(8)\begin{aligned} \dot{r}&=M^{-1}p,\\ \dot{p}&=-\nabla_rV(r,s),\\ \dot{s}&=\hat{\pi},\\ \dot{\hat{\pi}}&=-\Sigma_s^{\mathsf{T}}\gamma_0, \tag*{(8)} \end{aligned}

subject to the position and velocity constraints and where γ0\gamma_0 is the zero inertia Lagrange multiplier. Since s=s∗(r)s=s^*(r), the equations for the physical variables reduce to

r˙=M−1p,p˙=−∇rV(r,s∗(r)).(9)\dot{r}=M^{-1}p,\qquad\dot{p}=-\nabla_rV(r,s^*(r)). \tag*{(9)}

These are the BO equations of motion. For identical initial physical conditions, MaZe and BO therefore generate the same physical trajectories in the mass-zero limit.

We now establish the correspondence for the auxiliary velocities. In BO dynamics, the stationary solution s∗(r)s^*(r) follows the physical trajectory without possessing an independent equation of motion. Its time derivative is determined by the chain rule,

ddts∗(r(t))=∂s∗∂rr˙.(10)\frac{d}{dt}s^*(r(t))=\frac{\partial s^*}{\partial r}\dot{r}. \tag*{(10)}

Differentiating the identity σ(r,s∗(r))=0\sigma(r,s^*(r))=0 with respect to rr yields Σr+Σs∂s∗/∂r=0\Sigma_r+\Sigma_s\partial s^*/\partial r=0, and therefore

ddts∗(r(t))=−Σs−1ΣrM−1p.(11)\frac{d}{dt}s^*(r(t))=-\Sigma_s^{-1}\Sigma_rM^{-1}p. \tag*{(11)}

Comparison with Eq. (5) shows that the time derivative of the BO stationary solution coincides with the constrained auxiliary velocity,

ddts∗(r(t))=π^(t)=s˙(t),(12)\frac{d}{dt}s^*(r(t))=\hat{\pi}(t)=\dot{s}(t), \tag*{(12)}

when evaluated along the same physical trajectory. This identity follows from the geometry of the stationary manifold and holds for any finite μ\mu. At finite inertia, the constrained and BO physical trajectories generally differ because of the constraint force acting on the physical momenta. In the mass-zero limit, this force vanishes and the physical trajectories coincide, so the correspondence extends to the time evolution as well.

The identity is a direct consequence of the geometry of the stationary manifold (trivial, in that sense), yet it is useful: in MaZe, π^\hat{\pi} is a regular phase-space variable of a well-defined dynamical system, produced directly by the constrained integrator detailed in Figure 1, without differentiating the stationary solution [28]. The equilibrium fluctuations of the auxiliary coordinates and velocities, require a consistent statistical description of the extended constrained dynamics. This can be conveniently obtained within the formalism of non-Hamiltonian statistical mechanics [29, 30]. Eliminating the constraint multipliers generally leads to a compressible flow in the ambient phase-space variables (r,p,s,π)(r,p,s,\pi). As shown in the Supplementary Material (SM) [31], its compressibility is

Integration cycle of the mass-zero constrained dynamics

Figure 1. Integration cycle of the mass-zero constrained dynamics. Starting from {r,r˙,s,s˙}(t)\{r,\dot{r},s,\dot{s}\}(t), a velocity half-step is followed by the SHAKE update enforcing σ(t+δt)=0\sigma(t+\delta t)=0; after recomputing the forces, the RATTLE projection enforces σ˙(t+δt)=0\dot{\sigma}(t+\delta t)=0 [Eq. (4)].

κμ=−Tr⁡(Z~−1Z~˙)=−ddtln⁡∣Z~∣.(13)\kappa_\mu=-\operatorname{Tr}\left(\widetilde{Z}^{-1}\dot{\widetilde{Z}}\right)=-\frac{d}{dt}\ln|\widetilde{Z}|. \tag*{(13)}

where ∣Z~∣|\widetilde{Z}| denotes the determinant of Z~\widetilde{Z}. The corresponding invariant metric factor can be chosen as

g=∣Z~∣,(14)\sqrt{g}=|\widetilde{Z}|, \tag*{(14)}

up to a constant factor, which cancels in normalized averages. The constrained equilibrium average of an observable AA is then

⟨A⟩μ=1Nμ∫dr dp ds dπ ∣Z~∣Pμ(r,p,s,π) δ(σ)×δ(σ˙)A(r,p,s,π),(15)\langle A\rangle_\mu=\frac{1}{\mathcal{N}_\mu}\int dr\,dp\,ds\,d\pi\,|\widetilde{Z}|P_\mu(r,p,s,\pi)\,\delta(\sigma)\times\delta(\dot{\sigma})A(r,p,s,\pi), \tag*{(15)}

where Nμ=∫dr dp ds dπ ∣Z~∣ Pμ(r,p,s,π) δ(σ) δ(σ˙)\mathcal{N}_{\mu}=\int dr\,dp\,ds\,d\pi\,|\widetilde{Z}|\,P_{\mu}(r,p,s,\pi)\,\delta(\sigma)\,\delta(\dot{\sigma}) is the normalization factor, Pμ(r,p,s,π)P_{\mu}(r,p,s,\pi) is the stationary density of the extended dynamics, the delta functions enforce the constraints and the velocity constraints, and A(r,p,s,π)A(r,p,s,\pi) is the observable.

To obtain a regular statistical description in the mass-zero limit, we introduce the scaled auxiliary momenta π=μπ^\pi=\mu\hat{\pi}. In these variables, the velocity constraint becomes

δ(σ˙)=δ(Σsπ^+ΣrM−1p)=∣Σs∣−1δ(π^+Σs−1ΣrM−1p),(16)\delta(\dot{\sigma})=\delta(\Sigma_s\hat{\pi}+\Sigma_rM^{-1}p)=|\Sigma_s|^{-1}\delta(\hat{\pi}+\Sigma_s^{-1}\Sigma_rM^{-1}p), \tag*{(16)}

with no explicit dependence on μ\mu. The momentum Jacobian μf\mu^f cancels between numerator and denominator of the normalized average, and the Hamiltonian becomes Hμ=12pTM−1p+μ2π^Tπ^+V(r,s)H_{\mu}=\frac{1}{2}p^{\mathrm T}M^{-1}p+\frac{\mu}{2}\hat{\pi}^{\mathrm T}\hat{\pi}+V(r,s), with the regular limit H0=12pTM−1p+V(r,s)H_0=\frac{1}{2}p^{\mathrm T}M^{-1}p+V(r,s). Since Z~→ΣsΣsT\widetilde{Z}\to\Sigma_s\Sigma_s^{\mathrm T}, the limiting average is

⟨A⟩0=1N0∫dr dp ds dπ^ {∣ΣsΣsT∣P0(r,p,s,π^)δ(σ)×δ(Σsπ^+ΣrM−1p)A(r,p,s,π^)},(17)\langle A\rangle_0=\frac{1}{N_0}\int dr\,dp\,ds\,d\hat{\pi}\,\left\{|\Sigma_s\Sigma_s^{\mathrm T}|P_0(r,p,s,\hat{\pi})\delta(\sigma) \times\delta(\Sigma_s\hat{\pi}+\Sigma_rM^{-1}p)A(r,p,s,\hat{\pi})\right\}, \tag*{(17)}

where N0N_0 is the corresponding normalization and P0(r,p,s,π^)P_0(r,p,s,\hat{\pi}) is the limiting stationary density. Marginalization over ss and π^\hat{\pi}, shows that the physical variables are distributed according to P0(r,p,s∗(r))P_0(r,p,s^*(r)), the BO density for the chosen ensemble. This recovers the known BO limit of the constrained measure [23, 24]. The derivation of this limit in the present variables is given in the SM [31].

In the full extended system, the velocity π^\hat{\pi} is slaved to pp, but remains an explicit phase-space variable. Together with the dynamical correspondence above, the measure allows equilibrium time-correlation functions and linear-response relations to be formulated directly for observables involving the auxiliary velocities [32].

Application to constant-potential electrodes

We illustrate the correspondence using the fluctuating-charge model of constant-potential electrodes, represented in Figure 2. The system is an electrolyte of NN ions, whose positions r={ri}i=1Nr=\{r_i\}_{i=1}^{N} are the physical degrees of freedom, confined between two metallic electrodes, labelled ++ and −-, each composed of fixed atoms. Every electrode atom α\alpha carries a Gaussian charge distribution of fixed width and fluctuating magnitude QαQ_{\alpha} (see SM [31]), and the sites of each electrode are held at an imposed potential ψα\psi_{\alpha} (ψ+\psi_+ and ψ−\psi_- for the two electrodes, as indicated in the scheme). The MM electrode-site charges, which adjust to the ionic configuration so as to keep each site at its imposed potential, are the auxiliary coordinates, with an additional auxiliary variable ν\nu needed to enforce global electroneutrality:

Snapshot of molten LiCl between two Al electrodes

Figure 2. Snapshot of molten LiCl (Li+^{+} blue, Cl−^{-} red) between two Al electrodes (grey) held at constant potentials ψ+\psi_{+} and ψ−\psi_{-}, with periodic boundary conditions in xx and yy. The electrode charges fluctuate under the constant-potential and electroneutrality conditions.

s=(Q1,…,QM,ν),f=M+1.(18)s=(Q_1,\ldots,Q_M,\nu),\qquad f=M+1. \tag*{(18)}

The physical coordinates rr evolve based on the negative

gradient of

V(r,s)=U(r)+UC(r,Q)−∑α=1MψαQα+ν∑α=1MQα,(19)V(r,s)=U(r)+U_C(r,Q)-\sum_{\alpha=1}^{M}\psi_{\alpha}Q_{\alpha}+\nu\sum_{\alpha=1}^{M}Q_{\alpha}, \tag*{(19)}

where U(r)U(r) denotes the non-Coulomb interactions of the electrolyte, UCU_C is the electrostatic energy of the electrolyte and electrode charges (specified in the SM [31]). The third term in Eq. (19) is the reversible work to charge the electrodes, while the fourth imposes the electroneutrality condition via the Lagrange multiplier ν\nu, and ψα\psi_{\alpha} is the imposed potential at electrode site α\alpha. The BO stationarity conditions read

∂V∂Qα=0(α=1,…,M),∂V∂ν=∑α=1MQα=0.(20)\frac{\partial V}{\partial Q_{\alpha}}=0\quad(\alpha=1,\ldots,M),\qquad\frac{\partial V}{\partial\nu}=\sum_{\alpha=1}^{M}Q_{\alpha}=0. \tag*{(20)}

They impose the constant-potential conditions and overall electroneutrality. In BO dynamics, the stationary charges are obtained by minimization at each ionic configuration; in MaZe, the same conditions are maintained as holonomic constraints during propagation. In this model, Σs\Sigma_s is the (bordered) Hessian of VV with respect to the electrode charges and ν\nu, which depends only on the fixed electrode geometry and not on the ionic coordinates. Consequently, the mass-zero compressibility vanishes, κ0=−ddtln⁡∣ΣsΣsT∣=0\kappa_0=-\frac{d}{dt}\ln|\Sigma_s\Sigma_s^{\mathrm T}|=0. This property simplifies the statistical description but is not required for the general BO–MaZe correspondence.

Let Q+Q_+ and Q−Q_- denote the total charges of the two electrodes. Since Q++Q−=0Q_++Q_-=0, the capacitor charge and its associated current are

Q(t)=Q+(t)−Q−(t)2,I(t)=Q˙(t).(21)Q(t)=\frac{Q_+(t)-Q_-(t)}{2},\qquad I(t)=\dot{Q}(t). \tag*{(21)}

In MaZe, I(t)I(t) is obtained directly from the constrained charge velocities, which are components of π^\hat{\boldsymbol{\pi}}. In BO dynamics, it is the derivative of the BO stationary charge Q∗(r(t))Q^{*}(\boldsymbol{r}(t)) along the ionic trajectory, evaluated in the following by central finite differences. The velocity correspondence identifies these currents.

The frequency-dependent admittance Y(ω)Y(\omega), which is the linear response function relating the current II flowing through the cell to a small oscillating voltage applied between the two electrodes [8, 9], can be computed from equilibrium fluctuations through two expressions [8]. The current-based Nyquist–Johnson relation is

Y(ω)=β∫0∞⟨δI(0) δI(t)⟩e−iωt dt,(22)Y(\omega)=\beta\int_{0}^{\infty}\langle\delta I(0)\,\delta I(t)\rangle e^{-i\omega t}\,\mathrm{d}t, \tag*{(22)}

while its charge-correlation counterpart is

Y(ω)=β[iω⟨δQ2⟩+ω2∫0∞⟨δQ(0) δQ(t)⟩e−iωt dt].(23)Y(\omega)=\beta\left[i\omega\langle\delta Q^{2}\rangle+\omega^{2}\int_{0}^{\infty}\langle\delta Q(0)\,\delta Q(t)\rangle e^{-i\omega t}\,\mathrm{d}t\right]. \tag*{(23)}

Here β=(kBT)−1\beta=(k_{\mathrm{B}}T)^{-1}, δQ=Q−⟨Q⟩\delta Q=Q-\langle Q\rangle, and δI=I−⟨I⟩\delta I=I-\langle I\rangle. Eq. (22) probes the auxiliary velocities directly, whereas Eq. (23) depends only on the stationary auxiliary coordinates. Comparing both estimators in MaZe and BO therefore tests the dynamical and statistical correspondence at the level of a physical response function. The corresponding impedance is Z(ω)=1/Y(ω)Z(\omega)=1/Y(\omega).

In our simulations, we consider molten LiCl between two aluminum electrodes simulated with MetalWalls [33, 34]. Both electrodes are held at the same null potential, ψα=0\psi_{\alpha}=0 V. The cell contains 500 Li+^{+} and 500 Cl−^{-} ions and two electrodes of 216 fixed Al atoms each, with Lx=Ly=24.30L_{x}=L_{y}=24.30 Å and Lz=57.93L_{z}=57.93 Å. Periodic boundary conditions are applied parallel to the electrodes. The distance between the innermost electrode planes is L=49.83L=49.83 Å. The simulation protocol and interaction models are described in the SM [31]. We compare MaZe (integrated via the algorithm detailed in Figure 1) with a BO reference in which the electrode charges are minimized at every time step using conjugate-gradient.

Figure 3 compares the electrode currents from MaZe charge velocities and from central finite differences of the BO stationary charges, starting from the same initial conditions. For the first 1.2 ps the difference stays at a constant plateau of 5×10−55\times10^{-5} μ\muA (∼4×10−5\sim4\times10^{-5} of the rms current). It then grows exponentially as et/τe^{t/\tau}, with τ≈63\tau\approx63 fs, reaches 10% of the rms current at 1.76 ps, and saturates at ≃2\simeq\sqrt{2} times the rms current, the value for two uncorrelated signals. The separation time is nearly independent of the timestep (1.76 ps for 1 fs and 1.81 ps for 0.25 fs), so it is not set by the integration error but by the onset of the (Lyapunov-like) amplification of small numerical differences caused by the chaotic dynamics of the liquid. Figure 4 compares the equilibrium current autocorrelation functions: MaZe and BO agree within statistical uncertainty as the divergence of the currents affects times longer than the correlation decay. We finally evaluate the admittance using both Eqs. (22) and (23), with one-sided Fourier–Laplace transforms

Difference between the electrode currents from MaZe and BO/CG

Figure 3. Difference between the electrode currents I=Q˙I=\dot{Q} from MaZe and BO/CG for the same initial configuration: ∣IMaZe−IBO/CG∣|I_{\mathrm{MaZe}}-I_{\mathrm{BO/CG}}| (thin line) and its rms in 50 fs bins (dots) over the first 3 ps. The difference is flat (5×10−55\times10^{-5} μ\muA, dotted line) up to ≃1.2\simeq1.2 ps, then grows exponentially as et/τe^{t/\tau} with τ≈63\tau\approx63 fs (thick fit window) and saturates at ≃2 rms(I)\simeq\sqrt{2}\,\mathrm{rms}(I), i.e. the trajectories decorrelate. The dashed line marks 0.1×rms(I)0.1\times\mathrm{rms}(I).

Normalized autocorrelation function of the current fluctuations

Figure 4. Normalized autocorrelation function of the current fluctuations, ⟨δI(0) δI(t)⟩\langle\delta I(0)\,\delta I(t)\rangle, obtained from MaZe dynamics (solid blue) and from the BO/CG reference (dashed red). The shaded areas indicate ±1\pm1 standard deviation over non-overlapping 100 ps blocks.

computed by Filon–Lagrange quadrature with a flat-top Hann taper (details in the SM [31]). Figure 5 compares the real part and the absolute value of the imaginary part from MaZe and BO. The four estimates agree within their 95% confidence intervals across the investigated frequency range. At low frequency, the response is that of a blocking capacitor in series with a resistor, with static capacitances 2.83±0.042.83 \pm0.04 μF/cm2^2 for MaZe and 2.84±0.042.84 \pm0.04 μF/cm2^2 for BO. The figure also shows that the expected quadratic (for the real part) and linear (for the imaginary part) behavior of this quantity is verified in our calculations. At higher frequency, the response is dominated by the bulk properties of the electrolyte, as signaled by the minimum of ∣Im⁡Y∣|\operatorname{Im} Y| at ω≈3×1013\omega\approx3 \times10^{13} rad/s, which corresponds to the change of sign of Im⁡Y\operatorname{Im} Y and lies close to the maximum of Re⁡Y\operatorname{Re} Y (a more detailed comparison with the bulk is given in the SM [31]). Overall, our results confirm the agreement between the current- and charge-correlation estimators, and between the two dynamics, in both the time and frequency domains.

Frequency-dependent admittance of the LiCl–Al cell

Figure 5. Frequency-dependent admittance of the LiCl–Al cell, (a) real part and (b) absolute value of the imaginary part, normalised by LxLy/LL_xL_y/L, computed from the current ACF (Eq. (22)) and the charge ACF (Eq. (23)) for MaZe and BO/CG. Black dash-dotted-dotted lines: low-frequency power laws ∝ω2\propto\omega^2 (a) and ∝ω\propto\omega (b). The minimum in (b) near 3×10133 \times10^{13} rad/s is the sign change of Im⁡Y\operatorname{Im} Y. Error bars are 95% confidence intervals. They are omitted around the minimum in (b) because ∣Im⁡Y∣→0|\operatorname{Im} Y| \to0 at the sign change, where the interval becomes comparable to the value itself and the bars cannot be displayed on a logarithmic axis.

Conclusions

We have shown that the velocities of the constrained auxiliary variables in MaZe dynamics coincide with the time derivatives of the BO stationary solutions along the same physical trajectory, and that in Hamiltonian variables the mass-zero limit is regular, with auxiliary momenta and multipliers scaling linearly with the inertia and the velocities remaining explicit. The phase-space compressibility and invariant measure give a statistical description of these velocities, including the equilibrium correlation functions and linear-response relations built on them. In constant-potential molecular dynamics, MaZe and BO give consistent electrode currents, current autocorrelations and frequency-dependent admittance, with agreement between estimators based on current and charge correlations.

The correspondence between MaZe and BO is general: it applies whenever auxiliary variables are defined by smooth stationarity conditions. Examples include induced dipoles in polarizable force fields, and the related shell and Drude-oscillator models, whose time derivatives contribute to the polarization current and hence to infrared and dielectric spectra; fluctuating-charge models, where the charge velocities describe intramolecular charge-transfer currents; electron densities in orbital-free density functional theory, whose velocities give access to electronic currents; and constant-potential electrodes of other geometries, such as nanoporous electrodes in supercapacitors, where the charge-flow dynamics is the quantity of interest. For all cases, the results presented in the present work make it possible to interpret and compute the time derivatives of auxiliary BO variables as dynamical variables within a single constrained-dynamics framework.

Acknowledgments

This work has received funding from the European Union’s Horizon 2020 and Horizon Europe research and innovation programs under the Marie Skłodowska-Curie (grant agreement no. 101119598, FLUXIONIC), as well as from the European Research Council (grant agreement no. 863473).

Supplemental Material

Compressibility of the Flow

We start by deriving the phase-space compressibility of the finite-mass constrained flow in the variables (r,p,s,π)(r,p,s,\pi). The constraint Jacobian and inverse mass matrix are

J=(Σr,Σs),W=(M−100μ−1).(24)J = (\Sigma_r,\Sigma_s), \qquad W = \begin{pmatrix} \mathrm{M}^{-1} & 0 \\ 0 & \mu^{-1} \end{pmatrix}. \tag*{(24)}

with Σs\Sigma_s an (f×f)(f \times f) and Σr\Sigma_r a (f×3N)(f \times3N) matrix. Writing x=(r,s)x=(r,s) and v=x˙=WΠv=\dot{x}=W\Pi, where Π=(p,π)\Pi=(p,\pi), the matrix introduced in Eq. (6) is

Z~=μJWJT=ΣsΣsT+μΣrM−1ΣrT.(25)\widetilde{Z} = \mu J W J^{\mathsf{T}} = \Sigma_s\Sigma_s^{\mathsf{T}}+\mu\Sigma_r\mathrm{M}^{-1}\Sigma_r^{\mathsf{T}}. \tag*{(25)}

Multipliers. Differentiating σ(r,s)=0\sigma(r,s)=0 twice along the flow gives σ¨γ=vTHγv+(Jx¨)γ=0\ddot{\sigma}_\gamma=v^{\mathsf{T}}H_\gamma v+(J\ddot{x})_\gamma=0, with (Hγ)ab=∂2σγ/∂xa∂xb(H_\gamma)_{ab}=\partial^2\sigma_\gamma/\partial x_a\partial x_b. From Eqs. (3) and ∇sV=σ=0\nabla_sV=\sigma=0, x¨=−W(∇rV,0)T−WJTλ\ddot{x}=-W(\nabla_rV,0)^{\mathsf{T}}-WJ^{\mathsf{T}}\lambda. Hence JWJTλ=FJWJ^{\mathsf{T}}\lambda=F with Fα=vTHαv−(ΣrM−1∇rV)αF_\alpha=v^{\mathsf{T}}H_\alpha v-(\Sigma_r\mathrm{M}^{-1}\nabla_rV)_\alpha, as in Eq. (7). Since JWJT=μ−1Z~JWJ^{\mathsf{T}}=\mu^{-1}\widetilde{Z},

λ=μZ~−1F=μγ,(26)\lambda=\mu\widetilde{Z}^{-1}F=\mu\gamma, \tag*{(26)}

which is Eq. (6); μ\mu multiplies a matrix that is regular at μ=0\mu=0. Here v=WΠ=(M−1p,π/μ)v=W\Pi=(\mathrm{M}^{-1}p,\pi/\mu) is regarded as a function of the independent variables (p,π)(p,\pi); on the constraint surface π/μ=π^\pi/\mu=\hat{\pi}, Eq. (5). The phase-space divergence receives contributions only from the momentum equations:

κμ=−μ∑β[∑i(Σr)βi∂γβ∂pi+∑α(Σs)βα∂γβ∂πα].(27)\kappa_\mu=-\mu\sum_\beta\left[\sum_i(\Sigma_r)_{\beta i}\frac{\partial\gamma_\beta}{\partial p_i}+\sum_\alpha(\Sigma_s)_{\beta\alpha}\frac{\partial\gamma_\beta}{\partial\pi_\alpha}\right]. \tag*{(27)}

Define

Dβ=μ∑i(Σr)βi∂∂pi+μ∑α(Σs)βα∂∂πα.(28)D_\beta=\mu\sum_i(\Sigma_r)_{\beta i}\frac{\partial}{\partial p_i}+\mu\sum_\alpha(\Sigma_s)_{\beta\alpha}\frac{\partial}{\partial\pi_\alpha}. \tag*{(28)}

Because Z~\widetilde{Z} is independent of the momenta,

κμ=−∑βγ(Z~−1)βγDβFγ.(29)\kappa_\mu=-\sum_{\beta\gamma}(\widetilde{Z}^{-1})_{\beta\gamma}D_\beta F_\gamma. \tag*{(29)}

Let (Hγ)ab=∂2σγ/(∂xa∂xb)(H_\gamma)_{ab}=\partial^2\sigma_\gamma/(\partial x_a\partial x_b). From Eq. (7),

Fγ=vTHγv−(ΣrM−1∇rV)γ.(30)F_\gamma=v^{\mathsf{T}}H_\gamma v-(\Sigma_r\mathrm{M}^{-1}\nabla_rV)_\gamma. \tag*{(30)}

The second term is independent of the momenta, while

Dβva=μ(WJT)aβ,J˙γa=∑b(Hγ)abvb.(31)D_\beta v_a=\mu(WJ^{\mathsf{T}})_{a\beta}, \qquad\dot{J}_{\gamma a}=\sum_b(H_\gamma)_{ab}v_b. \tag*{(31)}

It follows that

DβFγ=2μ∑ab(Hγ)abvb(WJT)aβ=2μ(JWJ˙T)γβ.(32)D_\beta F_\gamma=2\mu\sum_{ab}(H_\gamma)_{ab}v_b(WJ^{\mathsf{T}})_{a\beta}=2\mu(JW\dot{J}^{\mathsf{T}})_{\gamma\beta}. \tag*{(32)}

Thus,

κμ=−2μTr⁡(Z~−1JWJ˙T).(33)\kappa_\mu=-2\mu\operatorname{Tr}(\widetilde{Z}^{-1}JW\dot{J}^{\mathsf{T}}). \tag*{(33)}

Differentiating Z~=μJWJT\widetilde{Z}=\mu JWJ^{\mathsf{T}} at fixed μ\mu gives

Z~˙=μ(J˙WJT+JWJ˙T).(34)\dot{\widetilde{Z}}=\mu(\dot{J}WJ^{\mathsf{T}}+JW\dot{J}^{\mathsf{T}}). \tag*{(34)}

Using the symmetry of WW and Z~−1\widetilde{Z}^{-1} and the cyclic property of the trace, we obtain

κμ=−Tr⁡(Z~−1Z~˙)=−ddtln⁡∣Z~∣=−ddtln⁡g,(35)\kappa_\mu=-\operatorname{Tr}(\widetilde{Z}^{-1}\dot{\widetilde{Z}})=-\frac{\mathrm{d}}{\mathrm{d}t}\ln\lvert\widetilde{Z}\rvert=-\frac{\mathrm{d}}{\mathrm{d}t}\ln\sqrt{g}, \tag*{(35)}

where the last equality uses precisely the metric factor of Eq. (14),

g=∣Z~∣.(36)\sqrt{g}=\lvert\widetilde{Z}\rvert. \tag*{(36)}

The momentum derivatives above are taken at fixed coordinates, treating pp and π\pi as independent variables; the velocity constraint is imposed through δ(σ˙)\delta(\dot{\sigma}) in the constrained phase-space measure. If Σs\Sigma_s is nonsingular and the constrained velocities remain finite, the mass-zero limit is

κ0=−ddtln⁡∣ΣsΣsT∣.(37)\kappa_0=-\frac{\mathrm{d}}{\mathrm{d}t}\ln\lvert\Sigma_s\Sigma_s^{\mathsf T}\rvert. \tag*{(37)}

For the constant-potential model, Σs\Sigma_s is independent of time and hence κ0=0\kappa_0=0.

Regular mass-zero limit of the invariant measure

The reduction of the constrained equilibrium measure to the Born–Oppenheimer (BO) density in the mass-zero limit was established in previous work [23, 24]. We include it in this work for completeness, providing a different derivation recast in the Hamiltonian variables used here, where it follows from the regular scaled momenta. We show how the average of Eq. (15) reduces to the BO density as μ→0\mu\to0. Change variables to π=μπ^\pi=\mu\hat{\pi}, so that dπ=μfdπ^\mathrm{d}\pi=\mu^f\mathrm{d}\hat{\pi} (the factor μf\mu^f is common to numerator and denominator and cancels). On the constraint surface the velocity constraint is

δ(σ˙)=δ(ΣrM−1p+Σsπ^)=∣Σs∣−1δ(π^−π^∗(r,p)),π^∗≡−Σs−1ΣrM−1p,(38)\delta(\dot{\sigma})=\delta(\Sigma_rM^{-1}p+\Sigma_s\hat{\pi})=\lvert\Sigma_s\rvert^{-1}\delta(\hat{\pi}-\hat{\pi}_*(r,p)),\qquad\hat{\pi}_*\equiv-\Sigma_s^{-1}\Sigma_rM^{-1}p, \tag*{(38)}

with no dependence on μ\mu. Integrating over π^\hat{\pi} and then over ss with ∫ds δ(σ(r,s))g(s)=g(s∗)/∣Σs(r,s∗)∣\int\mathrm{d}s\,\delta(\sigma(r,s))g(s)=g(s^*)/\lvert\Sigma_s(r,s^*)\rvert gives, at finite μ\mu,

⟨A⟩μ=1Nμ∫dr dp ∣Z~∣∣Σs∣2PμA∣s=s∗(r), π^=π^∗(r,p).(39)\langle A\rangle_\mu=\frac{1}{\mathcal{N}_\mu}\int\mathrm{d}r\,\mathrm{d}p\,\frac{\lvert\widetilde{Z}\rvert}{\lvert\Sigma_s\rvert^2}P_\mu A\bigg|_{s=s^*(r),\,\hat{\pi}=\hat{\pi}_*(r,p)}. \tag*{(39)}

By the matrix determinant lemma, ∣Z~∣=∣ΣsΣsT∣∣1+μT∣\lvert\widetilde{Z}\rvert=\lvert\Sigma_s\Sigma_s^{\mathsf T}\rvert\lvert1+\mu T\rvert with T=(ΣsΣsT)−1ΣrM−1ΣrTT=(\Sigma_s\Sigma_s^{\mathsf T})^{-1}\Sigma_rM^{-1}\Sigma_r^{\mathsf T}, so that ∣Z~∣/∣Σs∣2=∣1+μT∣→1\lvert\widetilde{Z}\rvert/\lvert\Sigma_s\rvert^2=\lvert1+\mu T\rvert\to1 as μ→0\mu\to0. In the limit the physical variables (r,p)(r,p) are therefore distributed according to P0(r,p,s∗(r),π^∗)P_0(r,p,s^*(r),\hat{\pi}_*), the BO density for the chosen ensemble, with no residual metric factor, and the auxiliary velocity is the slaved value π^∗=s˙∗\hat{\pi}_*=\dot{s}^*. The same steps applied to Eq. (17), where ∣Z~∣→∣ΣsΣsT∣\lvert\widetilde{Z}\rvert\to\lvert\Sigma_s\Sigma_s^{\mathsf T}\rvert, give the weight ∣Σs∣δ(σ)δ(π^−π^∗)\lvert\Sigma_s\rvert\delta(\sigma)\delta(\hat{\pi}-\hat{\pi}_*) quoted in the main text. For finite μ\mu the metric contributes ∣1+μT∣\lvert1+\mu T\rvert, where the O(μ)O(\mu) term does not vanish identically for generic Σr\Sigma_r. Furthermore, the Hamiltonian contains a modified inertia for the physical variables, reading Hμ=12pT[1−μΣs−1Σr]M−1p+V(r,s)H_\mu=\frac{1}{2}p^{\mathsf T}[1-\mu\Sigma_s^{-1}\Sigma_r]M^{-1}p+V(r,s).

Details of the constant-potential system

The constraints are σα=∂U/∂Qα\sigma_\alpha=\partial U/\partial Q_\alpha (α=1,…,M)(\alpha=1,\ldots,M) and σM+1=∂U/∂ν\sigma_{M+1}=\partial U/\partial\nu, with

U(r,Q,ν)=UC−∑α=1MψαQα+ν∑α=1MQα,(40)U(r,Q,\nu)=U_C-\sum_{\alpha=1}^{M}\psi_\alpha Q_\alpha+\nu\sum_{\alpha=1}^{M}Q_\alpha, \tag*{(40)}

and s=(Q1,…,QM,ν)s=(Q_1,\ldots,Q_M,\nu). The matrices Σs=∂σ/∂s\Sigma_s=\partial\sigma/\partial s and Σr=∂σ/∂r\Sigma_r=\partial\sigma/\partial r only require derivatives of the Coulomb energy UCU_C. With an Ewald-type splitting, UCU_C separates into ion–ion, ion–electrode and electrode–electrode contributions, UC=UCqq(r)+UCqQ(r,Q)+UCQQ(Q)U_C=U_C^{qq}(r)+U_C^{qQ}(r,Q)+U_C^{QQ}(Q). In their bare (non-periodic) form these read

UCQQ(Q)=∑α∑β<αQαQβRαβerf⁡[ηαβRαβ]+∑αηα2πQα2,U_C^{QQ}(Q)=\sum_{\alpha}\sum_{\beta<\alpha}\frac{Q_\alpha Q_\beta}{R_{\alpha\beta}}\operatorname{erf}\left[\eta_{\alpha\beta}R_{\alpha\beta}\right]+\sum_{\alpha}\frac{\eta_\alpha}{\sqrt{2\pi}}Q_\alpha^2,
UCqQ(r,Q)=∑α∑iQαqi∣Rα−ri∣erf⁡[ηα∣Rα−ri∣],U_C^{qQ}(r,Q)=\sum_{\alpha}\sum_i\frac{Q_\alpha q_i}{\lvert R_\alpha-r_i\rvert}\operatorname{erf}\left[\eta_\alpha\lvert R_\alpha-r_i\rvert\right],
UCqq(r)=∑i∑j<iqiqjrij.(41)U_C^{qq}(r)=\sum_i\sum_{j<i}\frac{q_iq_j}{r_{ij}}. \tag*{(41)}

with qiq_i the ionic charges, RαR_\alpha the (fixed) electrode-site positions, Rαβ=∣Rα−Rβ∣R_{\alpha\beta} = |R_\alpha- R_\beta|, rij=∣ri−rj∣r_{ij} = |r_i-r_j|, ηα\eta_\alpha the inverse width of the Gaussian charge on electrode site α\alpha (charge density ∝e−ηα2r2\propto e^{-\eta_\alpha^2r^2}), and ηαβ=ηαηβ/ηα2+ηβ2\eta_{\alpha\beta} = \eta_\alpha\eta_\beta/\sqrt{\eta_\alpha^2+\eta_\beta^2} (= η/2\eta/\sqrt{2} for equal widths η\eta). Here and in the following, Coulomb interactions are written in atomic units (4πϵ0=14\pi\epsilon_0 = 1). The periodic (Ewald) form of these terms is given below, with κc\kappa_c the Ewald splitting parameter. Since UCQQU_C^{QQ} does not depend on QQ, UCqQU_C^{qQ} is linear in QQ, and UCqQU_C^{qQ} does not depend on rr, Σs\Sigma_s only involves UCQQU_C^{QQ}, and Σr\Sigma_r only involves UCqQU_C^{qQ}.

Σs\Sigma_s: derivatives with respect to sis_i

The auxiliary Hessian is the bordered electrode–electrode Coulomb matrix

Σs=(U11⋯U1M1⋮⋱⋮⋮UM1⋯UMM11⋯10),Uαβ≡∂2UC∂Qα∂Qβ,(42)\Sigma_s = \begin{pmatrix} U_{11} & \cdots& U_{1M} & 1 \\ \vdots& \ddots& \vdots& \vdots\\ U_{M1} & \cdots& U_{MM} & 1 \\ 1 & \cdots& 1 & 0 \end{pmatrix}, \qquad U_{\alpha\beta} \equiv\frac{\partial^2 U_C}{\partial Q_\alpha\partial Q_\beta}, \tag*{(42)}

whose nontrivial block UαβU_{\alpha\beta} depends only on the fixed electrode geometry {Rα}\{R_\alpha\}, on the box and on ηα\eta_\alpha, κc\kappa_c.

Electrode–electrode contribution UCQQU_C^{QQ}. It is split into short-range, long-range (k=0k = 0 and k≠0k \ne0), and self-energy terms,

UCQQ=UsrQQ+Ulr,0QQ+Ulr,∗QQ+UselfQQ.(43)U_C^{QQ} = U_{\mathrm{sr}}^{QQ} + U_{\mathrm{lr},0}^{QQ} + U_{\mathrm{lr},*}^{QQ} + U_{\mathrm{self}}^{QQ}. \tag*{(43)}

The double sums run over ordered pairs (α,β)(\alpha,\beta), which is why the short-range term carries a factor 12\frac{1}{2} and the Hessians below differ from the prefactors of UCU_C accordingly.

Short range. With ραβ≡∣R⃗αβ+m⃗∣\rho_{\alpha\beta} \equiv|\vec{R}_{\alpha\beta}+\vec{m}| (m⃗\vec{m} the in-plane lattice vector labelled by nn; the prime excludes n=0n=0 when α=β\alpha=\beta) and Δαβ(ρ)≡erfc⁡[κcρ]−erfc⁡[ηαβρ]\Delta_{\alpha\beta}(\rho) \equiv\operatorname{erfc}[\kappa_c\rho]-\operatorname{erfc}[\eta_{\alpha\beta}\rho],

UsrQQ=12∑α,βM∑n′QαQβραβΔαβ(ραβ),(44)U_{\mathrm{sr}}^{QQ} = \frac{1}{2}\sum_{\alpha,\beta}^{M}\sum_n' \frac{Q_\alpha Q_\beta}{\rho_{\alpha\beta}}\Delta_{\alpha\beta}(\rho_{\alpha\beta}), \tag*{(44)}
∂2UsrQQ∂Qα∂Qβ=∑n′Δαβ(ραβ)ραβ.(45)\frac{\partial^2 U_{\mathrm{sr}}^{QQ}}{\partial Q_\alpha\partial Q_\beta} = \sum_n' \frac{\Delta_{\alpha\beta}(\rho_{\alpha\beta})}{\rho_{\alpha\beta}}. \tag*{(45)}

Long range, k=0k=0. With G(ζ)≡e−κc2ζ2/κc+π ζerf⁡[κcζ]\mathcal{G}(\zeta) \equiv e^{-\kappa_c^2\zeta^2}/\kappa_c+\sqrt{\pi}\,\zeta\operatorname{erf}[\kappa_c\zeta],

Ulr,0QQ=−πLxLy∑α,βMQαQβG(Zαβ),(46)U_{\mathrm{lr},0}^{QQ} = -\frac{\sqrt{\pi}}{L_xL_y}\sum_{\alpha,\beta}^{M}Q_\alpha Q_\beta\mathcal{G}(Z_{\alpha\beta}), \tag*{(46)}
∂2Ulr,0QQ∂Qα∂Qβ=−2πLxLyG(Zαβ).(47)\frac{\partial^2 U_{\mathrm{lr},0}^{QQ}}{\partial Q_\alpha\partial Q_\beta} = -\frac{2\sqrt{\pi}}{L_xL_y}\mathcal{G}(Z_{\alpha\beta}). \tag*{(47)}

Long range, k≠0k\ne0. With K(h,u)≡e−(h2+u2)/4κc2/(h2+u2)\mathcal{K}(h,u)\equiv e^{-(h^2+u^2)/4\kappa_c^2}/(h^2+u^2), which is even in (h~,u)(\tilde{h},u) so that the sums below are real,

Ulr,∗QQ=1LxLy∑α,βMQαQβ∫−∞∞du∑h≠0K(h,u)×exp⁡[i(h~⋅R~αβ+uZαβ)],(48)U_{\mathrm{lr},*}^{QQ} = \frac{1}{L_xL_y}\sum_{\alpha,\beta}^{M}Q_\alpha Q_\beta\int_{-\infty}^{\infty}du\sum_{h\ne0}\mathcal{K}(h,u)\times\exp\left[i\left(\tilde{h}\cdot\tilde{R}_{\alpha\beta}+uZ_{\alpha\beta}\right)\right], \tag*{(48)}
∂2Ulr,∗QQ∂Qα∂Qβ=2LxLy∫−∞∞du∑h≠0K(h,u)×cos⁡(h~⋅R~αβ+uZαβ).(49)\frac{\partial^2 U_{\mathrm{lr},*}^{QQ}}{\partial Q_\alpha\partial Q_\beta} = \frac{2}{L_xL_y}\int_{-\infty}^{\infty}du\sum_{h\ne0}\mathcal{K}(h,u)\times\cos\left(\tilde{h}\cdot\tilde{R}_{\alpha\beta}+uZ_{\alpha\beta}\right). \tag*{(49)}

Self energy.

UselfQQ=∑α=1M(ηα2π−κcπ)Qα2,(50)U_{\mathrm{self}}^{QQ} = \sum_{\alpha=1}^{M}\left(\frac{\eta_\alpha}{\sqrt{2\pi}}-\frac{\kappa_c}{\sqrt{\pi}}\right)Q_\alpha^2, \tag*{(50)}
∂2UselfQQ∂Qα2=2(ηα2π−κcπ).(51)\frac{\partial^2 U_{\mathrm{self}}^{QQ}}{\partial Q_\alpha^2} = 2\left(\frac{\eta_\alpha}{\sqrt{2\pi}}-\frac{\kappa_c}{\sqrt{\pi}}\right). \tag*{(51)}

Σr\Sigma_r: derivatives with respect to rir_i

The elements of Σr\Sigma_r are

∂σα∂ri=∂∂ri∂U∂Qα=∂2U∂ri∂Qα,(52)\frac{\partial\sigma_\alpha}{\partial r_i} = \frac{\partial}{\partial r_i}\frac{\partial U}{\partial Q_\alpha} = \frac{\partial^2 U}{\partial r_i \partial Q_\alpha}, \tag*{(52)}
∂σM+1∂ri=∂∂ri∂U∂ν=0,(53)\frac{\partial\sigma_{M+1}}{\partial r_i} = \frac{\partial}{\partial r_i}\frac{\partial U}{\partial\nu} = 0, \tag*{(53)}

because σM+1=∑αQα\sigma_{M+1} = \sum_\alpha Q_\alpha does not depend on r\boldsymbol{r}.

Electrode–ion contribution UCqQU_C^{qQ}.

UCqQ=UsrqQ+Ulr,0qQ+Ulr,∗qQ.(54)U_C^{qQ} = U_{sr}^{qQ} + U_{lr,0}^{qQ} + U_{lr,*}^{qQ}. \tag*{(54)}

Each ion–electrode pair appears twice in the sum over ordered pairs of all particles, which gives the factors below.

Short range. With d⃗≡r⃗i−R⃗α+m⃗\vec{d} \equiv\vec{r}_i - \vec{R}_\alpha+ \vec{m}, d≡∣d⃗∣d \equiv|\vec{d}| and Δα(d)≡erfc⁡[κcd]−erfc⁡[ηαd]\Delta_\alpha(d) \equiv\operatorname{erfc}[\kappa_c d] - \operatorname{erfc}[\eta_\alpha d],

UsrqQ=∑iN∑αM∑nqiQαdΔα(d),(55)U_{sr}^{qQ} = \sum_{i}^{N} \sum_{\alpha}^{M} \sum_n \frac{q_i Q_\alpha}{d}\Delta_\alpha(d), \tag*{(55)}
∂2UsrqQ∂r⃗i∂Qα=∑nqid⃗d2[−Δα(d)d−2κcπe−κc2d2+2ηαπe−ηα2d2].(56)\frac{\partial^2 U_{sr}^{qQ}}{\partial\vec{r}_i \partial Q_\alpha} = \sum_n \frac{q_i \vec{d}}{d^2}\left[-\frac{\Delta_\alpha(d)}{d} - \frac{2\kappa_c}{\sqrt{\pi}}e^{-\kappa_c^2d^2} + \frac{2\eta_\alpha}{\sqrt{\pi}}e^{-\eta_\alpha^2d^2}\right]. \tag*{(56)}

Long range, k=0k = 0. Using G\mathcal{G} as above,

Ulr,0qQ=−2πLxLy∑iN∑αMqiQαG(zi−Zα),(57)U_{lr,0}^{qQ} = -\frac{2\sqrt{\pi}}{L_xL_y}\sum_i^N \sum_\alpha^M q_i Q_\alpha\mathcal{G}(z_i-Z_\alpha), \tag*{(57)}

which does not depend on xi,yix_i,y_i, and, since G′(ζ)=πerf⁡[κcζ]\mathcal{G}'(\zeta) = \sqrt{\pi}\operatorname{erf}[\kappa_c\zeta],

∂2Ulr,0qQ∂zi∂Qα=−2πLxLyqierf⁡[κc(zi−Zα)].(58)\frac{\partial^2 U_{lr,0}^{qQ}}{\partial z_i \partial Q_\alpha} = -\frac{2\pi}{L_xL_y}q_i\operatorname{erf}\left[\kappa_c(z_i-Z_\alpha)\right]. \tag*{(58)}

Long range, k≠0k \ne0. With R~α=(Xα,Yα)\widetilde{R}_\alpha= (X_\alpha,Y_\alpha), r~i=(xi,yi)\widetilde{r}_i = (x_i,y_i) and Φiα≡h~⋅(R~α−r~i)+u(Zα−zi)\Phi_{i\alpha} \equiv\widetilde{h}\cdot(\widetilde{R}_\alpha-\widetilde{r}_i)+u(Z_\alpha-z_i),

Ulr,∗qQ=2LxLy∑iN∑αMqiQα∫−∞∞du∑h≠0K(h,u)cos⁡Φiα,(59)U_{lr,*}^{qQ} = \frac{2}{L_xL_y}\sum_i^N \sum_\alpha^M q_iQ_\alpha\int_{-\infty}^{\infty}du\sum_{h\ne0}\mathcal{K}(h,u)\cos\Phi_{i\alpha}, \tag*{(59)}
∂2Ulr,∗qQ∂r⃗i∂Qα=2qiLxLy∫−∞∞du∑h≠0K(h,u)sin⁡Φiα×{h~for x,y,ufor z.(60)\frac{\partial^2 U_{lr,*}^{qQ}}{\partial\vec{r}_i \partial Q_\alpha} = \frac{2q_i}{L_xL_y}\int_{-\infty}^{\infty}du\sum_{h\ne0}\mathcal{K}(h,u)\sin\Phi_{i\alpha}\times \begin{cases} \widetilde{h} & \text{for } x,y,\\ u & \text{for } z. \end{cases} \tag*{(60)}

Simulation Protocol and Comparison with the Bulk

Following Ref. 24, all simulations in this work, including the bulk reference described below, use the same protocol for equilibration and production. After an NVT equilibration at 1500 K with a Nosé–Hoover chain thermostat, we perform NVE production runs of 1 ns with a 1 fs timestep. Independent MaZe and Born–Oppenheimer runs of the cell are started from the same equilibrated configuration, with ion velocities redrawn from a Maxwell–Boltzmann distribution at 1500 K, and are used to collect statistics. The one-sided Fourier–Laplace transforms in Eqs. (22) and (23) were evaluated by Filon–Lagrange quadrature [8], with a flat-top Hann taper applied to suppress long-time statistical noise [9]. We use two windows: 5 ps (flat for the first 1.5 ps) above 1.5×10121.5 \times10^{12} rad/s, and 20 ps (flat for the first 5 ps) below. Low frequencies are determined by the long-time part of the autocorrelation functions, where the signal has decayed and the statistical noise dominates, the larger window corrects for this. The expected low-frequency behaviour follows from the blocking capacitor in series with a resistor [8], Y(ω)=iωC/(1+iωRC)Y(\omega) = i\omega C/(1+i\omega RC), which gives Im⁡Y≃ωC\operatorname{Im}Y \simeq\omega C and Re⁡Y≃RC2ω2\operatorname{Re}Y \simeq RC^2\omega^2 for ωRC≪1\omega RC \ll1. In the current autocorrelation, Re⁡Y∝ω\operatorname{Re}Y \propto\omega is the small remainder of a cancellation between positive and negative parts (the blocking electrodes imply a vanishing zero-frequency conductance, R∫0∞⟨δI(0)δI(t)⟩ dt=0R\int_0^\infty\langle\delta I(0)\delta I(t)\rangle\,dt=0), which a short taper breaks, so a longer window is needed; at higher frequency the longer window only adds noise. Each 1 ns trajectory was divided into ten non-overlapping blocks of 100 ps. For each method (MaZe and BO/CG) we pooled the blocks of seven independent trajectories, giving 70 blocks per method.

To interpret the response of the cell over the whole frequency range, we compared it with a simulation of the molten salt in the absence of electrodes. The bulk reference is a fully periodic box without electrodes, containing the same 500 Li+^{+} and 500 Cl−^{-} ions and the same interaction potential as the cell, in a box of 24.30 ×\times 24.30 ×\times 46.87 Å3^{3}.

To compare the cell with the bulk we need to define an effective slab thickness for the liquid. For dielectric liquids this can be done by locating a dielectric dividing surface (DDS) at each interface, which separates the electrode from a liquid with a well-defined bulk dielectric response [8]. In a dilute electrolyte, the DDS of the pure solvent has been used to define the effective slab thickness, even though in that case the response arises not only from the polar solvent but also from ionic transport [9]. For a conducting liquid such as molten LiCl this construction cannot be used: the liquid screens the electrodes, so the polarization is not localised in the bulk of the slab and no dielectric dividing surface can be defined. We therefore introduce an effective thickness deff=L−2wd_{\mathrm{eff}} = L - 2w, where LL is the distance between the innermost electrode planes and ww is the width of the ion-depleted layer at each interface, taken from the Gibbs dividing surface of the Li+^{+} and Cl−^{-} density profiles. In our simulations w=1.34w = 1.34 Å, so that deff=47.15d_{\mathrm{eff}} = 47.15 Å for L=49.83L = 49.83 Å. Varying ww between 1 and 2 Å changes our results by less than 3%, and neither the bulk resistivity nor the static capacitance depends on this choice. The frequency-dependent conductivity of the bulk is obtained from the Green–Kubo relation

σ(ω)=β3V∑α=x,y,z∫0∞⟨Jα(t)Jα(0)⟩e−iωt dt,J(t)=∑iqivi(t),(61)\sigma(\omega) = \frac{\beta}{3\mathcal{V}} \sum_{\alpha=x,y,z} \int_{0}^{\infty} \langle J_{\alpha}(t)J_{\alpha}(0)\rangle e^{-i\omega t}\,\mathrm{d}t,\qquad\mathbf{J}(t) = \sum_i q_i\mathbf{v}_i(t), \tag*{(61)}

where V\mathcal{V} is the volume of the bulk simulation box, qiq_i and vi\mathbf{v}_i are the charge and velocity of ion ii, and β=1/kBT\beta= 1/k_{\mathrm{B}}T, with the same procedure used for the cell.

Figure S1 compares the cell impedance rescaled by the geometry of the liquid slab, Z(ω)Ael/deffZ(\omega) A_{\mathrm{el}}/d_{\mathrm{eff}}, with the bulk resistivity 1/σ(ω)1/\sigma(\omega) of molten LiCl, where Ael=LxLyA_{\mathrm{el}} = L_xL_y is the electrode area, deffd_{\mathrm{eff}} is the effective thickness of the liquid slab defined above, and σ(ω)\sigma(\omega) is the frequency-dependent conductivity of the bulk liquid obtained from the separate bulk simulation. The comparison follows from the picture of the cell as the bulk liquid in series with the interfacial capacitance [9],

Impedance of the LiCl–Al cell compared with bulk LiCl

Figure S1. Impedance of the LiCl–Al cell (MaZe) compared with bulk LiCl, in a slab of effective thickness deffd_{\mathrm{eff}} (deff=L−2wd_{\mathrm{eff}} = L - 2w, see the text): (a) Re⁡Z\operatorname{Re} Z and (b) ∣Im⁡Z∣\lvert\operatorname{Im} Z\rvert, both multiplied by LxLy/deffL_x L_y/d_{\mathrm{eff}} so that they can be compared directly with the bulk resistivity. The inset in (a) magnifies the low-frequency region on a linear scale. At low frequency ∣Im⁡Z∣\lvert\operatorname{Im} Z\rvert of the cell diverges as 1/ω1/\omega because of the interfacial capacitance, which is absent in the bulk; above ωRC\omega_{RC} the two curves coincide. The minima of ∣Im⁡Z∣\lvert\operatorname{Im} Z\rvert near 3×1013 rad/s3 \times10^{13}\ \mathrm{rad}/\mathrm{s} correspond to the sign change of Im⁡Z\operatorname{Im} Z. Error bars are 95% confidence intervals. The bulk Im⁡Z\operatorname{Im} Z is small and compatible with zero within its 95% confidence interval over most of the range between 101210^{12} and 1.6×1013 rad/s1.6 \times10^{13}\ \mathrm{rad}/\mathrm{s}, which is why its error bars in (b) extend down past the lower edge of the logarithmic axis.

Zcell(ω)≃deffAelσ(ω)+1iωCint,(62)Z_{\mathrm{cell}}(\omega) \simeq\frac{d_{\mathrm{eff}}}{A_{\mathrm{el}}\sigma(\omega)} + \frac{1}{i\omega C_{\mathrm{int}}}, \tag*{(62)}

so that ZcellAel/deff≃1/σ(ω)Z_{\mathrm{cell}}A_{\mathrm{el}}/d_{\mathrm{eff}} \simeq1/\sigma(\omega) wherever the interfacial term 1/(ωCint)1/(\omega C_{\mathrm{int}}) is negligible compared with the bulk term. The capacitance CintC_{\mathrm{int}} arises only from the electrode–electrolyte interfaces and is absent in the bulk liquid, which has no electrodes and whose response is entirely contained in σ(ω)\sigma(\omega).

The real part is set by the bulk: Re⁡Zcell\operatorname{Re} Z_{\mathrm{cell}} equals 1.4×10−3 Ω m1.4 \times10^{-3}\,\Omega\,\mathrm{m} at low frequency, within about 10% of the bulk value 1.3×10−3 Ω m1.3 \times10^{-3}\,\Omega\,\mathrm{m}, with an interfacial excess Re⁡Zint=Re⁡(Zcell−Zbulk)\operatorname{Re} Z_{\mathrm{int}} = \operatorname{Re}(Z_{\mathrm{cell}} - Z_{\mathrm{bulk}}) of about 15% below 8×10128 \times10^{12} rad/s. This indicates that the resistance of the cell is dominated by the bulk electrolyte. The imaginary part is instead dominated by the interface at low frequency, where ∣Im⁡Zcell∣≃1/(ωCint)\lvert\operatorname{Im} Z_{\mathrm{cell}}\rvert\simeq1/(\omega C_{\mathrm{int}}) reaches 2.5×10−2 Ω m2.5 \times10^{-2}\,\Omega\,\mathrm{m} at ω=3×1011\omega= 3 \times10^{11} rad/s, more than two orders of magnitude above the bulk value at the same frequency, which is of order 10−4 Ω m10^{-4}\,\Omega\,\mathrm{m} or below. The bulk Im⁡Z\operatorname{Im} Z is statistically indistinguishable from zero below ω≃1.6×1013\omega\simeq1.6 \times10^{13} rad/s (95% CI), as expected since the bulk behaves as a plain resistor at low frequency, so its impedance is real. The minimum of ∣Im⁡Zcell∣\lvert\operatorname{Im} Z_{\mathrm{cell}}\rvert at ω≈3×1013\omega\approx3 \times10^{13} rad/s corresponds to the sign change of Im⁡Zcell\operatorname{Im} Z_{\mathrm{cell}} (and of Im⁡Y\operatorname{Im} Y). The cell and bulk impedances merge for ω≳3×1013\omega\gtrsim3 \times10^{13} rad/s, i.e. above the sign change of Im⁡Y(ω)\operatorname{Im} Y(\omega) (and of −Im⁡Zcell-\operatorname{Im} Z_{\mathrm{cell}}), when the capacitive term is smaller than the bulk contribution.

References

  1. [1]M. Pearson, E. Smargiassi, and P. A. Madden, Ab initio molecular dynamics with an orbital-free density functional, J. Phys.: Condens. Matter 5, 3221 (1993).
  2. [2]D. Marx and J. Hutter, Ab Initio Molecular Dynamics: Basic Theory and Advanced Methods (Cambridge University Press, Cambridge, 2012).
  3. [3]B. G. Dick and A. W. Overhauser, Theory of the dielectric constants of alkali halide crystals, Phys. Rev. 112, 90 (1958).DOI
  4. [4]G. Jacucci, I. R. McDonald, and A. Rahman, Effects of polarization on equilibrium and dynamic properties of ionic systems, Phys. Rev. A 13, 1581 (1976).DOI
  5. [5]M. Wilson and P. A. Madden, Polarization effects in ionic systems from first principles, J. Phys.: Condens. Matter 5, 2687 (1993).DOI
  6. [6]M. Wilson, P. A. Madden, N. C. Pyper, and J. H. Harding, Molecular dynamics simulations of compressible ions, J. Chem. Phys. 104, 8068 (1996).DOI
  7. [7]J. I. Siepmann and M. Sprik, Influence of surface topology and electrostatic potential on water/electrode systems, J. Chem. Phys. 102, 511 (1995).DOI
  8. [8]G. Pireddu and B. Rotenberg, Frequency-dependent impedance of nanocapacitors from electrode charge fluctuations as a probe of electrolyte dynamics, Phys. Rev. Lett. 130, 098001 (2023).
  9. [9]G. Pireddu, C. J. Fairchild, S. P. Niblett, S. J. Cox, and B. Rotenberg, Impedance of nanocapacitors from molecular simulations to understand the dynamics of confined electrolytes, Proc. Natl. Acad. Sci. U.S.A. 121, e2318157121 (2024).DOI
  10. [10]D. Kivelson and P. Madden, Theory of dielectric relaxation, Mol. Phys. 30, 1749 (1975).DOI
  11. [11]J. M. Caillol, D. Levesque, and J. J. Weis, Electrical properties of polarizable ionic solutions. I. Theoretical aspects, J. Chem. Phys. 91, 5544 (1989).DOI
  12. [12]J. M. Caillol, D. Levesque, and J. J. Weis, Electrical properties of polarizable ionic solutions. II. Computer simulation results, J. Chem. Phys. 91, 5555 (1989).DOI
  13. [13]M. Sega, S. S. Kantorovich, A. Arnold, and C. Holm, On the calculation of the dielectric properties of liquid ionic systems, in Recent Advances in Broadband Dielectric Spectroscopy, NATO Science for Peace and Security Series B: Physics and Biophysics, edited by Y. P. Kalm ykov (Springer Netherlands, Dordrecht, 2013) pp. 103–122.DOI
  14. [14]R. Car and M. Parrinello, Unified approach for molecular dynamics and density-functional theory, Phys. Rev. Lett. 55, 2471 (1985).pubmed.ncbi.nlm.nih.gov/10032153
  15. [15]J. Kolafa, Time-reversible always stable predictor-corrector method for molecular dynamics of polarizable molecules, J. Comput. Chem. 25, 335 (2004).pubmed.ncbi.nlm.nih.gov/14696069
  16. [16]T. D. Kühne, M. Krack, F. R. Mohamed, and M. Parrinello, Efficient and accurate Car–Parrinello-like approach to Born–Oppenheimer molecular dynamics, Phys. Rev. Lett. 98, 066401 (2007).pubmed.ncbi.nlm.nih.gov/17358962
  17. [17]A. M. N. Niklasson, C. J. Tymczak, and M. Challacombe, Time-reversible Born–Oppenheimer molecular dynamics, Phys. Rev. Lett. 97, 123001 (2006).DOI
  18. [18]A. M. N. Niklasson, Extended Lagrangian Born–Oppenheimer molecular dynamics for orbital-free density-functional theory and polarizable charge equilibration models, J. Chem. Phys. 154, 054101 (2021).
  19. [19]P. Tangney and S. Scandolo, How well do Car–Parrinello simulations reproduce the Born–Oppenheimer surface? Theory and examples, J. Chem. Phys. 116, 14 (2002).DOI
  20. [20]P. Tangney, On the theory underlying the Car–Parrinello method and the role of the fictitious mass parameter, J. Chem. Phys. 124, 044111 (2006).DOI
  21. [21]I.-F. W. Kuo, C. J. Mundy, M. J. McGrath, and J. I. Siepmann, Time-dependent properties of liquid water: A comparison of Car–Parrinello and Born–Oppenheimer molecular dynamics simulations, J. Chem. Theory Comput. 2, 1274 (2006).DOI
  22. [22]S. W. Ong, E. S. Tok, and H. C. Kang, Vibrational frequencies in Car–Parrinello molecular dynamics, Phys. Chem. Chem. Phys. 12, 14960 (2010).DOI
  23. [23]S. Bonella, A. Coretti, R. Vuilleumier, and G. Ciccotti, Adiabatic motion and statistical mechanics via mass-zero constrained dynamics, Phys. Chem. Chem. Phys. 22, 10775 (2020).DOI
  24. [24]A. Coretti, L. Scalfi, C. Bacon, B. Rotenberg, R. Vuilleumier, G. Ciccotti, M. Salanne, and S. Bonella, Mass-zero constrained molecular dynamics for electrode charges in simulations of electrochemical systems, J. Chem. Phys. 152, 194701 (2020).DOI
  25. [25]A. Coretti, S. Bonella, and G. Ciccotti, Communication: Constrained molecular dynamics for polarizable models, J. Chem. Phys. 149, 191102 (2018).DOI
  26. [26]A. Coretti, T. J. Baird, R. Vuilleumier, and S. Bonella, Mass-zero constrained dynamics for simulations based on orbital-free density functional theory, J. Chem. Phys. 157, 214110 (2022).DOI
  27. [27]D. D. Girardier, A. Coretti, G. Ciccotti, and S. Bonella, Mass-zero constrained dynamics and statistics for the shell model in magnetic field, Eur. Phys. J. B 94, 158 (2021).
  28. [28]We note that previous solutions of MaZe dynamics employed a Verlet algorithm for the auxiliary variables, thus requiring only SHAKE to solve the constraints. The focus on the auxiliary velocities requires the velocity Verlet, combined with SHAKE and RATTLE, integrator introduced in this work.
  29. [29]M. E. Tuckerman, C. J. Mundy, and G. J. Martyna, On the classical statistical mechanics of non-Hamiltonian systems, Europhys. Lett. 45, 149 (1999).DOI
  30. [30]M. E. Tuckerman, Y. Liu, G. Ciccotti, and G. J. Martyna, Non-Hamiltonian molecular dynamics: Generalizing Hamiltonian phase space principles to non-Hamiltonian systems, J. Chem. Phys. 115, 1678 (2001).DOI
  31. [31]See Supplemental Material, included at the end of this document, for the derivation of the phase-space compressibility of the constrained flow, the regular mass-zero limit of the invariant measure, the details of the constant-potential electrode model, the simulation protocol, and the comparison of the cell impedance with the bulk liquid.
  32. [32]C. Hartmann, C. Schütte, and G. Ciccotti, Communications: On the linear response of mechanical systems with constraints, J. Chem. Phys. 132, 111103 (2010).DOI
  33. [33]A. Marin-Laflèche, M. Haefele, L. Scalfi, A. Coretti, T. Dufils, G. Jeanmairet, S. K. Reed, A. Serva, R. Berthin, C. Bacon, S. Bonella, B. Rotenberg, P. A. Madden, and M. Salanne. MetalWalls: A classical molecular dynamics software dedicated to the simulation of electrochemical systems, J. Open Source Softw. 5, 2373 (2020).
  34. [34]A. Coretti, C. Bacon, R. Berthin, A. Serva, L. Scalfi, I. Chubak, K. Goloviznina, M. Haefele, A. Marin-Laflèche, B. Rotenberg, S. Bonella, and M. Salanne, MetalWalls: Simulating electrochemical interfaces between polarizable electrolytes and metallic electrodes, J. Chem. Phys. 157, 184801 (2022).DOI

Paper details

vlnc:W_92artxs7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents