본문 펼치기
##### PiNNwall: Heterogeneous Electrode Models from Integrating Machine Learning and Atomistic Simulation
Thomas Dufils <sup>a</sup>, Lisanne Knijff <sup>a</sup>, Yunqi Shao <sup>a</sup>, Chao Zhang <sup>a</sup>
_aDepartment of Chemistry-Ångström Laboratory, Uppsala University, Lägerhyddsvägen 1, BOX 538, Uppsala, 75121, Sweden_
Abstract
Electrochemical energy storage always involves the capacitive process. The prevailing electrode model used in the molecular
simulation of polarizable electrode-electrolyte systems is the Siepmann-Sprik model developed for perfect metal electrodes. This
model has been recently extended to study the metallicity in the electrode by including the Thomas-Fermi screening length. Nevertheless, a further extension to heterogeneous electrode models requires introducing chemical specificity which does not have
any analytical recipes. Here, we address this challenge by integrating the atomistic machine learning code (PiNN) for generating the base charge and response kernel and the classical molecular dynamics code (MetalWalls) dedicated to the modelling of
electrochemical systems, and this leads to the development of the PiNNwall interface. Apart from the cases of chemically doped
graphene and graphene oxide electrodes as shown in this study, the PiNNwall interface also allows us to probe polarized oxide
surfaces in which both the proton charge and the electronic charge can coexist. Therefore, this work opens the door for modelling
heterogeneous and complex electrode materials often found in energy storage systems.
_Keywords:_ n-doped graphene, graphene oxide, electrochemical double-layer capacitor, machine learning, molecular dynamics
1. Introduction
Electrochemical energy storage systems are indispensable
components for building a sustainable and fossil-free society with infrastructures such as electric vehicles and energy
grids. In particular, supercapacitors and batteries have attracted
an ever-increasing attention in research going from materials
chemistry to cell manufacturing. This is evinced by the 15,374
and 66,561 research articles published between 2020-2022 containing the keywords “supercapacitors” and “batteries” respectively (Source: the Web of Science), and highlighted by the
2019 Nobel Prize in Chemistry. On the other hand, to disentangle such complexity in these systems and to advance the field
through fundamental insight, a physical approach is clearly
needed.
As compared to battery systems, the capacitive charging process is the dominant one in supercapacitors. Indeed, electric
double-layer capacitors (EDLCs) store energy from the electrostatic adsorption of ions on the electrode surface, which leads
to a rapid charge-discharge cycle <sup>1</sup> . In this case, the chargetransfer rate is vanishingly small, and the electrode can be considered as an ideally polarizable electrode <sup>2</sup> . This means chemical reactions and chemisorptions may be excluded from the setting <sup>3</sup>, therefore, force field-based classical molecular dynamics
(MD) is sufficient to simulate EDLCs.
The standard model for describing the charge distribution of
polarizable electrodes is the Siepmann-Sprik model <sup>4</sup> . It was
improved by Reed and Madden <sup>5</sup> to model perfect metal electrodes. Further improvements were done to account for the
_Email address:_ `chao.zhang@kemi.uu.se` (Chao Zhang)
metallicity of the electrode material <sup>6</sup> . This model has the advantage over other methods such as the image charge method <sup>7</sup>
to allow dealing with complex geometries, such as porous and
disordered ones <sup>8</sup> .
Despite being successful for describing both the perfect
metal (PM) electrode and the Thomas-Fermi (TF) electrode, the
Siepmann-Sprik model does not naturally account for chemical
heterogeneity <sup>9,10,11,12,13,14</sup> . This is also true when it comes to
the local effects of electrode geometry and atomic lattice disorder on metallicity. To account for the impact of the chemical
heterogeneity of the electrode material on the response charge
distribution, our approach here is to integrate machine learning
(ML) and atomistic simulation with the PiNNwall interface, as
shown in the Fig. 1. The purpose of this interface is to read the
electrode structure from the classical MD code MetalWalls <sup>15,16</sup>,
to compute the charge response kernel and the base charge with
the atomistic ML code PiNN <sup>17</sup> and then pass these info back to
the MetalWalls for computing the response charge at electrode
sites and propagating molecular dynamics simulations. By doing so, we can take advantage of both the efficient implementation of ML models in PiNN and the optimized computation of
electrostatic interactions in MetalWalls.
In the following, we will first outline the computational
methods used in this study including the theoretical formulation. This is followed by the implementation and the validation of the PiNNwall interface to make sure of its technical
soundness. Then, the PiNNwall interface is applied to several
cases of chemically doped graphene and graphene oxide where
the chemical heterogeneity becomes important. In particular,
we have showcased an example of graphene oxide terminated
Figure 1: The flowchart of the PiNNwall interface . The electrode structure is
passed from MetalWalls to PiNN, which computes the charge response kernel
χ using PiNet-χ, and the base charges of the electrode atoms q 0 using PiNetdipole. From the electrolyte configuration and the electrostatic boundary conditions, MetalWalls computes the potential on the electrode sites ∆ν. By combining χ and ∆ν, MetalWalls generates the response charges c at electrode sites,
computes forces and propagates the dynamics of the system using, for example,
the Verlet algorithm.
with deprotonated carboxylic groups where both the electronic
charge and the proton charge are present. Finally, we close up
with a discussion of future works.
2. Computational Methods
_2.1._ _The Siepmann-Sprik model for polarizable electrode_
The basis of the Siepmann-Sprik model is to allow the electrode charges to fluctuate in response to the external potential.
Each response charge of the electrode atoms follows a Gaussian distribution of magnitude _ci_ centered on the position of the
electrode atom R _i_
exp <sup>−ζ</sup> <sup>_i_</sup> <sup>(</sup> <sup>r</sup> <sup>−</sup> <sup>R</sup> <sup>_i_</sup> <sup>)2</sup> (1)
�3/2
to the electrode-electrolyte interaction (so electrostatic interactions between the atomic charges of electrolyte atoms and the
base charges q 0 of electrode atoms plus their van der Waals
interactions). η is the hardness kernel, describing the interaction between response charges and ∆ν is the potential generated
by the electrolyte at the electrode atom sites. It is worth noting that the formulation of the Siepmann-Sprik model shown
here follows the linear response theory used in the chemical
potential equalization method from York and Yang <sup>18</sup> . This is
different from other similar schemes <sup>19,14</sup>, in which the atomic
electronegativtiy were introduced to determine the base charge
distribution _q_ 0. For historical developments on this topic and
the subtle (yet important) difference in various schemes, we
refer interested readers to our previous work <sup>20</sup> and the atomcondensed Kohn-Sham DFT approximated to second order
(ACKS2) paper <sup>21</sup> for extensive discussions and references.
This energy is minimized with respective to the response
charge c at each MD time-step under the constraint of charge
neutrality, which results in a linear relation between the response charge and the external potential as
c = χ∆ν (3)
where χ is the charge response kernel (CRK). It is related to the
hardness kernel through <sup>22</sup>
(4)
χ = −η <sup>−1</sup> + <sup><u>η−1</u></sup> <u>1</u> <sup><u>1</u></sup> <sup>⊤ ⊗</sup> η <sup>−</sup> <sup><u>1</u></sup> <sup>1⊤</sup> <u>1</u> <sup><u>η−1</u></sup>
where the second term of the right-hand side comes out from
the charge neutrality constraint.
The finite-field extension in the case of a constant external
field E 0 is straightforward, which leads to the solution of the
response charge as
c = χ(∆ν − RE 0) (5)
It is worth noting that the external field E 0 equals to the
Maxwell field E under periodic boundary conditions (PBCs) <sup>23</sup> .
_2.2._ _Response charge predictions from PiNet-_ χ
PiNet-χ <sup>20</sup> is a ML model based on PiNet for predicting the
linear response function CRK by regressing the molecular polarizability, as implemented in PiNN code <sup>17</sup> .
In this study, we used PiNet-χ which has been trained on the
QM7b dataset <sup>24</sup> to reproduce molecular polarizabilities computed from the density-functional theory (DFT) <sup>25</sup> with B3LYP
functional <sup>26,27</sup> . Thus it is suited to model electrode materials
composed of the following elements: C, N, O, H, S, Cl, which
will be sufficient to study graphene (or graphite) and its derivatives, being amorphous graphene, nitrogen-doped graphene or
graphene oxides.
There are four different types of models provided by PiNetχ, namely the electronegativity equalization method (EEM)type <sup>28,29</sup>, the Local-type <sup>20</sup>, the EtaInv-type <sup>20</sup> and the ACKS2type <sup>21</sup> . In the following, the essence of each model is summarized and more details can be found in Ref. 20.
ρ _i_ ( r ) = _ci_
π
- <u>ζ</u> _<u>i</u>_
where ζ _i_ is an adjustable parameter related to the Gaussian
width.
The original model can be written as follows
(2)
_U_ = _U_ 0 + _Uq_ 0−∆ν + <sup><u>1</u></sup> 2 <sup>c</sup> <sup>⊤η</sup> <sup>c</sup> <sup>+ ∆ν⊤</sup> <sup>c</sup>
where _U_ 0 corresponds to the energy of electrode atoms in absence of external potential (field). The term _Uq_ 0−∆ν corresponds
2
In the EEM-type model, the hardness matrix η is approximated by η _e_ . η _e_ contains environment-dependent on-site hardness parameters, as well as the Coulomb kernel due to electrostatic interactions. From this, χ can be computed according to
Eq. 4.
In the Local-type model, the polarizability tensor is constructed as the sum of atomic contributions α _i_ . Then, the atomic
contributions α _i_ are constructed from atom-centered predictions χ _i_ in a way that ensures translational and permutational
invariance and rotational covariance. χ _i_ can be seen as atomic
contributions to the CRK, and are used to construct χ in the
end.
In the EtaInv-type model, χ is constructed by predicting directly the softness matrix η <sup>−1</sup> . Besides the nearsightedness
character of η <sup>−1</sup>, this type of models are computational efficient,
since the need for a matrix inversion operation is bypassed.
Finally, in the ACKS2-type model, two quantities are predicted instead, namely χ _s_ and η _e_ . Here, χ _s_ is constructed as a
matrix that is local and trainable using symmetrized pairwise
interactions. η _e_ is done in the same way as in the EEM model.
These two predicted quantities can then be combined to construct χ through the Dyson’s equation, as shown in Ref. 20.
χ = χ _s_
(6)
- I - η _e_ χ _s_ �−1
_2.3._ _Base charge predictions from PiNet-dipole_
PiNet-dipole <sup>30</sup> is a ML model based on PiNet as implemented in PiNN code <sup>17</sup> . The principle behind the PiNet-dipole
model is to regress dipole moment/polarization data instead of
atomic charge data, as the latter can not be uniquely determined.
Here, a variant of PiNet-dipole trained on the QM7b
dataset <sup>24</sup> was used, to be compatible with PiNet-χ. The model
was trained using the following loss function
_2.4._ _Molecular dynamics simulations with MetalWalls_
The MetalWalls code <sup>15,16</sup> was used as the MD engine,
which was built for simulating electrochemical systems with
Siepmann-Sprik-type models. The box lengths in the different
directions are L _x_ = 31.974 Å, L _y_ = 34.080 Å and L _z_ = 70.124
Å. We use 3D PBCs, with Ewald summation used to compute
electrostatic interactions with a real-space cutoff of 15.99 Å, the
same cutoff being used for the Lennard-Jones interactions.
The electrode consists in 7 graphene layers with an interlayer spacing of 3.354 Å, resulting in 2912 carbon atoms, which
leaves a 50 Å space along the z direction for the electrolyte.
For each dopant type, we investigated, on top of the pristine
case, two surface coverages: 10% and 20%. Only the graphene
layers at the interface with the electrolyte are functionalized.
In the case of nitrogen substitution, the atoms are placed randomly under the constraint that two nearest neighbour atoms
cannot be substituted. For the doping with epoxy and hydroxyl
groups, we used the rules for the amorphous graphene oxide
model described in Ref. 31. Lennard-Jones parameters of electrode atoms were taken from the OPLS-AA force field <sup>32</sup> with
the use of the Lorentz-Berthelot mixing rules to compute the
cross pair parameters with the electrolyte.
The simulation setup for the case of graphene oxide with the
carboxyl termination is very similar to the case of protonic double layer at metal-oxide/electrolyte interfaces, as studied previously with finite-field DFTMD <sup>33,34</sup>, in which two sides of electrode take the same amount but opposite types of proton charge.
As for electrolyte, we used an aqueous potassium chloride
solution with a concentration of 1 mol/L, whose initial configuration has been generated with fftool <sup>35</sup> and PACKMOL <sup>36</sup> . This
results in 1901 water molecules and 35 ion pairs. Water was
modelled with the TIP3P model <sup>37</sup> and the ion models of aqueous K <sup>+</sup> and Cl <sup>−</sup> were taken from Ref. 38, which have been validated for high salt concentrations <sup>39</sup> .
The potential-dependence is controlled through the finitefield methods adapted to the Siepmann-Sprik model <sup>40</sup>, using
_E_ field values corresponding to potential differences across the
simulation cell of 0 and 2V. Each simulation consists in an equilibration run of 2 ns followed by a production run of 10 ns. We
used a timestep of 2 fs in the NVT (constant number of particles, constant volume, and constant temperature) ensemble using the Nosé-Hoover thermostat <sup>41,42</sup> with a relaxation time of
0.1 ps and a temperature of 300 K.
3. Implementation and validations of PiNNwall
_3.1._ _Passing_ _the_ _charge_ _response_ _kernel_ _from_ _PiNN_ _to_ _Metal-_
_Walls_
To test that the CRK χ is properly passed to MetalWalls
through the PiNNwall interface, we consider the system described on Fig. 2a: a nitrogen-doped graphene layer with 3D
PBCs. A unit test charge is placed away from the surface on
top of the defect with a distance _d_ . Then, the response charges
were computed with the same EEM-type models using PiNetχ and MetalWalls. Results are shown in Fig. 2b. One can
see that the response charges agree very well with each other
L =
_n_
_i_
2 (7)
|| R _i_ q _i_ - M _i_ || <sup>2</sup>
where R _i_ is a 3× _Ni_ matrix of the atomic coordinates of the configuration _i_ for a molecular configuration containing _Ni_ atoms.
q _i_ represents a column vector of the atomic charge, and M _i_ is
the corresponding dipole moment.
During the charge prediction phase, the base charge q 0 is obtained by
(8)
q 0 = q - <sup><u>1</u></sup> <sup><u>⊗</u></sup> <u>1</u> <sup>⊤</sup> <sup><u>1</u></sup> <u>1</u> <sup><u>⊤</u></sup> <sup><u>q</u></sup>
. This means that the total charge after charge prediction is
evenly spread over all the atoms in the system, resulting in a
zero total charge in q 0.
In the case of protonated and deprotonated carboxyl groups,
the total charge of q 0 of each carboxyl group is either +1 or −1.
This constraint was implemented by adjusting the base charge
of carbon atom in the carboxyl groups.
Details of the validation and the implementation of base
charges predicted from PiNet-dipole can be found in the Section B of Supporting Information.
3
when the test charge is further away from the surface and only
atoms that are second neighbour to the defect and beyond are
considered. This indicates that the CRK is indeed successfully
passed from PiNet-χ to MetalWalls via the PiNNwall interface.
The discrepancies in other cases actually come from how the
Ewald summation for computing the electrostatic potential due
to the test charge was implemented. In PiNN, the electrode-test
charge interaction was computed as a point charge-point charge
interaction; in MetalWalls, the electrode-test charge interaction
was computed as a Gaussian charge-point charge interaction instead. Nevertheless, such difference is immaterial, and does not
affect the passing of the CRK from PiNN to MetalWalls at all.
Indeed, one can obtain a perfect agreement when choosing a
smaller Gaussian width (Section A in the Supporting Information). It is worth noting that there is no need to choose the
Gaussian widths when using the PiNNwall interface for practical applications (Section 4) as the Gaussian widths that were
optimized in PiNet-χ (EEM) will be passed to MetalWalls for
computing the electrostatic interactions. Therefore, there is no
risk of double-counting of the screening effect and the implementation is self-consistent.
Figure 2: Passing the charge response kernel a) A nitrogen-doped graphene
layer with 3D PBCs. A unit test charge is put at a distance _d_ away from the
surface on top of the defect. b) Response charges predicted by MetalWalls via
the PiNNwall interface against the prediction from PiNN using the same kernel
PiNet-χ (EEM).
_3.2._ _Forces and the total energy from the charge response ker-_
_nel_
In contrast to the original Siepmann-Sprik model and its TF
variant, the CRK instead of the hardness kernel η is the key
quantity used in PiNet-χ. This means forces and the total energy in MetalWalls, that are formulated based on the hardness
kernel, may not coincide with the CRK passed from PiNet-χ.
Thus we have to check the dependence on the hardness kernel
of the quantities needed to run the MD and correct them if necessary.
To show whether these quantities depend on the hardness kernel or not, we use parameter sets of both PM and TF metals for
constructing the hardness kernels η but only the parameter set
of a TF metal for constructing the charge response kernel χ.
Therefore, if the quantity in interest does not depend on η, then
the results will lie perfectly along the diagonal line in the parity plot. As all these tests were done with MetalWalls, we have
used a system shown in Fig. 3a: a unit test charge is put on top
of a graphene layer over the center of a six member ring, at a
distance _d_ of the layer.
Figure 3: Forces from the charge response kernel . a) A unit test charge is put
on top of a graphene layer over the center of a six member ring, at a distance _d_
of the layer, ranging from 0.5 to 5.5 Å. b) Total contribution to the force acting
on the test charge along the direction perpendicular to the surface. The subscript
χ <sup>_TF_</sup> - η <sup>_TF_</sup> indicates both χ and η come from the Thomas-Fermi model. The
subscript χ <sup>_TF_</sup> - η <sup>_PM_</sup> indicates χ comes from the Thomas-Fermi model while η
results from the perfect metal electrode.
The forces caused by the interactions between the response
charges and the electrolyte atoms at position r _i_ are given by
f _i_ = − c <sup>⊤</sup> ∇ r _i_ ∆ν (9)
According to Eq. 3, the response charges depend only on the
CRK. Since the external potential ∆ν does not depend on the
hardness kernel either, neither should the forces. Indeed, as
shown in Fig. 3b with the forces (acting along the perpendicular
direction) are the same regardless what η is used.
4
Next, we look at the total energy. According to Eq. 2, the
total energy should depend on both the hardness and the charge
response kernel. This is born out, as shown in Fig. 4a. Therefore, one needs to resolve this discrepancy by rewriting the total
energy expression in terms of ∆ν and χ only.
Figure 4: Hardness dependence of the total energy . Using the simulation
setup of figure 3a). a) Without the correction term in Eq. 11, the total energy
expression depends on both the hardness and the charge response kernel. b)
With the correction term in Eq. 11, the total energy depends only on the charge
response kernel. The subscripts χ <sup>_TF_</sup> - η <sup>_TF_</sup> and χ <sup>_TF_</sup> - η <sup>_PM_</sup> follows the same
convention used in Fig. 3.
As shown previously <sup>43</sup>, the following equality holds under
the variational condition:
c <sup>⊤</sup> η c = −∆ν <sup>⊤</sup> c (10)
Thus we can replace c <sup>⊤</sup> η c with −∆ν <sup>⊤</sup> c and add a correction
to the total energy as
(11)
∆ _U_ = − 2 <sup><u>1</u></sup> <sup>[</sup> <sup>c</sup> <sup>⊤η</sup> <sup>c</sup> <sup>+ ∆ν⊤</sup> <sup>c</sup> <sup>]</sup>
If the η − χ relation as defined by Eq. 4 is fulfilled, this term
should be 0. A non-zero term arises when they are not selfconsistent.
When applying this correction, the total energy does not depend anymore on the hardness used by the MD engine, as expected (Fig. 4b). Thus, we now have everything checked to run
MD properly with a ML derived CRK via the PiNNwall interface.
_3.3._ _Benchmarking on perfect metal electrode_
As a first test, a unit charge is put on top of the middle of a
carbon ring of the interfacial plane and moved in the vacuum
space between the two planes (Fig. 5a). The total energy as a
function of the charge position for the different models (MetalWalls, ACKS2, EEM, EtaInv and Local) is displayed on Fig. 5b
along with the theoretical line. The ACKS2 and EEM are found
more close to the theoretical line, which makes them the candidates for the next test. Note that MetalWalls (PM) throughout
this work refers to simulations done with the default Gaussian
width parameters as implemented in the code and originated
from the work of Reed, Lanning and Madden <sup>5</sup> .
In the second test, we used the same graphite system as in
Fig. 5a and computed the corresponding capacitance by varying the size of the vacuum slab. When the graphite model behaves like a PM with the dielectric constant of infinity, the total
capacitance will be only determined by the size of the vacuum.
Its capacitance for the different models (MetalWalls, ACKS2,
and EEM) as a function of the electrode separation is computed
by applying a finite-field that leads to a potential bias of 2V,
and the results are displayed on Fig. 6. In this case, the EEM
kernel shows a metallic behavior and follows almost exactly the
theoretical line, as compared to ACKS2. The results of ACSK2
indicate that the electric field inside the graphite model is finite,
which leads a smaller polarization and a lower integral capacitance.
Figure 5: The electrostatic energy of a test charge between two sides of
a graphite electrode . a) The graphite electrode in vacuum under 3D PBCs
is used as the model for representing a perfect metal electrode. b) The total
electrostatic energy of the system when moving the test charge between two
sides of electrode. The solid line corresponds to the theoretical result _U_ =
- <sup>_<u>q</u>_</sup> z <sup><u>ϵ0</u></sup> <sup>−</sup> _L_ <sup>_<u>q</u>_</sup> - <sup><u>ϵ0</u></sup> z <sup>, where L is the size of the vacuum slab and z the distance between</sup>
z <sup><u>ϵ0</u></sup> <sup>−</sup> _L_ <sup>_<u>q</u>_</sup> - <sup><u>ϵ0</u></sup>
−the test charge and the electrode surface. <sup>_<u>q</u>_</sup> z <sup><u>ϵ0</u></sup> <sup>−</sup> _L_ <sup>_<u>q</u>_</sup> - <sup><u>ϵ0</u></sup> z <sup>, where L is the size of the vacuum slab and z the distance between</sup>
5
Figure 6: The inverse capacitance 1/ _C_ of an empty capacitor as a function
of the vacuum slab size _L_ . The system under consideration is the one shown in
Fig. 5a (without the test charge). The solid line corresponds to the theoretical
result 1/ _C_ = _L_ /ϵ0
Based on these tests, we will employ the EEM kernel generated from PiNet-χ in the following case studies of chemically
doped graphene and graphene oxide electrodes. In order to separate the effects of the local geometry and the chemical heterogeneity on polarizability, we will also employ a PiNet-χ model
by considering all the atoms as carbon atoms for the computation of the CRK, which is referred as PiNet-χ (EEM all C).
4. Application to chemically doped graphene and graphene
oxide electrodes
_4.1._ _Nitrogen-doped graphene electrode_
The simplest way to introduce chemical heterogeneity in the
graphene layers is through the chemical doping, such as nitrogen, which shows a significant improvement on electrochemical activities <sup>44,45</sup> . Due to its valence, nitrogen substitution does
not induce an out-of-plane change in the layer structure itself
(Fig. 7a).
It is found that substituting carbon by nitrogen has a very
limited impact on the Helmholtz capacitance (Fig. 7b). This is
also reflected in the charge density profile of ions next to the
electrode as well as the dynamics of electrode charge (Fig. 7c
and Fig. 7d respectively).
We also notice that regardless of model, the asymmetry in the
Helmholtz capacitance between the positive and negative electrode remains, in which the capacitance of the negative electrode has a much higher capacitance at the same surface density.
This is in accord with the observation that the cation distribution is more close to the electrode surface than that of anions.
_4.2._ _Graphene oxide electrode with epoxy terminations_
Epoxy, hydroxyl, and carboxylic acid functional groups are
commonly found in the graphene oxide <sup>46</sup> . In this section, we
will look at how the Helmholtz capacitance will change upon
introducing epoxy termination in the graphene oxide. This adds
one layer of complexity as it also changes the roughness of the
surface (Fig. 8a).
Figure 7: Nitrogen-doped graphene electrode . a) Snapshot of the electrode
surface with a 10% surface coverage. (electrolyte solution is not shown for
clarity). b) Helmholtz capacitance for the positive and negative electrodes as a
function of the surface coverage. Dashed lines correspond to the positive electrode while dotted lines correspond to the negative electrode. c) Total charge
density of ionic species as a function of the distance to the negative/positive
electrode under an applied potential of 2V. The distance is taken from the position of the carbon plane. d) Time correlation function of the electrode charge
under an applied potential of 0V.
In contrast to the case of the graphitic substitution as shown
in the previous section, the doping with oxygen under the
form of epoxy groups will modify the capacitance significantly
(Fig. 8b). Both PiNet-χ (EEM all C) and MetalWalls (PM) treat
electrode atoms as carbon atoms regardless of element types,
and yet PiNet-χ (EEM all C) shows a more rapid increment
in the capacitance with the surface coverage as compared to
MetalWalls (PM). This highlights the fact that the CRK implemented in PiNet-χ does take into account the change in the
“metallicity” due to the local geometry.
When comparing PiNet-χ (EEM all C) and PiNet-χ (EEM),
the effect of chemical heterogeneity in the polarizability at
atomic site comes into play. This in turn decreases the capacitance, due to a smaller polarizability of oxygen and hydrogen
atoms as compared to that of carbon atoms. Therefore, the gain
in the capacitance due to the surface roughness and the local
geometry is cancelled out by introducing the chemical heterogeneity.
As shown in Fig. 8c and Fig. 8d, the charge density profiles
of ions and the correlation function of the electrode charge do
correlate with the observed capacitance. For instance, PiNetχ (EEM all C), which has the highest capacitance, shows a
strongest first peak of charge density for both positive and negative electrodes and the longest relaxation time. Nevertheless,
this correlation is not perfect, in which the first peak height of
charge density next to the negative electrode does no decrease
in the same order as that in its capacitance. This suggests that
the ion population in the second peak of charge density also
contributes to the resulting capacitance.
6
Figure 8: Graphene oxide electrode with epoxy terminations . a) Snapshot
of the electrode surface with a 10% surface coverage. (electrolyte solution is
not shown for clarity). b) Helmholtz capacitance for the positive and negative
electrodes as a function of the surface coverage. Dashed lines correspond to
the positive electrode while dotted lines correspond to the negative electrode.
c) Total charge density of ionic species as a function of the distance to the
negative/positive electrode under an applied potential of 2V. The distance is
taken from the position of the carbon plane. d) Time correlation function of the
electrode charge under an applied potential of 0V.
_4.3._ _Graphene oxide electrode with hydroxyl terminations_
Next, we also looked into the case of the hydroxyl terminated
graphene oxide, as shown in Fig. 9a.
In general, the trends for the capacitance (Fig. 9b), the charge
density profile of ions (Fig. 9c) as well as the time correlation function of the electrode charge (Fig. 9d) look similar to
those observed in the case of the epoxy terminated graphene
oxide. Nevertheless, there are also considerable differences between the two cases. The capacitance obtained in the case of
the hydroxyl terminated graphene oxide is much higher than
the epoxy case for the same surface coverage. Notably, the corresponding charge densities of ions at both positive and negative electrodes also have much higher intensities (Fig. 9c). This
suggests that by increasing the surface coverage of OH groups,
the electrode surface becomes more hydrophilic and ion populations next to electrode surface increase because of a more
favorable solvation environment.
_4.4._ _Graphene oxide with proton charge_
Examples in previous sections focus on the interplay between
the geometrical effect on metallicity and the chemical heterogeneity in polarizabilty by comparing the perfect metal model
in MetalWalls, PiNet-χ (EEM) and PiNet-χ (EEM all C). In
this section, we will apply PiNet-χ (EEM) to probe the surface
acid-base chemistry of electrode materials instead.
In graphene oxide, both surface carboxylic and hydroxyl
groups can undergo protonation/deprotonation depending on
the solution pH. It has been reported that the _p_ K _a_ is about
6.6 for the carboxylic group and 9.8 for the hydroxyl group
in graphene oxide <sup>47</sup> . This means that, at the neutral pH, the
Figure 9: Graphene oxide electrode with hydroxyl terminations . a) Snapshot of the electrode surface with a 10% surface coverage. (electrolyte solution
is not shown for clarity). b) Helmholtz capacitance for the positive and negative electrodes as a function of the surface coverage. Dashed lines correspond
to the positive electrode, while dotted lines correspond to the negative electrode. c) Total charge density of ionic species as a function of the distance to
the negative/positive electrode under an applied potential of 2V. The distance is
taken from the position of the carbon plane. d) Time correlation function of the
electrode charge under an applied potential of 0V.
most relevant ionizable group in graphene oxide is the carboxylic group and the most probable acid-base reaction is the
one shown in Eq. 12. Therefore, in this section, we will explore
the PiNNwall interface for modelling protonic double layer at
the graphene oxide surface terminated with carboxylic groups
(Fig. 10a)
As shown in Fig. 10b, by changing the applied potential, one
can identify the point of zero free charge (PZFC) due to the
electronic polarization. This “titration” procedure is similar to
the one used before in modelling charged insulator/electrolyte
interfaces for eliminating the finite-size effect <sup>48</sup> . It is worth
noting that the slope of Fig. 10b yields a capacitance of value
4.7 µ _F_ /cm <sup>2</sup>, which is comparable to that of pristine graphene
(see Fig. 7b for the case of 0% surface coverage).
Once the PZFC is identified, the integral capacitance can be
computed readily using the _dq_ / _dV_ PZFC formula, in which _q_ is
the proton charge that we introduced through the protonation
and deprotonation of carboxyl groups. The result of the computed Helmholtz capacitance due to the proton charge at the
PZFC is shown in Fig. 10c. What is surprising is that the resulting Helmholtz capacitance for the hydroxylated surface with
deprotonated carboxyl groups can be as large as 100 µ _F_ /cm <sup>2</sup> .
This is one order magnitude higher compared to those found
in pristine graphene but very similar in magnitude as those reported for metal oxide <sup>33,34</sup> . Therefore, this finding provides a
clue why the Helmholtz capacitance found in metal oxide is
GO − COOH(aq) ⇌ GO − COO <sup>−</sup> (aq) + H <sup>+</sup> (aq) (12)
2 <sup>+(aq)</sup> ⇌ GO − COOH(aq) + H <sup>+</sup> (aq) (13)
GO − COOH2 <sup>+</sup>
7
much higher than that found in the metal, as often seen in experiments <sup>49</sup> .
Figure 10: Graphene oxide with proton charge . a) Snapshot of the carboxylterminated electrode surface with a 10% surface coverage of OH. (electrolyte
solution is not shown for clarity and the location of deprotonated carboxyl
groups are highlighted.). b) The electrode charge as a function of the applied potential. _V_ PZFC is identified when the electrode charge becomes zero.
c) Helmholtz capacitance for the positive and negative electrodes as a function
of the surface coverage of OH. Dashed line corresponds to the positive electrode, while dotted line corresponds to the negative electrode. d) Total charge
density of ionic species as a function of the distance to the negative/positive
electrode at the point of zero free charge (PZFC). The distance is taken from
the position of the carbon plane.
5. Conclusion and outlook
In this work, we have integrated the atomistic ML code
(PiNN) and the MD simulation code (MetalWalls) to model heterogeneous electrode surfaces. PiNN was used to generate the
response kernel and the base charge from ML models PiNetχ and PiNet-dipole respectively. Then, this information was
passed to the MetalWalls to carry out efficient computations of
electrostatic interactions and to propagate the dynamics.
Through validation and verification, we have identified
PiNet-χ (EEM) as the candidate for practical applications,
which shows almost identical results for pure carbon electrode
compared to the original Siepmann-Sprik model. Thanks to the
flexibility of PiNet-χ (EEM) for modelling any electrode materials composed of C, N, O, H, S, Cl, we were able to study both
chemically doped graphene electrode and graphene oxide with
various terminations.
It is found that while the surface roughness and hydrophilicity can potentially increase the capacitance, these beneficial effects are attenuated by a smaller polarizability of elements (N,
O, and H) involved in the chemical heterogeneity. On the other
hand, we showed that the proton charge due to the surface acidbase chemistry at graphene oxide surfaces can lead to a significant increment in capacitance, which is comparable in magnitude (100 µ _F_ /cm <sup>2</sup> ) to those reported in metal oxide-based systems.
Given that the capacitance is so different depending on
whether the electronic or the protonic charge dominates, it
would be interesting to study the transition between these two
cases in future works, which can shed light on the electrochemical behavior of the “polarized oxide surfaces” <sup>50</sup> . Reparameterizing PiNet-χ for transition metal oxides or transition metal
dichalcogenides would allow us to investigate an even broader
range of complex electrode materials in contact with both aqueous and non-aqueous electrolytes. In terms of the development
of PiNNwall, future works can also be considered in the direction to pass the forces from PiNN to MetalWalls. In combination with ML potential for modelling the electrode materials <sup>51,52,53</sup>, this will enable us to study the electrode dynamics
and its role in the electrochemical energy storage.
Acknowledgements
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon
2020 research and innovation programme (grant agreement No.
949012). L.K. is partly supported by a PhD studentship from
the Centre for Interdisciplinary Mathematics (CIM) at Uppsala
University. The simulations were performed on the resources
provided by the National Academic Infrastructure for Supercomputing in Sweden (NAISS) at PDC partially funded by the
Swedish Research Council through grant agreement No. 202206725 and through the project access to the LUMI supercomputer, owned by the EuroHPC Joint Undertaking, hosted by
CSC (Finland) and the LUMI consortium.
Supporting Information
Further validation of passing the charge response kernel, details of the validation and the implementation of base charges
predicted from PiNet-dipole, and ion distributions at the electrified interfaces.
References
[1] Conway, B. E. Transition from “Supercapacitor” to “Battery” Behavior in
Electrochemical Energy Storage. _J._ _Electrochem. Soc._ 1991, _138_, 1539–
1548.
[2] Schmickler, W.; Santos, E. _Interfacial Electrochemistry_ ; Springer: Berlin;
London, 2010.
[3] Le, J.-B.; Fan, Q.-Y.; Li, J.-Q.; Cheng, J. Molecular origin of negative
component of Helmholtz capacitance at electrified Pt(111)/water interface. _Sci. Adv._ 2020, _6_, eabb1219.
[4] Siepmann, J. I.; Sprik, M. Influence of surface topology and electrostatic
potential on water/electrode systems. _J. Chem. Phys._ 1995, _102_, 511–524.
[5] Reed, S. K.; Lanning, O. J.; Madden, P. A. Electrochemical interface be
tween an ionic liquid and a model metallic electrode. _J. Chem. Phys._ 2007,
_126_, 084704.
[6] Scalfi, L.; Dufils, T.; Reeves, K. G.; Rotenberg, B.; Salanne, M. A semi
classical Thomas–Fermi model to tune the metallicity of electrodes in
molecular simulations. _J. Chem. Phys._ 2020, _153_, 174704.
[7] Son, C. Y.; Wang, Z.-G. Image-charge effects on ion adsorption near aque
ous interfaces. _Proc. Nat. Acad. Sci._ 2021, _118_, e2020615118.
[8] Jeanmairet, G.; Rotenberg, B.; Salanne, M. Microscopic Simulations
of Electrochemical Double-Layer Capacitors. _Chem._ _Rev._ 2022, _122_,
10860–10898.
8
[9] Zhan, C.; Lian, C.; Zhang, Y.; Thompson, M. W.; Xie, Y.; Wu, J.; Kent, P.
properties of organic liquids. _J. Am. Chem. Soc._ 1996, _118_, 11225–11236.
[33] Zhang, C.; Hutter, J.; Sprik, M. Coupling of surface chemistry and elec
tric double layer at TiO2 electrochemical interfaces. _J. Phys. Chem. Lett._
2019, _10_, 3871–3876.
[34] Jia, M.; Zhang, C.; Cheng, J. Origin of Asymmetric Electric Double Lay
ers at Electrified Oxide/Electrolyte Interfaces. _J. Phys. Chem. Lett._ 2021,
_12_, 4616–4622.
[35] Padua, A.; Goloviznina, K.; Gong, Z. agiliopadua/fftool: XML force field
files. 2021.
[36] Martínez, L.; Andrade, R.; Birgin, E. G.; Martínez, J. M. PACKMOL: A
package for building initial configurations for molecular dynamics simulations. _J. Comput. Chem._ 2009, _30_, 2157–2164.
[37] Jorgensen, W. L.; Chandrasekhar, J.; Madura, J. D.; Impey, R. W.;
Klein, M. L. Comparison of simple potential functions for simulating liquid water. _J. Chem. Phys._ 1983, _79_, 926–935.
[38] Joung, I. S.; Cheatham, T. E. Determination of Alkali and Halide Mono
valent Ion Parameters for Use in Explicitly Solvated Biomolecular Simulations. _J. Phys. Chem. B_ 2008, _112_, 9020–9041.
[39] Zhang, C.; Raugei, S.; Eisenberg, B.; Carloni, P. Molecular Dynamics
in Physiological Solutions: Force Fields, Alkali Metal Ions, and Ionic
Strength. _J. Chem. Theory Comput._ 2010, _6_, 2167–2175.
[40] Dufils, T.; Jeanmairet, G.; Rotenberg, B.; Sprik, M.; Salanne, M. Simu
lating electrochemical systems by combining the finite field method with
a constant potential electrode. _Phys. Rev. Lett._ 2019, _123_, 195501.
[41] Nosé, S. A unified formulation of the constant temperature molecular dy
namics methods. _J. Chem. Phys._ 1984, _81_, 511–519.
[42] Hoover, W. G. Canonical dynamics: Equilibrium phase-space distribu
tions. _Phys. Rev. A_ 1985, _31_, 1695–1697.
[43] Scalfi, L.; Limmer, D. T.; Coretti, A.; Bonella, S.; Madden, P. A.;
Salanne, M.; Rotenberg, B. Charge fluctuations from molecular simulations in the constant-potential ensemble. _Phys. Chem. Chem. Phys._ 2020,
_22_, 10480–10489.
[44] Wang, Y.; Shao, Y.; Matson, D. W.; Li, J.; Lin, Y. Nitrogen-Doped
Graphene and Its Application in Electrochemical Biosensing. _ACS Nano_
2010, _4_, 1790–1798.
[45] Wang, Z.; Li, M.; Ruan, C.; Liu, C.; Zhang, C.; Xu, C.; Edström, K.;
Strømme, M.; Nyholm, L. Conducting Polymer Paper-Derived Mesoporous 3D N-doped Carbon Current Collectors for Na and Li Metal Anodes: A Combined Experimental and Theoretical Study. _J._ _Phys._ _Chem._
_C_ 2018, _122_, 23352–23363.
[46] Chen, D.; Feng, H.; Li, J. Graphene Oxide: Preparation, Functionaliza
tion, and Electrochemical Applications. _Chem._ _Rev._ 2012, _112_, 6027–
6053.
[47] Konkena, B.; Vasudevan, S. Understanding Aqueous Dispersibility of
Graphene Oxide and Reduced Graphene Oxide through pKa Measurements. _J. Phys. Chem. Lett._ 2012, _3_, 867–872.
[48] Zhang, C.; Sprik, M. Finite field methods for the supercell modeling of
charged insulator/electrolyte interfaces. _Phys. Rev. B_ 2016, _94_, 245309.
[49] Lyklema, J. _Fundamentals_ _of_ _interface_ _and_ _colloid_ _science_ ; Academic
Press: San Diego, CA, 1991.
[50] Ardizzone, S.; Trasatti, S. Interfacial properties of oxides with techno
logical impact in electrochemistry. _Adv._ _Colloid_ _Interface_ _Sci._ 1996, _64_,
173–251.
[51] Deringer, V. L.; Csányi, G. Machine learning based interatomic potential
for amorphous carbon. _Phys. Rev. B_ 2017, _95_, 094203.
[52] Rowe, P.; Deringer, V. L.; Gasparotto, P.; Csányi, G.; Michaelides, A. An
accurate and transferable machine learning potential for carbon. _J. Chem._
_Phys._ 2020, _153_, 034702.
[53] Lombardo, T. et al. Artificial Intelligence Applied to Battery Research:
Hype or Reality? _Chem. Rev._ 2022, _122_, 10899–10969.
R. C.; Cummings, P. T.; Jiang, D.-E.; Wesolowski, D. J. Computational
Insights into Materials and Interfaces for Capacitive Energy Storage. _Adv._
_Sci._ 2017, _4_, 1700059.
[10] Xu, K.; Shao, H.; Lin, Z.; Merlet, C.; Feng, G.; Zhu, J.; Simon, P. Com
putational Insights into Charge Storage Mechanisms of Supercapacitors.
_Energy Environ. Mater._ 2020, _3_, 235–246.
[11] Bi, S.; Banda, H.; Chen, M.; Niu, L.; Chen, M.; Wu, T.; Wang, J.;
Wang, R.; Feng, J.; Chen, T.; Dinc˘a, M.; Kornyshev, A. A.; Feng, G.
Molecular understanding of charge storage and charging dynamics in
supercapacitors with MOF electrodes and ionic liquid electrolytes. _Nat._
_Mater._ 2020, _19_, 552–558.
[12] Pereira, G. F. L.; Fileti, E. E.; Siqueira, L. J. A. Comparing Graphite
and Graphene Oxide Supercapacitors with a Constant Potential Model. _J._
_Phys. Chem. C_ 2021, _125_, 2318–2326.
[13] Takahashi, K.; Nakano, H.; Sato, H. Unified polarizable electrode models
for open and closed circuits: Revisiting the effects of electrode polarization and different circuit conditions on electrode–electrolyte interfaces. _J._
_Chem. Phys._ 2022, _157_, 014111.
[14] Bi, S.; Salanne, M. Co-Ion Desorption as the Main Charging Mechanism
in Metallic 1T-MoS2 Supercapacitors. _ACS Nano_ 2022, _16_, 18658–18666.
[15] Marin-Laflèche, A.; Haefele, M.; Scalfi, L.; Coretti, A.; Dufils, T.; Jean
mairet, G.; Reed, S. K.; Serva, A.; Berthin, R.; Bacon, C.; Bonella, S.;
Rotenberg, B.; Madden, P. A.; Salanne, M. MetalWalls: A classical
molecular dynamics software dedicated to the simulation of electrochemical systems. _J. Open Source Softw._ 2020, _5_, 2373.
[16] Coretti, A.; Bacon, C.; Berthin, R.; Serva, A.; Scalfi, L.; Chubak, I.;
Goloviznina, K.; Haefele, M.; Marin-Laflèche, A.; Rotenberg, B.;
Bonella, S.; Salanne, M. MetalWalls: Simulating electrochemical interfaces between polarizable electrolytes and metallic electrodes. _J._ _Chem._
_Phys._ 2022, _157_, 184801.
[17] Shao, Y.; Hellström, M.; Mitev, P. D.; Knijff, L.; Zhang, C. PiNN: A
Python Library for Building Atomic Neural Networks of Molecules and
Materials. _J. Chem. Inf. Model._ 2020, _60_, 1184–1193.
[18] York, D. M.; Yang, W. A chemical potential equalization method for
molecular simulations. _J. Chem. Phys._ 1996, _104_, 159–172.
[19] Nakano, H.; Sato, H. A chemical potential equalization approach to con
stant potential polarizable electrodes for electrochemical-cell simulations.
_J. Chem. Phys._ 2019, _151_, 164123.
[20] Shao, Y.; Andersson, L.; Knijff, L.; Zhang, C. Finite-field coupling via
learning the charge response kernel. _Electron. Struct._ 2022, _4_, 014012.
[21] Verstraelen, T.; Ayers, P. W.; Van Speybroeck, V.; Waroquier, M. ACKS2:
Atom-condensed Kohn-Sham DFT approximated to second order. _J._
_Chem. Phys._ 2013, _138_, 074108.
[22] Berkowitz, M.; Parr, R. G. Molecular hardness and softness, local hard
ness and softness, hardness and softness kernels, and relations among
these quantities. _J. Chem. Phys._ 1988, _88_, 2554–2557.
[23] Zhang, C.; Sprik, M. Computing the dielectric constant of liquid water at
constant dielect ric displacement. _Phys. Rev. B_ 2016, _93_, 144201.
[24] Yang, Y.; Lao, K. U.; Wilkins, D. M.; Grisafi, A.; Ceriotti, M.; DiSta
sio, R. A. Quantum mechanical static dipole polarizabilities in the QM7b
and AlphaML showcase databases. _Sci. Data_ 2019, _6_, 152.
[25] Becke, A. D. Perspective: Fifty years of density-functional theory in
chemical physics. _J. Chem. Phys._ 2014, _140_, 18A301.
[26] Becke, A. D. Density-functional exchange-energy approximation with
correct asymptotic behavior. _Phys. Rev. A_ 1988, _38_, 3098–3100.
[27] Lee, C.; Yang, W.; Parr, R. G. Development of the Colle-Salvetti
correlation-energy formula into a functional of the electron density. _Phys._
_Rev. B_ 1988, _37_, 785–789.
[28] Mortier, W. J.; Van Genechten, K.; Gasteiger, J. Electronegativity equal
ization: application and parametrization. _J._ _Am._ _Chem._ _Soc._ 1985, _107_,
829–835.
[29] Mortier, W. J.; Ghosh, S. K.; Shankar, S. Electronegativity-equalization
method for the calculation of atomic charges in molecules. _J. Am. Chem._
_Soc._ 1986, _108_, 4315–4320.
[30] Knijff, L.; Zhang, C. Machine learning inference of molecular dipole mo
ment in liquid water. _Mach. Learn.:_ _Sci. Technol._ 2021, _2_, 03LT03.
[31] Liu, L.; Wang, L.; Gao, J.; Zhao, J.; Gao, X.; Chen, Z. Amorphous struc
tural models for graphene oxides. _Carbon_ 2012, _50_, 1690–1698.
[32] Jorgensen, W. L.; Maxwell, D. S.; Tirado-Rives, J. Development and test
ing of the OPLS all-atom force field on conformational energetics and
9
### PiNNwall: heterogeneous electrode models from integrating machine learning and atomistic simulation
Thomas Dufils <sup>_†_</sup>, Lisanne Knijff <sup>_†_</sup>, Yunqi Shao <sup>_†_</sup> Chao Zhang <sup>_†∗_</sup>
_†Department of Chemistry -_ _˚Angstr¨om Laboratory, Uppsala University, L¨agerhyddsv¨agen 1,_
_BOX 538, 75121, Uppsala, Sweden_
chao.zhang@kemi.uu.se
#### Supporting Information A Further validation of passing the charge response kernel
In the Figure 2 of the Main Text, we observed a difference in the response charge predictions of
PiNN and MetalWalls using the same CRK, that we attributed to the use of point charge-point
charge electrostatic interaction with the test charge for the former and Gaussian charge-point
charge interaction for the later. Here we show a validation of this hypothesis by using the same
setup as in the Figure 2 of the Main Text but with a Gaussian width of 0.2 A instead. <sup>˚</sup> Results
are shown on Figure S1. Indeed, one can see that the difference in response charges predicted
by PiNN and Metawalls become negligible for all cases by decreasing the Gaussian width.
S1
Figure S1: Passing the charge response kernel . Response charges predicted by MetalWalls
via the PiNNwall interface against the prediction from PiNN using the same kernel PiNet- _χ_
(EEM).
S2
#### B Validation and implementation of base charges predicted from PiNet-dipole
To validate the charges predicted from the PiNet-dipole model, molecular analogues of the
target structures were used for each of the functionalized graphene models. To validate that the
charges predicted from PiNet-dipole have a physical basis, comparisons were made to charges
computed using several population analysis techniques.
To perform the population analysis, DFT calculations were run using Gaussian09 [1]. The
B3LYP [2, 3] functional and the cc-pVDZ basis set [4] were used. The population analyses that were performed are: CM5 [5], Mulliken [6], Hirshfeld [7] and Merz-Singh-Kollman
(MSK) [8,9]. The molecular analogues were deemed fit as a references if the predicted charges
corresponded to chemical intuition and the dipole moment was comparable to that calculated
using DFT.
For the graphene sheet doped with nitrogen, a planar form of trimethylamine was used as a
reference.
Figure S2: Charges of trimethylamine . The structure of trimethylamine (a). Computed with
b) PiNet-dipole, c) CM5, d) Mulliken, e) Hirshfeld, and f) MSK.
<u>Method</u> <u>D</u> _<u>x</u>_ <u>(D)</u> <u>D</u> _<u>y</u>_ <u>(D)</u> <u>D</u> _<u>z</u>_ <u>(D)</u>
<u>DFT</u> <u>-0.340</u> <u>-0.286</u> <u>-0.010</u>
PiNet-dipole -0.435 -0.169 -0.016
CM5 -0.126 -0.123 -0.013
<u>MSK</u> <u>-0.320</u> <u>-0.280</u> <u>-0.009</u>
Table S1: Dipole moment of trimethylamine .
S3
<u>Element</u> <u>PiNet charge (e)</u>
<u>N</u> <u>-0.19527</u>
C 0.03033
C 0.08597
<u>C</u> <u>0.07899</u>
Table S2: Base charges from trimethylamine as implemented in the N-doped graphene .
The charges of the methyl groups are placed the carbon atoms when charges are used in the
real system, to ensure a charge neutral entity.
For the graphene sheet doped with epoxy groups, ethylene oxide was used as the reference
molecule.
Figure S3: Charges of ethylene oxide . The structure of ethylene oxide (a). Computed with b)
PiNet-dipole, c) CM5, d) Mulliken, e) Hirshfeld, and f) MSK.
<u>Method</u> <u>D</u> _<u>x</u>_ <u>(D)</u> <u>D</u> _<u>y</u>_ <u>(D)</u> <u>D</u> _<u>z</u>_ <u>(D)</u>
<u>DFT</u> <u>1.806</u> <u>0.000</u> <u>-0.141</u>
PiNet-dipole 1.811 0.000 -0.142
CM5 2.052 0.000 -0.161
<u>MSK</u> <u>1.837</u> <u>0.000</u> <u>-0.144</u>
Table S3: Dipole moment of ethylene oxide .
S4
<u>Element</u> <u>PiNet charge (e)</u>
<u>O</u> <u>-0.19297</u>
C 0.09648
<u>C</u> <u>0.09648</u>
Table S4: Based charges from ethylene oxide as implemented in the epoxy-terminated
graphene oxide .
Here, the charges of the hydrogen atoms are also combined with that of the carbon atoms
when the charges are transferred to functionalized graphene. Once again, to ensure charge
neutrality and to localize the charges on the graphene sheet.
For the graphene sheet doped with hydroxyl groups, methanol was used as the molecular
analogue.
Figure S4: Charges of methanol . The structure of methanol (a). Computed with b) PiNetdipole, c) CM5, d) Mulliken, e) Hirshfeld, and f) MSK.
<u>Method</u> <u>D</u> _<u>x</u>_ <u>(D)</u> <u>D</u> _<u>y</u>_ <u>(D)</u> <u>D</u> _<u>z</u>_ <u>(D)</u>
<u>DFT</u> <u>1.340</u> <u>0.825</u> <u>0.000</u>
PiNet-dipole 1.327 1.067 0.000
CM5 1.384 0.957 0.000
<u>MSK</u> <u>1.326</u> <u>0.851</u> <u>0.000</u>
Table S5: Dipole moment of methanol .
S5
<u>Element</u> <u>PiNet charge (e)</u>
<u>O</u> <u>-0.41668</u>
H 0.32197
<u>C</u> <u>0.09471</u>
Table S6: Base charges from methanol as implemented in the hydroxyl-terminated
graphene oxide .
The charge on the carbon atom is set so that it includes the charges of the hydrogen atoms
as well. In this way, it compensates for the charge on the hydroxyl group, and the whole group
is charge neutral.
Finally, for the graphene sheet functionalized with carboxyl groups, a smaller graphene
flake with carboxyl groups was used as a reference. This was done because alternative analogues showed large fluctuations in the charges when changing the charge state of the analogue
which did not correspond to chemical intuition. While the dipole moment for the carboxyl
flake shows discrepancies to that of DFT in the _x_ - and _y_ -direction, the _z_ -direction, which is the
most important direction when it comes to the carboxyl group, agrees within a reasonable error
margin.
Figure S5: Charges of the neutral carboxyl flake . The structure of the neutral carboxyl flake
(a). Computed with b) PiNet-dipole, c) CM5, d) Mulliken, e) Hirshfeld, and f) MSK.
S6
<u>Element</u> <u>PiNet charge (e)</u>
<u>Odouble</u> _−_ bonded O <u>-0.28245</u>
OOH -0.31622
HOH 0.32579
<u>C</u> <u>0.27288</u>
Table S7: Charges from the neutral carboxyl flake .
<u>Method</u> <u>D</u> _<u>x</u>_ <u>(D)</u> <u>D</u> _<u>y</u>_ <u>(D)</u> <u>D</u> _<u>z</u>_ <u>(D)</u>
<u>DFT</u> <u>0.2953</u> <u>0.0873</u> <u>0.3845</u>
PiNet-dipole 3.301 1.699 0.145
CM5 0.435 0.230 0.297
<u>MSK</u> <u>0.265</u> <u>0.087</u> <u>0.354</u>
Table S8: Dipole moment from the neutral carboxyl flake .
Figure S6: Charges of the protonated carboxyl flake . The structure of the protonated carboxyl
flake (a). Computed with b) PiNet-dipole, c) CM5, d) Mulliken, e) Hirshfeld, and f) MSK.
S7
<u>Element</u> <u>PiNet charge (e)</u>
<u>Odouble</u> _−_ bonded O <u>-0.33339</u>
Hdouble _−_ bonded O 0.27653
OOH -0.36729
HOH 0.33747
<u>C</u> <u>1.08668</u>
Table S9: Base charges from the protonated carboxyl flake as implemented in the protonated side of carboxyl-terminated graphene oxide .
Since the investigated structures contain neutral, protonated, and deprotonated forms of the
carboxyl groups, these are also the structures for which the charges were predicted. Here the
charge of the carbon atom is set such that the total charge of the protonated carboxyl group is
+1. Once again the charges of the atoms are predicted using PiNet-dipole. Then, the charge
of the carbon atom is simply set to ensure that the charge of the protonated carboxyl group
sums to +1. This is done to keep the charges localized, and because it is the simplest way to
adjust the charge without the need for an arbitrary charge division. It also prevents unphysical
modifications to the other charges from being made. This is supported by Figure S6, as this
shows that the charge analysis performed with DFT methods the excess charge is also mostly
located on the carbon atom.
Figure S7: Charges of the deprotonated carboxyl flake . The structure of the deprotonated
carboxyl flake (a). Computed with b) PiNet-dipole, c) CM5, d) Mulliken, e) Hirshfeld, and f)
MSK.
S8
<u>Element</u> <u>PiNet charge (e)</u>
<u>Odouble</u> _−_ bonded O <u>-0.28599</u>
OOH -0.28723
<u>C</u> <u>-0.42678</u>
Table S10: Base charges from the deprotonated carboxyl flake as implemented in the deprotonated side of carboxyl-terminated graphene oxide .
Similarly, for the deprotonated cases, the charge of the carbon atom is set such that the total
charge of the deprotonated carboxyl group is -1. As can be seen in Figure S7, for the DFT
charge methods the negative charge is spread across the carboyxl flake, mostly at the edges. As
a first approximation, the excess charge is localized on the carbon atom in our implementation,
which avoids any size-inconsistent charge divisions.
S9
#### C Ion distributions at the electrified interfaces
Figure S8: Density of adsorbed ions in on a pristine graphene electrode . Surface density
in e A <sup>˚</sup> <sup>_−_</sup> <sup>2</sup> of potassium (yellow to red color bar) and chloride (blue to purple color bar) using the
MetalWalls (PM) on the negative (a) and positive (b) electrode, and using the PiNet- _χ_ (EEM)
model on the negative (c) and positive (d) electrode, under an applied potential of 2 V.
S10
Figure S9: Density of adsorbed ions on a graphene electrode with Nitrogen substitution .
Surface density in e A <sup>˚</sup> <sup>_−_</sup> <sup>2</sup> of potassium (yellow to red color bar) and chloride (blue to purple
color bar) using the MetalWalls (PM) model on the negative (a) and positive (b) electrode, and
using the PiNet- _χ_ (EEM) model on the negative (c) and positive (d) electrode, for a surface
coverage of 20 % and under an applied potential of 2 V.
#### References
[1] M. J. Frisch, G. W. Trucks, H. B. Schlegel, G. E. Scuseria, M. A. Robb, J. R. Cheese
man, G. Scalmani, V. Barone, B. Mennucci, G. A. Petersson, H. Nakatsuji, M. Caricato,
X. Li, H. P. Hratchian, A. F. Izmaylov, J. Bloino, G. Zheng, J. L. Sonnenberg, M. Hada,
M. Ehara, K. Toyota, R. Fukuda, J. Hasegawa, M. Ishida, T. Nakajima, Y. Honda, O. Kitao, H. Nakai, T. Vreven, J. A. Montgomery Jr., J. E. Peralta, F. Ogliaro, M. Bearpark,
J. J. Heyd, E. Brothers, K. N. Kudin, V. N. Staroverov, T. Keith, R. Kobayashi, J. Normand,
K. Raghavachari, A. Rendell, J. C. Burant, S. S. Iyengar, J. Tomasi, M. Cossi, N. Rega, J. M.
Millam, M. Klene, J. E. Knox, J. B. Cross, V. Bakken, C. Adamo, J. Jaramillo, R. Gomperts, R. E. Stratmann, A. J. Austin O. Yazyev, R. Cammi, C. Pomelli, J. W. Ochterski,
R. L. Martin, K. Morokuma, V. G. Zakrzewski, G. A. Voth, P. Salvador, J. J. Dannenberg,
S. Dapprich, A. D. Daniels, O. Farkas, J. B. Foresman, J. V. Ortiz, J. Cioslowski, and D. J.
Fox, “Gaussian 09, Revision D.01 (Gaussian, Inc., Wallingford CT)” (2013).
[2] Axel D Becke, “Density-functional thermochemistry. I. The effect of the exchange-only
gradient correction”, <u>J. Chem. Phys.</u> 96 (3), pp. 2155–2160 (1992).
[3] Philip J Stephens, Frank J Devlin, Cary F Chabalowski, and Michael J Frisch, “Ab initio
calculation of vibrational absorption and circular dichroism spectra using density functional
force fields”, <u>J. Phys. Chem.</u> 98 (45), pp. 11623–11627 (1994).
S11
Figure S10: Density of adsorbed ions on a graphene oxide electrode with epoxy terminations . Surface density in e A <sup>˚</sup> <sup>_−_</sup> <sup>2</sup> of potassium (yellow to red color bar) and chloride (blue to
purple color bar) using the MetalWalls (PM) model on the negative (a) and positive (b) electrode, and using the PiNet- _χ_ (EEM) model on the negative (c) and positive (d) electrode, for a
surface coverage of 20 % and under an applied potential of 2 V.
[4] Thom H Dunning Jr., “Gaussian basis sets for use in correlated molecular calculations.
I. The atoms boron through neon and hydrogen”, <u>J.</u> <u>Chem.</u> <u>Phys.</u> 90 (2), pp. 1007–1023
(1989).
[5] Aleksandr V Marenich, Steven V Jerome, Christopher J Cramer, and Donald G Truhlar,
“Charge model 5: An extension of Hirshfeld population analysis for the accurate description
of molecular interactions in gaseous and condensed phases”, <u>J.</u> <u>Chem.</u> <u>Theory</u> <u>Comput.</u>
8 (2), pp. 527–541 (2012).
[6] Robert S Mulliken, “Electronic population analysis on LCAO–MO molecular wave func
tions. I”, <u>J. Chem. Phys.</u> 23 (10), pp. 1833–1840 (1955).
[7] Fred L Hirshfeld, “Bonded-atom fragments for describing molecular charge densities”,
<u>Theor. Chim. Acta</u> 44 (2), pp. 129–138 (1977).
[8] U Chandra Singh and Peter A Kollman, “An approach to computing electrostatic charges
for molecules”, <u>J. Comput. Chem.</u> 5 (2), pp. 129–145 (1984).
[9] Brent H Besler, Kenneth M Merz Jr, and Peter A Kollman, “Atomic charges derived from
semiempirical methods”, <u>J. Comput. Chem.</u> 11 (4), pp. 431–439 (1990).
S12
Figure S11: Density of adsorbed ions on a graphene oxide electrode with hydroxyl terminations . Surface density in e A <sup>˚</sup> <sup>_−_</sup> <sup>2</sup> of potassium (yellow to red color bar) and chloride (blue to
purple color bar) using the MetalWalls (PM) model on the negative (a) and positive (b) electrode, and using the PiNet- _χ_ (EEM) model on the negative (c) and positive (d) electrode, for a
surface coverage of 20 % and under an applied potential of 2 V.
S13