원시데이터 수집 시스템
선정목록으로

The primitive model in classical density functional theory: beyond the standard mean-field approximation

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)

기본 정보

저자
  1. Moritz Bültmann — Physikalisches Institut, Albert-Ludwigs-Universität, 79104 Freiburg, Germany
  2. Andreas Härtel — Physikalisches Institut, Albert-Ludwigs-Universität, 79104 Freiburg, Germany
DOI
1010881361648xac5e7a
저널
Journal of Physics Condensed Matter
발행년도
2022
발행기관
IOP Publishing
피인용수
13
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1088/1361-648x/ac5e7a
토픽
Electrostatics and Colloid Interactions
OpenAlex ID
W4220873008

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
classical density functional theory, electric double layer, supercapacitors, electrolytes, electrostatic interactions
판단 근거
이 논문은 전해질 내 이온의 거동과 전기 이중층(EDL) 구조를 설명하기 위한 고전 밀도 범함수 이론(DFT)의 모델링 개선을 다룹니다. 이는 수소연료전지(PEMFC)의 핵심 구성 요소인 전해질막 및 이온 전도 메커니즘을 이해하고 설계하는 데 이론적 기초로 활용될 수 있습니다.
R&D 활용 포인트
PEMFC용 고분자 전해질막(PEM) 내에서의 이온 이동 및 계면에서의 전하 분포를 정밀하게 예측하는 시뮬레이션 모델링 기술로 응용 가능합니다.
평가 입력
본문 142,553자 중 30,032자 발췌

초록

Abstract The primitive model describes ions by point charges with an additional hard-core interaction. In classical density-functional theory (DFT) the mean-field electrostatic contribution can be obtained from the first order of a functional perturbation of the pair potential for an uncharged reference system of hard spheres. This mean-field electrostatic term particularly contributes at particle separations that are forbidden due to hard-core overlap. In this work we modify the mean-field contribution such that the pair potential is constant for distances smaller than the contact distance of the ions. We motivate our modification by the underlying splitting of the potential, which is similar to the splitting of the Weeks–Chandler–Andersen potential and leads to higher-order terms in the respective expansion of the functional around the reference system. The resulting formalism involves weighted densities similar to the ones found in fundamental measure theory. To test our modifications, we analyze and compare density profiles, direct and total correlation functions, and the thermodynamic consistency of the functional via a widely established sum rule and the virial pressure formula for our modified functional, for established functionals, and for data from computer simulations. We found that our modifications clearly show improvements compared to the standard mean-field functional, especially when predicting layering effects and direct correlation functions in high concentration scenarios; for the latter we also find improved consistency when calculated via different thermodynamic routes. In conclusion, we demonstrate how modifications toward higher order corrections beyond mean-field functionals can be made and how they perform, by this providing a basis for systematic future improvements in classical DFT for the description of electrostatic interactions.

본문 142,553자

본문 펼치기
### The Primitive Model in Classical Density Functional Theory: Beyond the Standard Mean-Field Approximation Moritz B¨ultmann a) and Andreas H¨artel b) _Physikalisches_ _Institut,_ _Albert-Ludwigs-Universit¨at,_ _79104_ _Freiburg,_ _Germany_ (Dated: 6 April 2022) A peer-reviewed version of this article was published in J. Phys.: Condens. Matter 34 235101 on the 6th of April 2022 [https://doi.org/10.1088/1361-648x/ac5e7a.](https://doi.org/10.1088/1361-648x/ac5e7a) The primitive model describes ions by point charges with an additional hard-core interaction. In classical density-functional theory the mean-field electrostatic contribution can be obtained from the first order of a functional perturbation of the pair potential for an uncharged reference system of hard spheres. This meanfield electrostatic term particularly contributes at particle separations that are forbidden due to hard-core overlap. In this work we modify the mean-field contribution such that the pair potential is constant for distances smaller than the contact distance of the ions. We motivate our modification by the underlying splitting of the potential, which is similar to the splitting of the Weeks-Chandler-Andersen potential and leads to higher-order terms in the respective expansion of the functional around the reference system. The resulting formalism involves weighted densities similar to the ones found in fundamental measure theory. To test our modifications, we analyze and compare density profiles, direct and total correlation functions, and the thermodynamic consistency of the functional via a widely established sum rule and the virial pressure formula for our modified functional, for established functionals, and for data from computer simulations. We found that our modifications clearly show improvements compared to the standard mean-field functional, especially when predicting layering effects and direct correlation functions in high concentration scenarios; for the latter we also find improved consistency when calculated via different thermodynamic routes. In conclusion, we demonstrate how modifications towards higher order corrections beyond mean-field functionals can be made and how they perform, by this providing a basis for systematic future improvements in classical densityfunctional theory for the description of electrostatic interactions. I. INTRODUCTION In recent years electric energy storage solutions gained a lot of attention due to the rising interest in renewable energy sources and the demand for mobile, electrical devices. Supercapacitors with their high charging speed are a highly investigated candidate <sup>1–3</sup> . They comprise of porous electrodes, and an electrolyte consisting of electrically charged ions and a solvent. When a potential difference is applied to the electrodes of a capacitor, the ions counteract the external influence by accumulating at the electrode of opposite charge. There they form a layer opposing the surface charge on the electrodes, which, as a whole, is typically called electric double layer (EDL). These EDLs have been studied for decades in numerous contexts and disciplines like physical interfaces in, biological membranes, or colloidal surfaces chemistry. In recent times research focuses particularly on the EDL structure which is of importance for charge storage in narrow confinements. An important atomistic model to represent and study the structure of electrolytes is the primitive model (PM). In this model hard-core interactions between ions represent volume exclusion, and Coulomb interactions of a)Electronic mail: [moritz.bueltmann@physik.uni-freiburg.de](mailto:moritz.bueltmann@physik.uni-freiburg.de) b)Electronic mail: [andreas.haertel@physik.uni-freiburg.de](mailto:andreas.haertel@physik.uni-freiburg.de) point-charges within the hard cores capture the electrostatics. The model often is studied by means of computer simulations in a controlled environment <sup>4–8</sup>, but the thermodynamic insight gained from simulation studies is limited, compared to a rigorous theoretical approach. A good candidate for such a theoretical framework that gives access to structure and thermodynamics of electrolytes is classical density-functional theory (DFT) <sup>9,10</sup> . Its key quantity is an energy functional of the one-body densities of the system that, applied to the equilibrium densities, yields the grand potential. Even if in most systems the exact functional is not known, sophisticated approximate functionals were developed successfully for certain systems, in particular for rather simple particle interactions. For instance, the 1D hard rod potential is one of the rare exactly solvable systems <sup>11</sup>, the hard-sphere potential is excellently treated in fundamental measure theory (FMT) <sup>12–14</sup>, the square well potential gives access to wetting phenomenons <sup>15</sup>, and the Yukawa potential allows for the description of screened ions <sup>16</sup> . For many interaction potentials, in particular short-ranged ones at low densities, mean-field approximations yield sufficiently accurate results, because the potentials and correlations between particles decay rapidly at large interaction distances. However, electrostatic interactions decay rather weakly and, at the same time, finite sized ions yield structure, especially close to electrodes and in dense systems. In consequence, the mean-field approach for the PM produces rather poor quantitative predictions. One way to avoid mean-field descriptions is utilizing the mean spherical approximation (MSA), from which more accurate functionals for the PM have been derived <sup>17–22</sup> . The MSA follows from a closure relation to the Ornstein-Zernike equation of liquid state theory <sup>10</sup> . The approximations made by such closure relations, however, are not as straight-forward as, for instance, approximations to the exact Barker-Henderson perturbation theory <sup>23</sup> . The electrostatic mean-field functional is the simplest term in this exact perturbation and follows from skipping all contributions of “higher order”. In this work, we go beyond the electrostatic mean-field approximation of the PM by regarding these higher order terms in the Barker-Henderson perturbation instead of simply neglecting them. Such an approach has recently been applied to the hard-core Yukawa fluid, yielding very accurate density profiles, chemical potentials, and phase diagrams <sup>24</sup> . In the following, we start by introducing core concepts of DFT and the PM in section II. We then derive the regular mean-field functional and our modified functionals from the Barker-Henderson perturbation theory and give an outline on how to implement these functionals numerically. In section III we test different aspects of our modified functionals and compare our findings to those obtained from the regular mean-field functional, from molecular dynamics simulation data, and from functionals that exploit the MSA closure. For our study we employ two geometries, one for an infinitely large parallelplate capacitor and another one for the spherically symmetric surrounding of a fixed particle. The latter allows us to obtain the pair correlation function via the Percus trick instead of taking functional derivatives. Having at hand both routes to the correlation functions, we also test the consistency of the functionals by comparing correlation functions obtained via the different routes. As thermodynamic consistency checks we further examine the contact density theorem and the virial pressure formula. We conclude with a discussion of our results. II. THEORY To model electrolytes we use the primitive model (PM). The solvent is modeled as dielectric background with relative permittivity _ε_ which is accounted for in the electrostatic interactions of the ions via the Bjerrum length λB = _e_ <sup>2</sup> _/_ (4 _πε_ 0 _εk_ B _T_ ). The latter contains the elementary charge _e_, the vacuum permittivity _ε_ 0, Boltzmann’s constant _k_ B, and the temperature _T_ . The pair potential of an ion _i_ of species _ν_ with an ion _j_ of species _ν_ <sup>_′_</sup> at positions _⃗_ r _νi_ and _⃗_ r _ν′j_ consists of two parts: a purely repulsive hard-sphere interaction _vνν_ <sup>HS</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>),</sup> <sup>and</sup> the respective Coulomb potential _vνν_ <sup>ES</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>between</sup> <sup>point</sup> charges, sitting at the centers of the ions. Accordingly, the resulting total pair potential reads In this geometry the external potential is implemented directly in section III and only the remaining boundary conditions for the Poisson equations are calculated in appendix B. Theoretically, we describe electrolyte systems in the thermodynamic grand canonical ensemble. It allows for heat and particle exchange, which means that the thermodynamic potential Ω( _T, V, µ_ ) depends on the temperature _T_, the system volume _V_, and the chemical potential _µ_ . In a system with charged electrodes an additional pair of conjugated variables that contribute to the grand potential is given by the electrode charge and the electrode potential <sup>25</sup> . 2 _vνν_ <sup>PM</sup> <sup>_′_</sup> <sup>(</sup> _νν_ <sup>HS</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>) +</sup> <sup>_v_</sup> _νν_ <sup>ES</sup> <sup>_′_</sup> _νν_ <sup>PM</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>) =</sup> <sup>_v_</sup> _νν_ <sup>HS</sup> <sup>_′_</sup> _νν_ <sup>ES</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>) =</sup>   _r_ _<_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> 2 <sup>_<u>dν′</u>_</sup> _<u>∞</u>_ <u>λB</u> _<u>Zν</u>_ _<u>Zν′</u>_  <u>λ</u> _β_ <u>B</u> _<u>ZνrZν′</u>_ 2, _r_ _≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> (1) where _r_ := _|_ r _⃗_ _νi−⃗_ r _ν_ <sup>_′_</sup> _j|_ is the distance between the two particles and _dν_ are the hard-sphere diameters of the respective species _ν_ . We further use the inverse temperature _β_ <sup>_−_</sup> <sup>1</sup> = _k_ B _T_ as a thermal energy unit. Note that in eq. (1) the Coulomb potential has no influence on the total pair potential at distances _r_ _<_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> 2 <sup>_<u>dν′</u>_</sup> . As we will see in the next section this is not the case for mean-field functionals in the framework of classical density-functional theory (DFT) when the hard-sphere and electrostatic contributions are treated separately. We are interested in two different geometries generated by certain external potentials. Each external potential consists of a hard impenetrable part and an electrostatic contribution, thus,  _β_ _<u>Zν′</u>_ _r_ 2 _r_ _≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ ext <sup>HS</sup> _,ν_ <sup>(r) +</sup> <sup>_⃗_</sup> <sup>_V_</sup> ext <sup>ES</sup> <sup>_⃗_</sup> _V_ ext _,ν_ (r) = _⃗_ _V_ ext <sup>HS</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> ext <sup>ES</sup> _,ν_ <sup>(r)</sup> <sup>_⃗_</sup> <sup>_._</sup> (2) To model a parallel-plate capacitor (“ _||_ ”) with potential difference ∆Φ between the plates we employ hard walls in the _xy_ -plane at _z_ = 0 and _z_ = _L_ and a linear electrostatic potential within the walls, where the plates have the potentials _±_ <sup><u>∆Φ</u></sup> 2 <sup>,</sup> _V_ ext <sup>_||_</sup> _,ν_ <sup>(</sup> <sup>_z_</sup> <sup>) =</sup> - _<u>∞</u>_ <u>∆Φ</u> for _z_ _<_ <sup>_<u>d</u>_</sup> 2 <sup>_<u>ν</u>_</sup> for _z_ _<_ <sup>_<u>dν</u>_</sup> 2 _<u>∞</u>_ <u>∆Φ</u> 2 <sup>and</sup> <sup>_z_</sup> <sup>_> L −_</sup> <sup>_<u>dν</u>_</sup> <u>∆Φ2</u> <sup>_−_</sup> <sup><u>∆Φ</u></sup> _L_ <sup>_z_</sup> else . (3) Note that in section III the electrostatic contribution is implemented as a boundary condition of the Poisson equation. The other external potential describes a testparticle setup with a rotational symmetry (“ _◦_ ”), which leads to a spherical geometry. The external potential fixes a particle with charge _Q_ test at the origin and reads _V_ ext <sup>_◦_</sup> _,ν_ <sup>(</sup> <sup>_r_</sup> <sup>) =</sup> λ _∞_ B _Zν_ _<u>Q</u>_ <u>test</u> _r_ elsefor _r_ . _<_ ( _d_ test + _dν_ ) _/_ 2 _<u>Q</u>_ <u>test</u> <u>test</u> _r_ else . (4) The key quantity of DFT is the one-body density distribution _δ_ (r _⃗_ _−⃗_ r _νi_ ) _ρ_ <sup>(1)</sup> _ν_ <sup>(r) =</sup> <sup>_⃗_</sup> - _Nν_ _i_ =1 , (5) its minimum this functional equals the grand potential Ωand the densities that minimize the functional are the equilibrium densities <sup>9,30,31</sup> . The energy functional can be written in the form (9) dr _⃗_ _ρν_ (r)( _⃗_ _V_ ext _,ν_ (r) _⃗_ _−_ _µν_ ) _ν_ which is defined as an ensemble average (or classical trace, denoted by _⟨. . . ⟩_ ) over the density operator, a sum of _δ_ -distributions over all particle positions _⃗_ r _νi_ <sup>26</sup> . Similarly the _n_ -body density distribution _ρ_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> (r _⃗_ 1 _, . . .,⃗_ r _n_ ) is obtained. The two-body density distribution is related to the pair-correlation function Ω[ _{ρi}_ ] = _<u>ρ</u>_ <sup>(2)</sup> _<u>νν</u>_ <sup>_′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> _νν_ <sup>(2)</sup> <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) =</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>(1)</sup> _ν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup>)</sup> _gνν_ <sup>(2)</sup> <sup>_′_</sup> <sup>_⃗_</sup> _ρ_ <sup>(1)</sup> _ν_ <sup>_⃗_</sup> <sup>(1)</sup> _ν_ <sup>(r )</sup> <sup>_⃗_</sup> <sup>_ρ_</sup> <sup>(1)</sup> _ν_ <sup>_′_</sup> <sup>_⃗_</sup> <sup>(2)</sup> _<u>νν</u>_ <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_<u>,⃗</u>_</sup> <sup><u>r</u></sup> <sup>_′_</sup> <sup><u>)</u></sup> + _F_ id[ _{ρi}_ ] + _F_ ex[ _{ρi}_ ] . The first term contains the external potential _V_ ext that couples to every particle individually and the speciesdependent chemical potential _µν_ . _F_ id captures all contributions except those arising from particle interactions and approaches the ideal (gas) free energy in the minimum of the functional. This ideal free-energy functional is given by , (6) which shows the local density fluctuations of a fluid compared to an ideal gas. It is directly related to the total pair-correlation function _h_ <sup>(2)</sup> by _h_ <sup>(2)</sup> = _g_ <sup>(2)</sup> _−_ 1. For convenience we use the notation _ρν_ := _ρν_ <sup>(1)</sup> in the remaining work. Further, direct correlation functions _c_ <sup>(2)</sup> are defined via the Ornstein-Zernike (OZ) equation <sup>27</sup> dr _⃗_ _ρν_ (r) _⃗_ _⃗_ _ν_ _βF_ id[ _{ρi}_ ] = _ν_ �ln - _ρν_ (r)Λ _⃗_ <sup>3</sup> _ν_ - _−_ 1�, (10) _h_ <sup>(2)</sup> _νν_ <sup>_⃗_</sup> <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) =</sup> <sup>_c_</sup> <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>)</sup> dr _⃗_ <sup>_′′_</sup> _c_ <sup>(2)</sup> _νµ_ <sup>_⃗_</sup> <sup>_⃗_</sup> _⃗_ <sup>(2)</sup> _νµ_ <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′′_</sup> <sup>)</sup> <sup>_ρµ_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_′′_</sup> <sup>)</sup> <sup>_h_</sup> <sup>(2)</sup> _µν_ <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>(2)</sup> _µν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_′′,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) .</sup> + _µ_ R <sup>3</sup> (7) These direct correlation functions emerge from the direct interaction of two closely situated particles. Together with the indirect correlations via one or more intermediate particles, as covered by the second term on the right-hand side of eq. (7), they contribute to the total correlation function. Since, in general, the pair-correlation function is obtained from the one- and two-body density distributions, Percus showed that it can also be obtained without knowledge of _ρ_ <sup>(2)</sup> by a simple trick <sup>28,29</sup> . A (fixed) external potential _v_ ext _,ν_, that resembles the pair interaction of one particle of species _ν_ with the surrounding particles of species _ν_ <sup>_′_</sup>, is placed at the origin of the system. Then the one-particle density distribution of the particles in the system normalized with respect to the respective bulk density of the homogeneous system yields the pair correlation function, _<u>ρ</u>_ <sup>(1)</sup> _νν_ <sup>(2)</sup> <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) =</sup> _<u>ν</u>_ <sup>_′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> _gνν_ <sup>(2)</sup> <sup>_′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> _ρ_ <sup>(1)</sup> _ν_ <sup>_′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>(1)</sup> _ν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_|v_</sup> <sup>ext</sup> <sup>_,ν_</sup> <sup>= 0)</sup> <sup>(1)</sup> _<u>ν</u>_ <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′|v_</sup> <sup><u>ext</u></sup> <sup>_<u>,ν</u>_</sup> <sup><u>)</u></sup> <sup>_⃗_</sup> where Λ _ν_ = _h/_ <sup>_√_</sup> 2 _πmνk_ B _T_ is the thermal wavelength, _h_ is Planck’s constant, and _mν_ is the mass of a particle of species _ν_ . All particle interactions are taken into account in the last term of eq. (9), which is usually called _excess_ _term_ and covers all contributions that excess those of the ideal gas. Its second functional derivative gives the aforementioned direct correlation functions, _c_ <sup>(2)</sup> _<u>δ</u>_ <sup>2</sup> _<u>F</u>_ <u>ex[</u> _<u>{ρi}</u>_ <u>]</u> (11) _νν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) =</sup> <sup>_−β_</sup> _δρν_ (r ) _⃗_ _δρν′_ (r _⃗_ <sup>_′_</sup> ) <sup>.</sup> Thus, in addition to the Percus trick, we can obtain the total correlation function from DFT via the direct correlation functions and solving the OZ equation. We mention that higher-order functional derivatives of of the excess term define a whole hierarchy of _n_ -body direct correlation functions. B. Excess Functionals The excess functional _F_ ex of eq. (9) gives the excess free energy in the minimum of the functional. In the case of the hard-sphere model several versions of sophisticated functionals exist, for instance <sup>13,32</sup>, which are typically based on fundamental measure theory <sup>12,14</sup> . In our numerical analysis in section III we use the _White_ _Bear_ _mark_ _II_ functional <sup>13</sup> with an correction by Tarazona <sup>32</sup>, because the resulting functional fulfills thermodynamic sum rules and predicts thermodynamic properties like the bulk pressure, the liquid-solid phase transition, paircorrelation structures in the vicinity of walls, and the interfacial free energy very accurately <sup>13,33–35</sup> . 1. Barker-Henderson Perturbation Theory For the PM, we need to construct a functional that takes into account both the hard-sphere and the Coulomb . (8) In other words, the one-body distribution of the particles surrounding the “fixed particle” in the origin, represented by the external field, yields the required two-body distribution. A. Classical Density-Functional Theory In the framework of DFT one minimizes an energy functional Ω[ _{ρi}_ ] of the local particle densities _ρν_ (r). _⃗_ In interactions. Since a hard-sphere system can be represented very accurately by the aforementioned functional, we treat it as a reference system. Then the Coulomb interactions are added as a perturbation. Accordingly, the decomposition of the perturbed pair potential has the form #### |vνν δ ′ ( r ) | #### |vνν θ ′ ( r ) | #### |vνν ES ′ ( r ) | _vνν′_ (r _⃗_ _,⃗_ r <sup>_′_</sup> ; _λ_ ) = _vνν_ <sup>HS</sup> <sup>_′_</sup> <sup>_⃗_</sup> _vνν′_ (r _⃗_ _,⃗_ r <sup>_′_</sup> ; _λ_ ) = _vνν_ <sup>HS</sup> <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) +</sup> <sup>_λv_</sup> _νν_ <sup>pert</sup> <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>),</sup> 0 _≤_ _λ ≤_ 1, (12) where _λ_ is a perturbation measure that “switches on” the perturbation. Note, that due to symmetry we can use _vνν′_ (r _⃗_ _,⃗_ r <sup>_′_</sup> ) := _vνν′_ ( _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ ), without loss of generality. Now, the corresponding excess free energy functional is given by _⃗_ _νν_ <sup>HS</sup> <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>_,⃗_</sup> <sup>r</sup> <sup>_′_</sup> <sup>) +</sup> <sup>_λv_</sup> _νν_ <sup>pert</sup> <sup>_′_</sup> <sup>_⃗_</sup> ### |v ( r ) | 0 ### 0 dν +2 dν′ r _F_ ex = _F_ ex <sup>HS</sup> ex ex <sup>HS</sup> <sup>+</sup> <sup>_F_</sup> <sup>pert</sup> ex ex <sup>pert</sup> + _F_ <sup>corr</sup> ex, (13) <sup>corr</sup> FIG. 1. Sketch for the absolute value of different electrostatic pair potentials _vνν′_ that all yield the pair potential _vνν_ <sup>PM</sup> <sup>_′_</sup> <sup>of</sup> the PM, when combined with pair potentials of hard spheres with diameters _dν_, given in eq. (1). 2. Mean-Field Electrostatics Functional which can be derived from the Barker-Henderson perturbation theory <sup>23,36</sup> and also follows from a functional integration of _δF_ <sup>ex</sup> _/δvνν′_ (r _⃗_ _,⃗_ r <sup>_′_</sup> ) over _λ_ <sup>9</sup> . The involved functionals read ex <sup>pert</sup> [ _{ρi}_ ] = <sup><u>1</u></sup> 2 �� dr _⃗_ 1 dr _⃗_ 2 _ρν_ (r _⃗_ 1) _ρν′_ (r _⃗_ 2) ex _F_ <sup>pert</sup> 2 _νν_ <sup>_′_</sup> As a simple approximation of eq. (13) one can neglect the correlation term _F_ ex <sup>corr.</sup> <sup>If</sup> <sup>we</sup> <sup>are</sup> <sup>interested</sup> <sup>in</sup> <sup>a</sup> <sup>PM</sup> with pair-interaction potential _v_ <sup>PM</sup> the correlation term _F_ ex <sup>corr.</sup> <sup>If</sup> <sup>we</sup> <sup>are</sup> <sup>interested</sup> <sup>in</sup> <sup>a</sup> <sup>PM</sup> with pair-interaction potential _vνν_ <sup>PM</sup> <sup>_′_</sup> <sup>as</sup> <sup>given</sup> <sup>in</sup> <sup>eq.</sup> <sup>(1)</sup> by _vνν_ <sup>HS</sup> <sup>_′_</sup> <sup>+</sup> <sup>_v_</sup> _νν_ <sup>ES</sup> <sup>_′_</sup> <sup>,</sup> <sup>the</sup> <sup>respective</sup> <sup>free-energy</sup> <sup>functional</sup> <sup>be-</sup> ex ex being the mean-field comes _F_ ex = _F_ ex <sup>HS</sup> <sup>+</sup> <sup>_F_</sup> <sup>MF</sup> with _F_ <sup>pert</sup> Coulomb free-energy functional _⃗_ _⃗_ (16) This approach is commonly used and, for vanishing hard-sphere contributions, results in a functional that is minimized by the density profiles that solve PoissonBoltzmann equation. (This can be seen by rewriting the functional in terms of the electrostatic potential and plugging it into the Euler equations shown in eq. (25) <sup>37</sup> .) The Coulomb mean-field functional from eq. (16) can be used as a starting point from which more sophisticated functionals can be created by adding non-vanishing correlation terms. _× vνν_ <sup>pert</sup> <sup>_′_</sup> <sup>(</sup> <sup>_|_</sup> <sup>r</sup> <sup>_⃗_</sup> <sup>1</sup> <sup>_−⃗_</sup> <sup>r2</sup> <sup>_|_</sup> <sup>)</sup> ex ex being the mean-field comes _F_ ex = _F_ ex <sup>HS</sup> <sup>+</sup> <sup>_F_</sup> <sup>MF</sup> with _F_ <sup>pert</sup> Coulomb free-energy functional _νν_ <sup>HS</sup> <sup>_′_</sup> <sup>+</sup> <sup>_v_</sup> _νν_ <sup>ES</sup> <sup>_′_</sup> ex ex <sup>HS</sup> <sup>+</sup> <sup>_F_</sup> <sup>MF</sup> ex ex <sup>MF</sup> with _F_ <sup>pert</sup> functional and _⃗_ _⃗_ . _|_ r _⃗_ 1 _−⃗_ r2 _|_ �� _ZνZν_ <sup>_′_</sup> dr _⃗_ 1 dr _⃗_ 2 _<u>ρν</u>_ <u>(r</u> _⃗_ <u>1)</u> _<u>ρν′</u>_ <u>(r</u> _⃗_ <u>2)</u> (14) (15) _F_ ex <sup>MF</sup> ex <sup>MF[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup><u>λ</u></sup> 2 _β_ <sup><u>B</u></sup> ex <sup>corr[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup><u>1</u></sup> 2 _νν_ <sup>_′_</sup> _F_ ex <sup>corr</sup> 2 _β_ 2 1 - d _λ_ _νν_ <sup>_′_</sup> 0 �� dr _⃗_ 1 dr _⃗_ 2 _ρν_ (r _⃗_ 1) _ρν′_ (r _⃗_ 2) _νν_ <sup>pert</sup> <sup>_′_</sup> <sup>(</sup> <sup>_|_</sup> <sup>r</sup> <sup>_⃗_</sup> <sup>1</sup> <sup>_−⃗_</sup> <sup>r2</sup> <sup>_|_</sup> <sup>)</sup> <sup>_h_</sup> _νν_ <sup>(2)</sup> <sup>_′_</sup> <sup>_⃗_</sup> _× vνν_ <sup>pert</sup> <sup>_′_</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> _νν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>1</sup> <sup>_,⃗_</sup> <sup>r2;</sup> <sup>_λ_</sup> <sup>) .</sup> <sup>_⃗_</sup> <sup>_⃗_</sup> <sup>(2)</sup> The first term on the right-hand side of eq. (13) contains the hard-sphere excess free-energy functional and the second term contains a mean-field treatment of the perturbation potential, as given in eq. (14). The third term, as given in eq. (15), occurs due to the non-linear behavior of the excess free energy when adding two pair potentials and is called correlation term. Here, _h_ <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>1</sup> <sup>_,⃗_</sup> <sup>r2;</sup> <sup>_λ_</sup> <sup>)</sup> is the total pair-correlation function in a system with the equilibrium density that minimizes the functional at full perturbation but with pair potential _vνν′_ (r; _⃗_ _λ_ ) depending on _λ_ . All free energy contributions that arise from correlations between the two potentials _vνν_ <sup>HS</sup> <sup>_′_</sup> <sup>and</sup> <sup>_v_</sup> _νν_ <sup>pert</sup> <sup>_′_</sup> are treated within eq. (15). We stress that the decomposition in eq. (12) is not unique for a pair potential as given in eq. (1) for a reference hard-sphere system. Obviously, arbitrary functions that vanish on [( _dν_ + _dν′_ ) _/_ 2 _, ∞_ ) can be added to the interaction potential _vνν′_ ( _r_ ) without changing its value that is infinite for _r_ _<_ ( _dν_ + _dν′_ ) _/_ 2. Some examples for perturbation potentials are shown in fig. 1. While all these different functions lead to the same pair potential _vνν_ <sup>PM</sup> <sup>_′_</sup> when added to the hard-sphere potential _vνν_ <sup>HS</sup> <sup>_′_</sup> <sup>, they result</sup> in different perturbation functionals _F_ ex <sup>pert</sup> and _F_ ex <sup>corr.</sup> where the total correlation function does not depend on the switching parameter _λ_ and has the form of a lowdensity hard-sphere fluid. The involved Heaviside step function _θ_ is defined by _θ_ ( _r_ ) = 1 for _r_ _≥_ 0 and _θ_ ( _r_ ) = 0 _νν_ <sup>HS</sup> <sup>_′_</sup> <sup>and</sup> <sup>_v_</sup> _νν_ <sup>pert</sup> <sup>_′_</sup> 3. Core-Corrected Functional To take advantage of the correlation term in eq. (13), one can establish a low-density treatment of eq. (15) by applying 1 <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>1</sup> <sup>_,⃗_</sup> <sup>r2;</sup> <sup>_λ_</sup> <sup>)</sup> <sup>_≈−θ_</sup> _⃗_ _⃗_, (17) d _λ h_ <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>_⃗_</sup> 0 - _<u>dν</u>_ <u>+</u> _<u>dν′</u>_ _<u>dν′</u>_ 2 _−|_ r _⃗_ 1 _−⃗_ r2 _|_ ex <sup>pert</sup> and _F_ ex <sup>corr</sup> ex <sup>corr.</sup> for _r_ _<_ 0. If we use this approximation and consider again the pair potential of the PM from eq. (1), then the ex has a similar form as the mean correlation term _F_ <sup>corr</sup> field term from eq. (16) and merging both terms yields the core-corrected mean-field functional _<u>ρν</u>_ <u>(r</u> _⃗_ <u>1)</u> _<u>ρν′</u>_ <u>(r</u> _⃗_ <u>2)</u> _|_ r _⃗_ 1 _−⃗_ r2 _|_ (18) to the pair potential _vνν_ <sup>PM</sup> <sup>_′_</sup> <sup>,</sup> <sup>where</sup> <sup>the</sup> <sup>potential</sup> <sup>vanishes</sup> when the hard cores overlap. Instead, we now follow the approach by Weeks et. al. <sup>39</sup>, who split pair potentials in a way such that the soft perturbation is continuous within the hard core. We apply this idea to _vνν_ <sup>PM</sup> <sup>_′_</sup> <sup>by</sup> <sup>splitting</sup> <sup>of</sup> the continuous electrostatic pair potential which gives the constant value of the Coulomb pair potential at particle contact for two particles in the core region, as shown in fig. 1. The identical potential can be achieved by a point-like test charge in the vicinity of a homogeneously charged spherical shell of radius ( _dν_ + _dν′_ ) _/_ 2. If the test charge resides inside the shell, the potential is constant. On the outside the test particle experiences the regular Coulomb potential of the entire charge of the shell. A similar ansatz was used to modify the Poisson-Boltzmann theory for point charges such that it respects correlations from steric interactions <sup>40,41</sup> . The resulting perturbation functional is ex <sup>_θ_</sup> <sup>[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup><u>λ</u></sup> 2 _β_ <sup><u>B</u></sup> _F_ <sup>_θ_</sup> _νν_ <sup>_′_</sup> �� dr _⃗_ 1 dr _⃗_ 2 (22) 2 _β_ _ZνZν′_ - _<u>dν</u>_ <u>+</u> _<u>dν′</u>_ <u>+2</u> _<u>dν′</u>_ - _r_ _<_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> 2 <sup>_<u>dν′</u>_</sup> - _vνν_ <sup>ES</sup> <sup>_′_</sup> _νν_ <sup>_′_</sup> 2 2 _vνν_ <sup>ES</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> 2 _r_ _≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> _νν_ <sup>_′_</sup> _νν_ <sup>ES</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> 2 _r_ _≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> 2, <sup>_<u>dν′</u>_</sup> _vνν_ <sup>_δ_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>) =</sup> _× θ_ - 2 _|_ r _⃗_ 1 _−⃗_ r2 _| −_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> with _F_ ex = _F_ ex <sup>HS</sup> of the hard ex <sup>HS</sup> <sup>+</sup> <sup>_F_</sup> ex <sup>_θ_</sup> with _F_ ex = _F_ ex <sup>HS</sup> <sup>+</sup> <sup>_F_</sup> ex <sup>_θ_</sup> <sup>.</sup> <sup>Due</sup> <sup>to</sup> <sup>the</sup> <sup>infinite</sup> <sup>repulsiveness</sup> of the hard spheres, forbidden areas in phase space exist that cannot be visited by the system compared to a system without hard-sphere repulsion. Thus, one can interpret the result in eq. (18) as a phase-space restriction of the pure mean-field term, where electrostatic mean-field contributions from the forbidden areas in phase space are ignored. Interestingly, the functional in eq. (18) can also be obtained if the perturbation potential + <sup><u>λB</u></sup> _vνν_ <sup>_θ_</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>) =</sup> 0 _r_ _<_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> 2 <sup>_<u>dν′</u>_</sup> 2 _vνν_ <sup>ES</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> 2 _r_ _≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> _νν_ <sup>ES</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> 2 _r_ _≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> 2 (19) 2 <sup>_<u>dν′</u>_</sup> _F_ ex <sup>_δ_</sup> ex <sup>_δ_</sup> <sup>[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup>_<u>F</u>_</sup> ex <sup>_θ_</sup> ex <sup>_θ_</sup> <sup>[</sup> <sup>_{ρi}_</sup> <sup>]</sup> dr _⃗_ 1 R <sup>3</sup> _\V_ <sup>_′_</sup> _νν_ <sup>_′_</sup> _<u>ZνZν′</u>_ _dν_ + _dν′_ is used in eq. (12). This perturbation now is a Coulomb potential with a cut out center and leads to a functional ex already has the form where the perturbation term _F_ <sup>pert</sup> _β_ dr _⃗_ 2 _ρν_ (r _⃗_ 1) _ρν′_ (r _⃗_ 2) . (23) ex already has the form where the perturbation term _F_ <sup>pert</sup> of _F_ ex <sup>_θ_</sup> <sup>,</sup> <sup>as</sup> <sup>given</sup> <sup>in</sup> <sup>eq.</sup> <sup>(18).</sup> <sup>The</sup> <sup>correlation</sup> <sup>term</sup> <sup>can</sup> simply be ignored. As it turns out, the functional _F_ ex <sup>_δ_</sup> <sup>performs much bet-</sup> ter than the mean-field functional _F_ ex <sup>MF.</sup> <sup>In</sup> <sup>section</sup> <sup>III</sup> we will see that it, for example, predicts the structure of As it turns out, the functional _F_ ex <sup>_δ_</sup> of _F_ ex <sup>_θ_</sup> <sup>,</sup> <sup>as</sup> <sup>given</sup> <sup>in</sup> <sup>eq.</sup> <sup>(18).</sup> <sup>The</sup> <sup>correlation</sup> <sup>term</sup> <sup>can</sup> simply be ignored. Note that we can further get rid of the Heaviside function in eq. (18) by modifying the integration volume for r2 in this equation from the entire space R <sup>3</sup> to ter than the mean-field functional _F_ ex <sup>MF.</sup> <sup>In</sup> <sup>section</sup> <sup>III</sup> we will see that it, for example, predicts the structure of electric double layers well for strong electrostatic interactions and high densities. This difference in performance originates from the different pair potentials _vνν_ <sup>_θ_</sup> <sup>_′_</sup> <sup>and</sup> <sup>_v_</sup> _νν_ <sup>_δ_</sup> <sup>_′_</sup> <sup>,</sup> as defined in eqs. (19) and (22). While the latter is continuous, the former has a discontinuity at the contact separation that leads to the poor performance. We remind that the potential in eq. (22) as well as all potentials shown in fig. 1 result in the same Hamiltonian, respectively, and, thus, in the same physics. However, ex ex differ and, the corresponding functionals _F_ <sup>pert</sup> and _F_ <sup>corr</sup> consequently, their approximations can predict contra _νν_ <sup>_θ_</sup> <sup>_′_</sup> <sup>and</sup> <sup>_vδ_</sup> _V_ <sup>_′_</sup> := _V_ <sup>_′_</sup> (r _⃗_ 1) = - 2, (20) r2 _∈_ R <sup>3��</sup> _|_ r _⃗_ 1 _−⃗_ r2 _| ≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> which is _the_ _entire_ _space_ _without_ _the_ _volume_ _of_ _a_ _sphere_ _with_ _radius_ _<u>dν</u>_ <u>+2</u> _<u>dν′</u>_ _and_ _center_ _at⃗_ _r_ 1. Accordingly, the functional now reads _V_ <sup>_′_</sup> dr _⃗_ 2 ex ex <sup>pert</sup> and _F_ <sup>corr</sup> can ex <sup>_θ_</sup> <sup>[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup><u>λ</u></sup> 2 _β_ <sup><u>B</u></sup> _ZνZν′_ dr _⃗_ 1 _F_ <sup>_θ_</sup> _<u>ρν</u>_ <u>(r</u> _⃗_ <u>1)</u> _<u>ρν′</u>_ <u>(r</u> _⃗_ <u>2)</u> _⃗_ _⃗_ . _|_ r _⃗_ 1 _−⃗_ r2 _|_ 2 _β_ _νν_ <sup>_′_</sup> _⃗_ _⃗_ (21) While the functional _F_ ex <sup>_θ_</sup> <sup>has</sup> <sup>successfully</sup> <sup>been</sup> <sup>utilized</sup> in the past to study under-screening in dense electrolytes ex ex differ and, the corresponding functionals _F_ <sup>pert</sup> and _F_ <sup>corr</sup> consequently, their approximations can predict contradictory behavior for one and the same system. While the functional _F_ ex <sup>_θ_</sup> <sup>has</sup> <sup>successfully</sup> <sup>been</sup> <sup>utilized</sup> in the past to study under-screening in dense electrolytes via its second functional derivative and the OZ relation <sup>38</sup>, it has some significant downsides that we will elaborate in section III. We will see that this functional has low predictive capabilities in almost all situations we studied. In particular, it overestimates contact values as well as layering effects in the vicinity of hard walls greatly. _<u>δ</u>_ <u>Ω[</u> _<u>{ρi}</u>_ <u>]</u> _δρν_ (r) _⃗_ = 0, (24) C. Functional Derivatives In DFT, the variational principle applied to the grand potential energy functional Ω[ _{ρi}_ ], ���� _{ρi}_ = _{_ equilibrium densities _}_ 4. Continuous Core Correction In the previous section we used the discontinuous perturbation potential _vνν_ <sup>_θ_</sup> <sup>_′_</sup> <sup>for the electrostatic contribution</sup> yields Euler-Lagrange equations. By defining a modified chemical potential _µ_ <sup>_∗_</sup> _ν_ <sup>=</sup> <sup>_µν_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>B</sup> <sup>_T_</sup> <sup>ln</sup> �Λ <sup>3</sup> _ν_ <sup>_ρν_</sup> - for chemical chemical potential _µ_ <sup>_∗_</sup> _ν_ <sup>=</sup> <sup>_µν_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>B</sup> <sup>_T_</sup> <sup>ln</sup> �Λ <sup>3</sup> _ν_ <sup>_ρν_</sup> - for chemical potentials _µν_ and corresponding bulk densities _ρν_ of respective species _ν_, the Euler-Lagrange equations for the �Λ <sup>3</sup> _ν_ <sup>_∗_</sup> _ν_ <sup>=</sup> <sup>_µν_</sup> <sup>_−_</sup> <sup>_k_</sup> <sup>B</sup> <sup>_T_</sup> <sup>ln</sup> corresponding bulk <sup>3</sup> _ν_ <sup>_ρν_</sup> equilibrium densities read _⃗_ _βµ_ <sup>_∗_</sup> _ν_ <sup>_⃗_</sup> <sup>_⃗_</sup> _δρν_ (r) _⃗_ case 2 _r_ 2 case 1 _r_ 2 _r_ 1 _r_ <sup>_′_</sup> 0 _⃗_ FIG. 2. Sketch to depict the relevant cases in the Shell Theorem, eq. (29). Integration on the left-hand side (lhs) is over the dashed shell. In case 1, the charge located in _⃗_ r2 is inside the shell, which results in a constant. In case 2, the charge is located outside the shell and, thus, simply feels the field of a total charge located in _⃗_ r1. zero to the rhs integral of eq. (21) by extending the integration volume over _⃗_ r2 to the entire space and subtracting the same integral with an integration volume R <sup>3</sup> _\ V_ <sup>_′_</sup> for r2 (which finally leads to the last term of eq. (30)). In this subtracted term we apply the shell theorem again, but now only the first case on the e of eq. (29) applies. As a result we find _ρν_ (r) = _⃗_ _ρν_ exp <sup>_∗_</sup> _ν_ <sup>_−_</sup> <sup>_βV_</sup> <sup>ext</sup> <sup>_,ν_</sup> <sup>(r)</sup> <sup>_⃗_</sup> <sup>_−_</sup> <sup>_β δF_</sup> _δρ_ <sup><u>ex</u></sup> _ν_ <sup><u>[</u></sup> <sup>_<u>{</u>_</sup> (r) _⃗_ <sup>_<u>ρi}</u>_</sup> <sup><u>]</u></sup> . (25) These equations are update equations which are used to obtain numerical solutions by means of Picard-iterations. Here, the calculation of the right hand side of eq. (25) requires the computation of the first functional derivative of the excess free energy functional. In the following we present these functional derivatives for the previously discussed functionals _F_ ex <sup>MF,</sup> <sup>_F_</sup> ex <sup>_θ_</sup> <sup>,</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>;</sup> <sup>for</sup> <sup>details</sup> <sup>on</sup> ex <sup>MF,</sup> <sup>_F_</sup> ex <sup>_θ_</sup> ex <sup>_θ_</sup> <sup>,</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> discussed functionals _F_ ex <sup>MF,</sup> <sup>_F_</sup> ex <sup>_θ_</sup> <sup>,</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>;</sup> <sup>for</sup> <sup>details</sup> <sup>on</sup> the functional derivative of the hard-sphere term _F_ ex <sup>HS</sup> <sup>we</sup> refer to previous work <sup>42</sup> . the functional derivative of the hard-sphere term _F_ ex <sup>HS</sup> <sup>we</sup> refer to previous work <sup>42</sup> . The functional derivative of the mean-field functional from eq. (16) is _<u>δF</u>_ <u>ex</u> <sup>MF</sup> _⃗_ _β_ <u>ex</u> <sup>MF[</sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> = <sup><u>λB</u></sup> <sup>_<u>Zν</u>_</sup> _δρν_ (r) _⃗_ _β_ _ν_ <sup>_′_</sup> - dr _⃗_ <sup>_′_</sup> <sup>_<u>Zν′ρν′</u>_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>))</u></sup> . (26) _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ The right-hand side (rhs) of eq. (26) is related to the dimensionless electrostatic potential Φ( _⃗_ r) of the system which is related to the charge distribution in the system via the Poisson equation _∇_ <sup>2</sup> Φ( _⃗_ r) = _−_ 4 _π_ λB _ν_ _Zνρν_ (r) _⃗_ (27) and respective electrostatic boundary conditions of the system (e.g. surface charge density of a plate capacitor). The formal solution to this equation can be obtained by means of Green’s functions, which simplifies the above functional derivative to _<u>δF</u>_ <u>ex</u> <sup>MF</sup> _⃗_ _β_ <sup>_<u>ν</u>_</sup> <sup>Φ(</sup> <sup>_⃗_</sup> <sup>r)</sup> (28) <u>ex</u> <sup>MF[</sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> = <sup>_<u>Zν</u>_</sup> _δρν_ (r) _⃗_ _β_ <sup>_⃗_</sup> by replacing the integral with the formal solution. dr _⃗_ 2 dr _⃗_ <sup>_′_</sup> In order to obtain the functional derivative of our modified mean-field functionals _F_ ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>,</sup> <sup>we</sup> <sup>first</sup> <sup>rewrite</sup> eq. (21) in a form that simplifies the derivations. For this �� dr _⃗_ 1 ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> ified mean-field functionals _F_ ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>,</sup> <sup>we</sup> <sup>first</sup> <sup>rewrite</sup> eq. (21) in a form that simplifies the derivations. For this purpose, we apply the Shell Theorem <sup>44</sup>, _F_ <sup>_θ_</sup> ex <sup>_θ_</sup> <sup>[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup><u>λ</u></sup> 2 _β_ <sup><u>B</u></sup> _×_ 2 _β_ _νν_ <sup>_′_</sup> _ZνZν′_ (30) 2 _<u>|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r1 _<u>| −</u>_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ 2 _⃗_ _⃗_ <sup>_<u>dν′</u>_</sup> _ρν_ (r _⃗_ 1) _ρν′_ (r _⃗_ 2) _δ_ _⃗_ _⃗_ _π_ (� _dν_ + _dν′_ ) <sup>2</sup> _<u>|</u>_ r _⃗_ _⃗_ 2 _<u>−⃗</u>_ r <sup>_′_</sup> _<u>|⃗</u>_ _−_ 2 2 _<u>|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r1 _<u>| −</u>_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ _⃗_ _⃗_ _|_ r _⃗_ 2 _−⃗_ r <sup>_′_</sup> _|_ 2 _⃗_ _⃗_ <sup>_<u>dν′</u>_</sup> <u>1</u> _π_ ( _dν_ + _dν′_ ) <sup>2</sup> dr _⃗_ <sup>_′_</sup> <sup>_δ_</sup> - _⃗_ _⃗_ dr _⃗_ 2 - _⃗_ _⃗_ dr _⃗_ 1 _⃗_ _⃗_ _<u>ρν</u>_ <u>(r</u> _⃗_ <u>1)</u> _<u>ρν′</u>_ <u>(r</u> _⃗_ <u>2)</u> _dν_ + _dν_ <sup>_′_</sup> R <sup>3</sup> _\V_ <sup>_′_</sup> , (29) <u>2</u> _dν_ + _dν′_ 2 _|_ r _⃗_ 1 _−⃗_ r2 _| <_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _|⃗_ r1 _−_ <u>1</u> r _⃗_ 2 _|_ 2, _|_ r _⃗_ 1 _−⃗_ r2 _| ≥_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> where the last term on the right-hand-side is the discussed subtracted term. Now, we can take the functional derivative of _F_ ex <sup>_θ_</sup> <sup>and</sup> find =    which is depicted in fig. 2. We replace the term <u>1</u> _|⃗_ r1 _−_ r _⃗_ 2 _|_ in the functional in eq. (21) by the left-hand side (lhs) of eq. (29). Note that this substitution is possible because the integration in eq. (21) is restricted to the volume _V_ <sup>_′_</sup> . To compute the functional derivatives we further aim to remove the restriction to the volume _V_ <sup>_′_</sup> from eq. (21) and complete the integral to cover the entire space instead of the restriction to _V_ <sup>_′_</sup> . For this purpose, we add a _<u>δF</u>_ <u>ex</u> <sup>_θ_</sup> _⃗_ 2 _β_ <u>ex</u> <sup>_θ_</sup> <sup><u>[</u></sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> = <sup>_<u>Zν</u>_</sup> _δρν_ (r) _⃗_ 2 _β_ - _φν′_ _∗_ _δ_ <sup>˜</sup> _νν′_ (r) _⃗_ _ν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> + <sup>_<u>Zν</u>_</sup> 2 _β_ λB - dr _⃗_ <sup>_′_</sup> <sup>_<u>n</u>_</sup> _<u>νν</u>_ <sup>_δ_</sup> <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ (31) _−_ <sup><u>λB</u></sup> _β_ <sup>_<u>Zν</u>_</sup> _ν_ <sup>_′_</sup> _n_ <sup>_θ_</sup> _νν_ <sup>_′_</sup> <sup>(r),</sup> <sup>_⃗_</sup> where we defined the weighted densities eq. (22) with non-vanishing core contribution instead of _vνν_ <sup>_θ_</sup> <sup>_′_</sup> <sup>.</sup> <sup>Consequently,</sup> <sup>an</sup> <sup>additional</sup> <sup>contribution</sup> <sup>appears</sup> ex, which happens to in the perturbation functional _F_ <sup>pert</sup> be equal to the last term from eq. (30), but with opposing sign. This leads to a cancellation of these terms leaving only the first term of eq. (30). As a result, we find _n_ <sup>_δ_</sup> _νν_ <sup>_′_</sup> <sup>(r) =</sup> <sup>_⃗_</sup> _n_ <sup>_δ_</sup> <sup>_⃗_</sup> - _Zν′ρν′_ _∗_ _δ_ <sup>˜</sup> _νν′_ (r) _⃗_ (32a) and _F_ <sup>_δ_</sup> ex <sup>_δ_</sup> <sup>[</sup> <sup>_{ρi}_</sup> <sup>] =</sup> <sup><u>λ</u></sup> 2 _β_ <sup><u>B</u></sup> _n_ <sup>_θ_</sup> _νν_ <sup>_′_</sup> <sup>(r) =</sup> <sup>_⃗_</sup> - _Zν′ρν′_ _∗_ _θ_ <sup>˜</sup> _νν′_ (r) . _⃗_ (32b) dr _⃗_ 2 dr _⃗_ <sup>_′_</sup> �� dr _⃗_ 1 _νν_ <sup>_′_</sup> _ZνZν′_ Here, _f ∗g_ denotes a convolution of functions� _f_ and _g_, i.e. ( _f_ _∗g_ )(r) = _⃗_ dr _⃗_ <sup>_′_</sup> _f_ (r _⃗_ <sup>_′_</sup> ) _g_ (r _⃗_ _−⃗_ r <sup>_′_</sup> ), and _⃗_ _θ_ <sup>˜</sup> _νν′_ <u>2and</u> _δ_ <sup>˜</sup> _νν′_ are spher- _⃗_ 2 _β_ ical( _f_ _∗g_ Heaviside)(r) = _⃗_ - dr _⃗_ functions <sup>_′_</sup> _f_ (r _⃗_ <sup>_′_</sup> ) _g_ (r _⃗_ _−θ_ <sup>˜</sup> _⃗_ r _νν_ <sup>_′_</sup> ), and _′_ (r) := _⃗_ _θ_ <sup>˜</sup> _ννdν′_ +2and _dν′_ <sup>_θ_</sup> _δ_ <sup>˜(</sup> _νν_ <sup>_<u>dν</u>_</sup> _′_ <sup><u>+</u></sup> are spher-2 <sup>_<u>dν′</u>_</sup> _<u>−|</u>_ r _⃗_ _|_ ) (36) 2 _<u>|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r1 _<u>| −</u>_ <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ 2 _⃗_ _⃗_ <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ _⃗_ _⃗_ <sup><u>+</u></sup> 2 <sup>_<u>dν′</u>_</sup> _<u>−|</u>_ r _⃗_ _|_ ) <sup>_⃗_</sup> _×_ _ρν_ (r _⃗_ 1) _ρν′_ (r _⃗_ 2) _δ_ _⃗_ _⃗_ . _π_ ( _dν_ + _dν′_ ) <sup>2</sup> _|_ r _⃗_ 2 _−⃗_ r <sup>_′_</sup> _|_ _⃗_ and _δ_ -distributions _δ_ <sup>˜</sup> _νν′_ (r) := _⃗_ <u>1</u> 2 _π_ ( _dν_ + _dν′_ ) <sup>2</sup> <sup>_δ_</sup> <sup>(</sup> <sup>_|_</sup> <sup>r</sup> <sup>_⃗_</sup> <sup>_| −_</sup> <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> Moreover, similar to eq. (31), its functional derivative reads _⃗_ and _δ_ -distributions _δ_ <sup>˜</sup> _νν′_ (r) := _⃗_ <u>1</u> 2 ). _π_ ( _dν_ + _dν′_ ) <sup>2</sup> <sup>_δ_</sup> <sup>(</sup> <sup>_|_</sup> <sup>r</sup> <sup>_⃗_</sup> <sup>_| −_</sup> <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> Thus, the first term on the rhs of eq. (31) contains the convolution of a spherical _δ_ -distribution with a speciesspecific electrostatic potential 2 _β_ _ν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> - _φν_ <sup>_′_</sup> _∗_ _δ_ <sup>˜</sup> _νν_ <sup>_′_</sup> <sup>�</sup> (r) _⃗_ _<u>δF</u>_ <u>ex</u> <sup>_δ_</sup> _⃗_ _<u>F</u>_ <u>ex</u> <sup>_δ_</sup> <sup><u>[</u></sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> = <sup>_<u>Zν</u>_</sup> _δρν_ (r) _⃗_ 2 _β_ + <sup>_<u>Zν</u>_</sup> 2 _β_ _φν_ (r) = _⃗_ λB - dr _⃗_ <sup>_′_</sup> <sup>_<u>Zνρν</u>_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> (33) _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ (37) λB - dr _⃗_ <sup>_′_</sup> <sup>_<u>n</u>_</sup> _<u>νν</u>_ <sup>_δ_</sup> <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ <sup>.</sup> that only takes the charge density of the respective particle species into account; of course, both charge-specific quantities are connected via Poisson’s equation and all species-specific electrostatic potentials add up to the total electrostatic potential Φ. Similarly, the second term on the rhs of eq. (31) contains potentials of the weighted densities _n_ <sup>_δ_</sup> _νν_ <sup>_′_</sup> <sup>and,</sup> <sup>finally,</sup> <sup>the</sup> <sup>last</sup> <sup>term</sup> <sup>con-</sup> sists of weighted densities _n_ <sup>_θ_</sup> _νν_ <sup>_′_</sup> <sup>.</sup> The careful reader might worry about the numerical feasibility of eq. (33), because bulk charge densities of a single species would produce diverging potential values. This, however, can be circumvented by decomposing the charge densities into a bulk part _ρν_ and an _excess_ part ∆ _ρν_ (r), _⃗_ _ρν_ (r) = _⃗_ _ρν_ + ∆ _ρν_ (r) . _⃗_ (34) Note that, as previously discussed for the last term of the functional itself, the derivative in eq. (37) follows from eq. (31) by skipping the last term. In bulk, eq. (37) evaluates as shown in appendix A such that the contri ex butions to the modified chemical potentials from the _F_ <sup>_δ_</sup> functional are <sup>_∗_</sup> _ν_ <sup>_δ_</sup> <sup>=</sup> <sup>_<u>δF</u>_</sup> <u>ex</u> <sup>_δ_</sup> _⃗_ (38) ���� _ρν_ ( _⃗_ r)= _ρν_ _µ_ <sup>_∗_</sup> _ν_ <sup>_δ_</sup> <sup>_<u>F</u>_</sup> <u>ex</u> <sup>_δ_</sup> <sup><u>[</u></sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> _δρν_ (r) _⃗_ = _−_ <sup>_<u>π</u>_</sup> 6 _<u>Zν</u>_ <u>λB</u> <sup>_<u>π</u>_</sup> 6 _β_ _ν_ <sup>_′_</sup> _Zν′ρν′_ ( _dν_ + _dν′_ ) <sup>2</sup> . _β_ As a consequence, bulk contributions to the different species-specific potentials cancel each other due to the charge neutrality of bulk. At the same time, the structure of the functional derivatives remains unchanged, just all occurrences of _ρν_ (r) _⃗_ straightforwardly must be replaced by ∆ _ρν_ (r). _⃗_ In addition, the bulk part of the densities leads to a separate term that equals the reduced chemical potential and, accordingly, cancels the identical term _βµ_ <sup>_∗_</sup> _ν_ <sup>that</sup> <sup>occurs</sup> <sup>in</sup> <sup>eq.</sup> <sup>(25).</sup> <sup>For</sup> <sup>the</sup> <sup>_F_</sup> ex <sup>_θ_</sup> <sup>functional</sup> <sup>the</sup> reduced chemical potentials become These contributions vanish due to the charge neutrality in bulk if the hard-sphere diameters of the species are identical. III. NUMERICAL RESULTS ex and the modified restricted phase space functional _F_ <sup>MF</sup> _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>compare</sup> <sup>results</sup> <sup>to</sup> <sup>molecular</sup> <sup>dynamics</sup> <sup>(MD)</sup> simulation results obtained with the simulation package In this section we study (A) density profiles, (B) correlation functions, and (C) thermodynamic properties for the PM that we compute with the aforementioned functionals. Thus, we apply the mean-field functional ex and the modified restricted phase space functional _F_ <sup>MF</sup> <sup>_∗_</sup> _ν_ <sup>_θ_</sup> <sup>=</sup> <sup>_<u>δF</u>_</sup> <u>ex</u> <sup>_θ_</sup> _⃗_ (35) ���� _ρν_ ( _⃗_ r)= _ρν_ _µ_ <sup>_∗_</sup> _ν_ <sup>_θ_</sup> <u>ex</u> <sup>_θ_</sup> <sup><u>[</u></sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> _δρν_ (r) _⃗_ _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>compare</sup> <sup>results</sup> <sup>to</sup> <sup>molecular</sup> <sup>dynamics</sup> <sup>(MD)</sup> simulation results obtained with the simulation package `ESPResSo` `4.1.4` <sup>45</sup> . Note that, apart from one example, we do not show results from the restricted phase space functional _F_ ex <sup>_θ_</sup> <sup>,</sup> <sup>because</sup> <sup>its</sup> <sup>predictive</sup> <sup>capabilities</sup> are very limited: For instance, we find contact values space functional _F_ ex <sup>_θ_</sup> <sup>,</sup> <sup>because</sup> <sup>its</sup> <sup>predictive</sup> <sup>capabilities</sup> are very limited: For instance, we find contact values for a given electrostatic surface potential being overestimated in all calculations, or unrealistic layering effects occuring in the density profiles. The latter is exemplary shown for the hard-wall geometry in fig. 3. Further, the functional showed numerical divergences in the minimizing Picard iteration scheme, hence hinting towards its low performance. = <sup>_<u>π</u>_</sup> <sup>_<u>π</u>_</sup> _<u>Zν</u>_ <u>λB</u> 6 _β_ _β_ _ν_ <sup>_′_</sup> _Zν′ρν′_ ( _dν_ + _dν′_ ) <sup>2</sup>, as we show in detail in appendix A. The _µ_ <sup>_∗_</sup> _ν_ <sup>vanish</sup> <sup>as</sup> long as charge neutrality is given and the hard-sphere diameters of the species are identical. Now, in order to derive similar results for the functional _F_ ex <sup>_δ_</sup> <sup>, we use the continuous pair potential</sup> <sup>_v_</sup> _νν_ <sup>_δ_</sup> <sup>_′_</sup> <sup>from</sup> ex <sup>_δ_</sup> <sup>, we use the continuous pair potential</sup> <sup>_vδ_</sup> _νν_ <sup>_δ_</sup> <sup>_′_</sup> <sup>from</sup> 12 10 8 6 4 2 0 0.5 1.0 1.5 2.0 2.5 3.0 _z/d_ _c_ = 5 _._ 0 M, _λ_ B = 0 _._ 726 nm, _σ_ = 0 _._ 839 C _/_ m <sup>2</sup> ex _F_ <sup>MF</sup> ex anions _F_ <sup>MF</sup> _F_ ex <sup>_δ_</sup> <sup>anions</sup> _F_ ex <sup>_δ_</sup> <sup>anions</sup> _F_ ex <sup>_θ_</sup> <sup>anions</sup> _F_ ex <sup>_θ_</sup> <sup>anions</sup> MD Sim. anions ex cations _F_ <sup>MF</sup> ex cations _F_ <sup>MF</sup> _F_ ex <sup>_δ_</sup> <sup>cations</sup> _F_ ex <sup>_δ_</sup> <sup>cations</sup> _F_ ex <sup>_θ_</sup> <sup>cations</sup> _F_ ex <sup>_θ_</sup> <sup>cations</sup> MD Sim. cations For our study we implement two different geometries that are sketched in fig. 4. The first one is that of a system with two infinitely extended, hard walls in the _xy_ -plane that are at distance _L_ to each other and have an electrostatic potential difference ∆Φ. The respective external potential is expressed in eq. (3). Due to the symmetries the density profiles only vary along the remaining Cartesian coordinate _z_ such that we obtain quasi one-dimensional density profiles _ρν_ ( _z_ ). The second one is the spherical symmetric geometry of the test particle setup, which we use to obtain total correlation functions in bulk. Here, the respective external potential is expressed in eq. (4). In this setup the one-body density profile around a fixed test particle is related to the twobody distribution <sup>28,29</sup>, as shown in eq. (8). While the uniform bulk densities have no spatial dependence, the resulting pair distributions _gνν_ <sup>(2)</sup> <sup>_′_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>depend</sup> <sup>on</sup> <sup>the</sup> <sup>radial</sup> coordinate _r_ . To close the system around the test particle, we add a hard, spherical outer wall with a distance of _L_ = 40 nm to the origin. This large separation _L_ ensures bulk behaviour in between the walls, even if the system resembles a spherical capacitor with the test particle in its center. The calculation of the electrostatic potentials via the Poisson equation, the implementation of the external potential, and the computation of weighted densities are explained in detail in appendix B. The details of the MD simulations are explained in appendix C. A. Density Profiles FIG. 3. Density profiles of negative (blue) and positive (yellow) ions with a hard-core diameter of _d_ := _d_ + = _d−_ predicted by _F_ ex <sup>MF</sup> (dashed line), _F_ ex <sup>_δ_</sup> <sup>(solid</sup> <sup>line)</sup> <sup>and</sup> <sup>_F θ_</sup> ex <sup>(dotted</sup> <sup>line)</sup> at a positively charged hard wall. For comparison, simulation results are shown as open circles. ex <sup>MF</sup> (dashed line), _F_ ex <sup>_δ_</sup> ex <sup>_δ_</sup> <sup>(solid</sup> <sup>line)</sup> <sup>and</sup> <sup>_F θ_</sup> ex (a) ### V ext + ∆Φ 2 (b) ## _−_ _r_ ## _−_ _z_ ## _−_ ## + ### V ext ## _−_ To test the accuracy of our _F_ ex <sup>_δ_</sup> <sup>functional in predicting</sup> density profiles, we calculate density profiles _ρν_ ( _z_ ) on a fine numerical grid with a spacing of ∆ _z_ = 3 _·_ 10 <sup>_−_</sup> <sup>5</sup> nm (4 _·_ 10 <sup>5</sup> + 1 grid points) in the aforementioned system with two planar hard walls and compared them to MD simulation results. The two walls are _L_ = 12 nm apart and have a fixed electrostatic potential difference of ∆Φ = 0 _,_ 0 _._ 1 _,_ 0 _._ 5 V, respectively. Moreover, we consider a range of concentrations _c_ = 0 _._ 05 _, . . .,_ 5 M and Bjerrum lengths λB = 0 _._ 726 _,_ 4 _._ 25 nm. The temperature is set to _T_ = 293 _._ 41 K. To show the shortcomings and predictive capabilities of our functional, we compare it to the stan ex and MD data with the dard mean-field functional _F_ <sup>MF</sup> same plate-surface charge density _σ_ . In fig. 5 we show ## + _L_ ## + + V ext _−_ ## _−_ To test the accuracy of our _F_ ex <sup>_δ_</sup> profiles, we calculate ## + 2 ### − ∆Φ ## + FIG. 4. Sketch of the two external potentials that we use in this work, also illustrating their induced geometries. (a) The setup with parallel charged hard walls, which is implemented in DFT via the external hard-wall potential _V_ ext. The walls are separated by a distance _L_ and have a potential difference of ∆Φ. (b) The test particle setup, where one particle is fixed and acts as an external potential _V_ ext for the system. ex and MD data with the dard mean-field functional _F_ <sup>MF</sup> same plate-surface charge density _σ_ . In fig. 5 we show a representative set of density profiles. All parameter combinations can be found in table I. Before we discuss the shown density profiles, we have a closer look on uncharged walls. In the PM, we expect a so called _depletion_ _layer_, which is a negative deviation from the bulk densities close to the walls, which affects all particle species equally. It stems from electrostatic screening that an ion experiences from the other ions in the bulk, but not from the walls itself. Hence, ions that are close to the wall feel a net repulsion from the wall and into the direction of bulk which leads to a drop in the density profiles close to the wall. However, it follows figure ex ex _d_ + _d−_ _c_ λB _σ_ _P_ ∆Φ CDT ∆Φ CDT [nm] [nm] [M] [nm] [C _/_ m <sup>2</sup> ] [ _k_ B _T/_ nm <sup>3</sup> ] [V] [%] [V] [%] _F_ ex <sup>MF</sup> ex <sup>MF</sup> _F_ ex <sup>_δ_</sup> label _d_ + _d−_ _c_ λB _σ_ _P_ 5(a) 0 _._ 3 0 _._ 3 0 _._ 1 0 _._ 726 0 _._ 035 0 _._ 121 0 _._ 1009 _<_ 0 _._ 002 0 _._ 1 _<_ 0 _._ 002 5(b) 0 _._ 3 0 _._ 3 0 _._ 1 0 _._ 726 0 _._ 447 0 _._ 121 0 _._ 5469 _<_ 0 _._ 2 0 _._ 5 _<_ 0 _._ 3 5(c) 0 _._ 3 0 _._ 3 0 _._ 1 4 _._ 25 0 _._ 012 0 _._ 121 0 _._ 1035 _<_ 0 _._ 02 0 _._ 1 _<_ 0 _._ 02 5(d) 0 _._ 3 0 _._ 3 0 _._ 1 4 _._ 25 0 _._ 124 0 _._ 121 0 _._ 605 _<_ 0 _._ 1 <sup>_∗_</sup> 0 _._ 5 _<_ 0 _._ 2 <sup>_∗_</sup> 5(e) 0 _._ 3 0 _._ 3 2 _._ 0 4 _._ 25 0 _._ 0335 2 _._ 767 0 _._ 1305 _<_ 0 _._ 02 0 _._ 1 _<_ 0 _._ 02 5(f) 0 _._ 3 0 _._ 3 2 _._ 0 4 _._ 25 0 _._ 223 2 _._ 767 0 _._ 7649 _<_ 1 _._ 1 0 _._ 5 _<_ 2 5(g) 0 _._ 3 0 _._ 3 5 _._ 0 4 _._ 25 0 _._ 0488 8 _._ 586 0 _._ 1621 _<_ 0 _._ 02 0 _._ 1 _<_ 0 _._ 03 5(h) 0 _._ 3 0 _._ 3 5 _._ 0 4 _._ 25 0 _._ 29 8 _._ 586 0 _._ 9079 _<_ 3 _._ 3 0 _._ 5 _<_ 1 _._ 4 5(i) 0 _._ 3 0 _._ 3 5 _._ 0 0 _._ 726 0 _._ 153 8 _._ 586 0 _._ 1179 _<_ 0 _._ 03 0 _._ 1 _<_ 0 _._ 03 5(j) 0 _._ 3 0 _._ 3 5 _._ 0 0 _._ 726 0 _._ 839 8 _._ 586 0 _._ 6077 _<_ 2 _._ 4 0 _._ 5 _<_ 1 _._ 5 ex <sup>MF</sup> _F_ ex <sup>_δ_</sup> _F_ ex <sup>MF</sup> ex ex _d_ + _d−_ _c_ λB ∆Φ _P_ _σ_ CDT _σ_ CDT [nm] [nm] [M] [nm] [V] [ _k_ B _T/_ nm <sup>3</sup> ] [C _/_ m <sup>2</sup> ] [%] [C _/_ m <sup>2</sup> ] [%] _d_ + _d−_ _c_ λB ∆Φ _P_ 0 _._ 25 0 _._ 3 5 _._ 0 4 _._ 25 0 _._ 0 7 _._ 824 -0.0037, -0.0037 0 _._ 01 0.0092, -0.0092 0 _._ 6 0 _._ 25 0 _._ 3 5 _._ 0 4 _._ 25 0 _._ 1 7 _._ 824 0.0278, -0.0361 0 _._ 03 0.0389, -0.0590 0 _._ 6 0 _._ 25 0 _._ 3 5 _._ 0 4 _._ 25 0 _._ 5 7 _._ 824 0.154, -0.178 0 _._ 7 0.274, -0.331 0 _._ 6 TABLE I. Overview over the parameters we use in our DFT calculations of the PM at charged hard walls. The panels where the respective density profiles are shown are referred to in the first column. The temperature _T_ = 293 _._ 41 K is the same for all systems. _d_ + and _d−_ are the hard diameters of the respective ions, _c_ is the concentration, λB is the Bjerrum length, ∆Φ is the potential difference between the two electrode walls, _±σ_ is the surface charge density on the respective wall, _P_ is the pressure calculated from the grand potential, and “CDT” refers to the relative deviation between the left-hand side (lhs) and the righthand side (rhs) of the contact density theorem, eq. (42), via _|_ ((lhs) _−_ (rhs)) _/_ (lhs) _|_ . The ’ _<_ ’ indicates that the corresponding CDT difference would decrease significantly for higher grid resolutions. The ’*’ means that the system length _L_ is extended to 20 nm, because the density profiles decay very weakly. from eqs. (16) and (36) that in the absence of a potential difference ∆Φ our functionals vanish, which is due to the external potential being the only driver of a difference in the density profiles of the differently charged ions. If the potential difference is set to zero, the modulus of all terms in the sums in eqs. (16) and (36) become equal, such that the alternating sign due to the valencies makes the functionals vanish. The remaining hard-sphere functional does not capture the expected depletion layer of the PM at the hard walls. In other works functionals were developed that capture this effect qualitatively <sup>20</sup> . The depletion effect is much weaker than electrostatic effects from the charged wall, which leads to its suppression as soon as we apply a small potential difference ∆Φ = 0 _._ 1 V. For low concentrations ( _c_ = 0 _._ 1 M) and weak electrostatic interactions (λB = 0 _._ 726 nm) both the _F_ ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> <sup>functionals</sup> <sup>show</sup> <sup>the</sup> <sup>same</sup> <sup>behavior</sup> <sup>and</sup> agree with the simulation data, as shown in fig. 5(a). ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> with _F_ ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> <sup>functionals</sup> <sup>show</sup> <sup>the</sup> <sup>same</sup> <sup>behavior</sup> <sup>and</sup> agree with the simulation data, as shown in fig. 5(a). Increasing the potential difference to ∆Φ = 0 _._ 5 V, which is a typical value applied in supercapacitors, we can see from fig. 5(b) that the density profile of _F_ ex <sup>_δ_</sup> <sup>fits</sup> <sup>the</sup> <sup>sim-</sup> from fig. 5(b) that the density profile of _F_ ex <sup>_δ_</sup> <sup>fits</sup> <sup>the</sup> <sup>sim-</sup> ulation results more closely than the ones from _F_ ex <sup>MF,</sup> but the differences are rather small. To show qualita ingly, this is not the case for our _F_ ex <sup>_δ_</sup> <sup>functional.</sup> <sup>As</sup> <sup>one</sup> can see from fig. 5(e) and (f), at an intermediate concentration of _c_ = 2 M _F_ ex <sup>_δ_</sup> <sup>matches</sup> <sup>the</sup> <sup>simulation</sup> <sup>at</sup> <sup>a</sup> qualitative level by showing similar layering effects, but ulation results more closely than the ones from _F_ ex <sup>MF,</sup> but the differences are rather small. To show qualitative differences between the two functionals, we increase the electrostatic interactions such that λB = 4 _._ 25 nm. As one can see in fig. 5(c) and (d), now both functionals fail to match the simulation data in this situation, because a peak of co-ions appears close to the charged walls at _z_ _≈_ 2 _d_ in the density profiles of the simulation data, which is not predicted by the functionals (for convenience we use _d_ := _d_ + = _d−_ ). This discrepancy can be explained by regarding the phase diagram of the PM as depicted in <sup>46</sup> . The critical point for this phase diagram is roughly situated at _ρ_ <sup>_∗_</sup> _≈_ 2 _._ 5 _·_ 10 <sup>_−_</sup> <sup>2</sup> and _T_ <sup>_∗_</sup> = _d/_ λB _≈_ 0 _._ 053. Our systems with λB = 4 _._ 25 nm, which corresponds to a reduced temperature of _T_ <sup>_∗_</sup> _≈_ 0 _._ 07, are much closer to the triple point than the ones with λB = 0 _._ 726 nm ( _T_ <sup>_∗_</sup> _≈_ 0 _._ 4). Close to the critical point correlation lengths increase, which for instance leads to the formation of 2–1 open ion clusters and 2–2 tetrameters <sup>47</sup> . These clusters allow the accumulation of co-ions at a distance of _z_ _≤_ 5 _d_ from the wall, which results in a peak in the respective density profile. To our knowledge, there have not been any attempts to find a functional that captures these clustering effects yet. Now, we study our system at higher concentrations, a situation where the mean-field functional and other approaches typically become less predictive or break down. This is not surprising, because the mean-field functional is deduced from a low-density approximation. Interestingly, this is not the case for our _F_ ex <sup>_δ_</sup> <sup>functional.</sup> <sup>As</sup> <sup>one</sup> can see from fig. 5(e) and (f), at an intermediate con centration of _c_ = 2 M _F_ ex <sup>_δ_</sup> <sup>matches</sup> <sup>the</sup> <sup>simulation</sup> <sup>at</sup> <sup>a</sup> qualitative level by showing similar layering effects, but with the wrong peak height. In contrast, the regular mean-field functional, does not show this layering behav 0.6 0.5 0.4 0.3 0.2 0.1 0.0 0.5 0.4 0.3 0.2 0.1 0.0 12 10 8 6 4 2 0 0.30 0.25 0.20 0.15 0.10 0.05 0.00 0.20 0.15 0.10 0.05 0.00 6 5 4 3 2 1 (a) _c_ = 0 _._ 1 M, _λ_ B = 0 _._ 726 nm, _σ_ = 0 _._ 035 C _/_ m <sup>2</sup> 2 4 6 8 10 _z/d_ (c) _c_ = 0 _._ 1 M, _λ_ B = 4 _._ 25 nm, _σ_ = 0 _._ 012 C _/_ m <sup>2</sup> 5 10 15 _z/d_ (g) _c_ = 5 _._ 0 M, _λ_ B = 4 _._ 25 nm, _σ_ = 0 _._ 0488 C _/_ m <sup>2</sup> (b) _c_ = 0 _._ 1 M, _λ_ B = 0 _._ 726 nm, _σ_ = 0 _._ 447 C _/_ m <sup>2</sup> 2 4 6 8 10 12 14 _z/d_ (d) _c_ = 0 _._ 1 M, _λ_ B = 4 _._ 25 nm, _σ_ = 0 _._ 124 C _/_ m <sup>2</sup> 2 4 6 8 10 _z/d_ (h) _c_ = 5 _._ 0 M, _λ_ B = 4 _._ 25 nm, _σ_ = 0 _._ 29 C _/_ m <sup>2</sup> 1 2 3 4 5 _z/d_ 3.0 2.5 2.0 1.5 1.0 0.5 0.0 8 6 4 2 0 _F_ ex <sup>_δ_</sup> _F_ ex <sup>_δ_</sup> <sup>anions</sup> ex anions _F_ <sup>MF</sup> ex anions _F_ <sup>MF</sup> MD Sim. anions _F_ ex <sup>_δ_</sup> <sup>cations</sup> _F_ ex <sup>_δ_</sup> <sup>cations</sup> ex cations _F_ <sup>MF</sup> ex cations _F_ <sup>MF</sup> MD Sim. cations (e) _c_ = 2 _._ 0 M, _λ_ B = 4 _._ 25 nm, _σ_ = 0 _._ 0335 C _/_ m <sup>2</sup> 1 2 3 4 5 _z/d_ (i) _c_ = 5 _._ 0 M, _λ_ B = 0 _._ 726 nm, _σ_ = 0 _._ 153 C _/_ m <sup>2</sup> 1 2 3 4 5 _z/d_ (f) _c_ = 2 _._ 0 M, _λ_ B = 4 _._ 25 nm, _σ_ = 0 _._ 223 C _/_ m <sup>2</sup> 1 2 3 4 5 _z/d_ (j) _c_ = 5 _._ 0 M, _λ_ B = 0 _._ 726 nm, _σ_ = 0 _._ 839 C _/_ m <sup>2</sup> 1 2 3 4 5 _z/d_ 7 6 5 4 3 2 1 0 8 6 4 2 0 0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 _z/d_ FIG. 5. Density profiles of charged hard spheres with a diameter of _d_ := _d_ + = _d−_ at a charged planar wall obtained from the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>(solid</sup> <sup>line)</sup> <sup>and</sup> <sup>the</sup> <sup>_F_</sup> <sup>MF</sup> ex functional (dashed line) from eqs. (36) and (16) for different concentrations and Bjerrum lengths. The parameters are given at the top of each panel and additionally are listed in table I. Density profiles of negative ions are colored (dark) blue and density profiles of positive ions are colored (light) yellow. Data from MD simulations is shown as open circles in the respective color for comparison. 15 10 5 0 ex ex <sup>_δ_</sup> <sup>and</sup> <sup>_F_</sup> <sup>MF</sup> obtained by ex _F_ <sup>_δ_</sup> ex _F_ <sup>_δ_</sup> ex _F_ <sup>MF</sup> 0 -5 -10 -15 the MSA closure for an electrostatic pair potential’s tail was first derived by Waisman and Lebowitz <sup>17</sup> . From this solution Roth and Gillespie constructed the MSAc functional <sup>20</sup> . The MSAc functional, however, does not predict the correct bulk free energy. The authors resolved this problem in the MSAu functional, where the bulk free-energy solution from the MSA is added to the MSAc functional and the bulk densities in this additional term are simply replaced by weighted density profiles. As a consequence, the MSAu functional is capable of predicting depletion at uncharged walls in contrast to all other ex func approaches. We now compare our _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>_F_</sup> <sup>MF</sup> tionals to results from ref. <sup>21</sup> that are obtained by these ex 0.5 1.0 1.5 2.0 2.5 3.0 _z/d_ 37.0 37.5 38.0 38.5 39.0 39.5 _z/d_ FIG. 6. Dimensionless total electrostatic potential Φ( _z_ ) in a system of charged hard spheres with a diameter of _d_ := _d_ + = _d−_ at a concentration _c_ = 2 M between two planar charged hard walls with _σ_ = 0 _._ 223 C _/_ m <sup>2</sup> . The Bjerrum length is λB = 4 _._ 25 nm. Respective density profiles are shown in fig. 5(f). We show results for the functionals _F_ ex <sup>_δ_</sup> <sup>(blue, solid</sup> line) and _F_ ex <sup>MF</sup> (yellow, dashed line) from eqs. (36) and (16). ex func approaches. We now compare our _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>_F_</sup> <sup>MF</sup> tionals to results from ref. <sup>21</sup> that are obtained by these MSAc and MSAu functionals in a study that focuses on the decay of correlation functions. For this purpose, we introduce the dimensionless charge density _ρ_ Z and number density _ρ_ N, defined as _ρ_ Z( _z_ ) = <sup>_<u>ρ</u>_</sup> <sup><u>+(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>ρ−</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> _ρ_ b _ρ_ N( _z_ ) = <sup>_<u>ρ</u>_</sup> <sup><u>+(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>) +</u></sup> <sup>_<u>ρ−</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> _ρ_ b (39) _−_ 2 . ior. Even at a concentration of _c_ = 5 M its density profile does not show any layering, whereas the density profiles of _F_ ex <sup>_δ_</sup> <sup>match</sup> <sup>the</sup> <sup>simulation</sup> <sup>data</sup> <sup>closely</sup> <sup>and</sup> <sup>predict</sup> <sup>the</sup> pronounced layering effects shown in fig. 5(g)–(j) well. These pronounced layering effects also have a considerable influence on the total electrostatic potential Φ( _z_ ) of the system. As fig. 6 shows for the density profiles shown in fig. 5(f), the regular mean-field functional generates a monotonic potential, whereas the modified version does show two distinct extrema close to the hard wall. The change of sign in the slope of the potential reveals that the electric field is not only weakened by the layering effects but actually is reversed. Moreover, from the density profiles one can see that the net charge in some regions close to the positive electrode is negative and vice versa. This phenomenon is called charge inversion <sup>48</sup> and is relevant for example in the transition of differential capacitance curves from bell-shaped to camelshaped <sup>49</sup> . Thus, predicting this charge-inversion effect is an important property that the regular mean-field functional lacks. Of course, other functionals exist that are also more involved than the mean-field functional and also have more predictive power. We now focus on two functionals derived from the mean spherical approximation (MSA), which follows from a closure relation for the OZ equation in liquid state theory. The MSA closure respects the volume exclusion of hard spheres in the total pair-correlation function by prescribing its inner part to vanish. Furthermore, the direct correlation function is set to be equal to the tail of an additional soft pair potential (with the additional prefactor _−β_ ) for radial positions exceeding the contact distance. The solution of the OZ equation with Each of these densities reveals a distinct decay length <sup>38</sup>, which recently attracted attention due to the results of surface force measurements <sup>50,51</sup> showing the so called underscreening effect. This effect represents a strong increase of the decay length with increasing concentration and could not yet be explained theoretically <sup>21,52–54</sup> . In fig. 7 we show the density profiles of the aforementioned functionals on a semi-logarithmic scale. This scaling allows to determine the decay length immediately from the curves’ slopes. Panel (a) shows that all charge-density profiles coincide with the simulation data at low concentrations and weak electrostatic interactions and potentials. Panel (b) shows the respective numberdensity profiles. Since the potential difference is almost zero, the excess number densities are governed by the fact whether the functional captures the repulsion from an (almost) uncharged wall. The MSAu functional is the only one that can predict this effect even if it does so rather inaccurately. The drawback of the MSAu functional however seems to be the overall predictive capability, because it shows oscillations in panel (c) and an inaccurate decay in panel (d) that do not appear in the simulation data. Even though the MSAc functional predicts the simulation data quite well in panels (c) and (d), its density profiles show strange oscillatory behavior at _z_ _>_ 4 _d_ . The accuracy of the prediction of the modified mean-field functional _F_ ex <sup>_δ_</sup> <sup>is</sup> <sup>comparable</sup> <sup>to</sup> <sup>that</sup> <sup>of</sup> <sup>the</sup> MSAc functional, but compared to MSAc and MSAu it does not show oscillatory behavior, which is in agreement with the simulations. However, in panel (e) one can see that it slightly overestimates the decay strength. Note, that the mean-field functional always underestimates the strength of the decay and is not able to predict the oscillations in the charge density profiles at all. In panel (f) the excess density profiles of all functionals agree with _F_ <sup>_δ_</sup> figure ex ex _d_ + _d−_ _c_ λB _P_ Virial Virial Virial [nm] [nm] [M] [nm] [ _k_ B _T/_ nm <sup>3</sup> ] [ _k_ B _T/_ nm <sup>3</sup> ] [ _k_ B _T/_ nm <sup>3</sup> ] [ _k_ B _T/_ nm <sup>3</sup> ] Simulation _F_ ex <sup>MF</sup> Virial label _d_ + _d−_ _c_ λB _P_ Virial 8(a) 0 _._ 3 0 _._ 3 0 _._ 1 3 _._ 0 0 _._ 121 0 _._ 058(3) 0 _._ 053 0 _._ 053 8(b) 0 _._ 3 0 _._ 3 3 _._ 0 3 _._ 0 4 _._ 189 1 _._ 46(13) 1 _._ 569 1 _._ 536 8(c) 0 _._ 3 0 _._ 3 10 _._ 0 3 _._ 0 18 _._ 76 12 _._ 1(7) 13 _._ 64 13 _._ 87 8(d) 0 _._ 3 0 _._ 3 10 _._ 0 0 _._ 3 18 _._ 76 23 _._ 95(4) 22 _._ 75 22 _._ 71 TABLE II. Overview over the parameters we use in our DFT calculations for the PM in the test particle setup, as discussed in section III B. The panels where the respective total-correlation functions are shown are referred to in the first column. The temperature is the same for all systems with _T_ = 293 _._ 41 K. _d_ + and _d−_ are the hard-sphere diameters of the ions, _c_ is the concentration, λB is the Bjerrum length, _P_ is the pressure calculated from the grand potential, and ’Virial’ refers to the right-hand side (rhs) of the virial pressure equation (45). the simulation data, a fact that does not surprise, because all functionals use a very accurate FMT functional for the hard-sphere interactions that dominate the number densities at high concentrations. ex In summary, the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>the</sup> <sup>_F_</sup> <sup>MF</sup> functional predict density profiles between parallel hard walls well at low densities and when the electrostatic interaction strength resembles a salt solution in water (λB = 0 _._ 726 nm), but only as long as an external electrostatic field is applied. If the external field is missing one expects a depletion layer close to the walls, which both functionals do not predict because their respective electrostatic contributions vanish completely. Furthermore, they cannot predict the clustering effects that arise at low concentrations _c_ = 0 _._ 1 M and high Bjerrum lengths λB = 4 _._ 25 nm. However, the _F_ ex <sup>_δ_</sup> <sup>functional performs well</sup> at high concentrations ( _>_ 2 M) and when high potential ex ex <sup>_δ_</sup> <sup>functional</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>the</sup> <sup>_F_</sup> <sup>MF</sup> profiles between parallel hard ing peaks also occur in the total correlation functions, because the latter can be related to the density profiles of the planar geometry. This correspondence is, for example, relevant in the context of decay lengths <sup>21</sup> . A more intuitive explanation of the mentioned peak is possible on the basis of pair distributions: The repulsion between like-charge ions in a cluster as, for instance, the 2–2 neutral tetrameter, is essentially canceled by the other ions in the cluster. The latter leads to a peak at _r_ _≈_ 2 _d_ in the like-charge total correlation function for low concentrations ( _c_ = 0 _._ 1 M) and high Bjerrum length (λB = 3 nm), as we can see in fig. 8(a). Again, both functionals _F_ ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> <sup>do not produce density profiles</sup> that show this effect. When we increase the concentra In summary, the _F_ ex <sup>_δ_</sup> predict ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> effect. λB = 4 _._ 25 nm. However, the _F_ ex <sup>_δ_</sup> <sup>functional performs well</sup> at high concentrations ( _>_ 2 M) and when high potential differences ( _>_ 0 _._ 1 V) are applied to the charged walls. It also shows great improvements to decay behavior predictions with respect to the mean-field functional. Compared to other sophisticated functionals like the aforementioned MSAc and MSAu it predicts decay behavior equally well. functionals _F_ ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> <sup>do not produce density profiles</sup> that show this effect. When we increase the concentration, the modified functional _F_ ex <sup>_δ_</sup> <sup>predicts</sup> <sup>the</sup> <sup>occurring</sup> layering effects well as shown in fig. 8(b),(c), while the tion, the modified functional _F_ ex <sup>_δ_</sup> <sup>predicts</sup> <sup>the</sup> <sup>occurring</sup> layering effects well as shown in fig. 8(b),(c), while the ex produces inaccurate regular mean-field functional _F_ <sup>MF</sup> total correlation functions. Here, the different curves for ++ and + _−_ correlations seem to “stick together”, an effect arising from the mean-field description of the Coulomb interaction that overestimates attraction of oppositely charged particle species at one and the same position when the hard-core repulsion is ignored. This effect obviously is cured by the functional _F_ ex <sup>_δ_</sup> <sup>.</sup> At high con centrations ( _c_ = 10 M) but low electrostatic interaction B. Correlation Functions Now, we have a closer look on the bulk total corre ex and lation functions generated by the functionals _F_ <sup>MF</sup> We derive the correlation functions via eq. (8), ex and lation functions generated by the functionals _F_ <sup>MF</sup> _F_ ex <sup>_δ_</sup> <sup>.</sup> We derive the correlation functions via eq. (8), thus, using the density profiles of test particle systems. ex produces inaccurate regular mean-field functional _F_ <sup>MF</sup> total correlation functions. Here, the different curves for ++ and + _−_ correlations seem to “stick together”, an effect arising from the mean-field description of the Coulomb interaction that overestimates attraction of oppositely charged particle species at one and the same position when the hard-core repulsion is ignored. This effect obviously is cured by the functional _F_ ex <sup>_δ_</sup> <sup>.</sup> At high con centrations ( _c_ = 10 M) but low electrostatic interaction strengths (λB = 0 _._ 3 nm) as shown in fig. 8(d) both functionals predict similar total correlation functions, but the modified mean-field functional still agrees better with the simulation data, in particular if we compare contact values. _F_ ex <sup>_δ_</sup> <sup>.</sup> We derive the correlation functions via eq. (8), thus, using the density profiles of test particle systems. These systems have a radial size of _L_ = 40 nm and a fixed temperature of _T_ = 293 _._ 41 K. We vary the particle concentrations _c_ = 0 _._ 1 _,_ 3 _,_ 10 M and the Bjerrum length λB = 0 _._ 3 _,_ 3 nm. The density profiles are computed on a fine numerical grid with a spacing of ∆ _r_ = 4 _·_ 10 <sup>_−_</sup> <sup>4</sup> nm (10 <sup>5</sup> + 1 grid points). All parameter combinations can be found in table II. The obtained total correlation functions are shown in fig. 8. In section III A we investigated density profiles between two parallel walls with peaks close to the walls due to ion clustering at low concentrations and high Bjerrum lengths. It comes as no surprise that these cluster As mentioned earlier, the decay behavior can be investigated not only in the total correlation functions obtained via the Percus trick in eq. (8) but also in those obtained via the OZ equation from the direct correlation functions of eq. (11). Many phenomena like wetting, clustering, or percolation are affected by the long-range decay of correlations. Its theoretical description has been questioned in recent measurements by the phenomenon of underscreening <sup>55</sup>, as discussed along eq. (39). As for the density profiles in eq. (39), one defines charge (CC) 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> (a) _c_ = 0 _._ 1387 M, _λ_ B = 0 _._ 73 nm, ∆Φ = 0 _._ 002 V 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> and number (DD) correlations by <sup>56</sup> _h_ CC( _r_ ) = (b) _c_ = 0 _._ 1387 M, _λ_ B = 0 _._ 73 nm, ∆Φ = 0 _._ 002 V - _h_ ++( _r_ ) _−_ _h_ + _−_ ( _r_ ) _h_ DD( _r_ ) = <sup><u>1</u></sup> <sup><u>1</u></sup> - _h_ ++( _r_ ) + _h_ + _−_ ( _r_ ) 2 -, (40) _F_ ex <sup>_δ_</sup> _F_ ex <sup>_δ_</sup> _F_ ex <sup>MF</sup> _F_ MDex <sup>MF</sup> MSAc MSAu 10 <sup>_−_</sup> <sup>4</sup> 2 4 6 8 _z/d_ 10 <sup>_−_</sup> <sup>6</sup> 2 4 6 8 _z/d_ because this choice reflects the eigenvectors ( _−_ 1 _,_ 1) and (1 _,_ 1) from the matrix representation of the respective OZ equations (see eq. (41)) for a completely symmetric system like the PM with equally sized ions. Note that the prefactors in eq. (40) can be chosen freely and we follow the definition from <sup>56</sup> . The total correlation functions are determined from the Fourier transformed OZ equations for multiple species that can be combined in a matrix notation by derestimated, whereas the correlations of _F_ ex <sup>_δ_</sup> <sup>show</sup> <sup>the</sup> correct oscillation frequency and just a slightly lower decay length as the simulation data. For the higher concentration of _c_ = 10 M, panels (c) and (d) of fig. 9 show ex still predicts no oscillations in that the functional _F_ <sup>MF</sup> the charge correlation function and an inaccurate oscilla tion function _h_ <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>is determined from the poles of the re-</sup> spective component of the rhs of eq. (41), more precisely by the pole with smallest imaginary part (see ref. <sup>38</sup> and references therein). This pole leads to an exponential decay of _r · hCC_ ( _r_ ) and _r · hDD_ ( _r_ ), respectively. Depending on the real part of the respective complex-valued poles, these decays can additionally show oscillations. In fig. 9 the charge and number correlation functions are shown for two different concentrations _c_ = 3 _,_ 10 M. For _c_ = 3 M, panels (a) and (b) of fig. 9 show that the ex do not ex charge and the number correlations from _F_ <sup>MF</sup> hibit any oscillations and the decay length is greatly un 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> (c) _c_ = 0 _._ 5988 M, _λ_ B = 0 _._ 73 nm, ∆Φ = 0 _._ 210 V - _h_ ˆ <sup>(2)</sup> ++ - 1 _−_ C <sup>ˆ</sup> (2)( _k_ )¯ _ρ_ b _h_ ˆ <sup>(2)</sup> ++ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_h_</sup> <sup>ˆ(2)</sup> + _−_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _h_ ˆ <sup>(2)</sup> _−_ + <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_h_</sup> <sup>ˆ(2)</sup> _−−_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>(2)</sup> ++ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_h_</sup> <sup>ˆ(2)</sup> + _−_ <sup>(2)</sup> _−_ + <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_h_</sup> <sup>ˆ(2)</sup> _−−_ ˆH (2)( _k_ ) _≡_ = <sup>(2)</sup> _−−_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> (41) - _−_ 1 ˆC(2)( _k_ ) . The direct-correlation matrix C <sup>ˆ</sup> (2) is defined equivalently. The density matrix _ρ_ ¯b contains the bulk densities of positive and negative particles on its diagonal and is zero elsewhere. The asymptotic behavior of a total correlation function _h_ <sup>(2)</sup> _νν_ <sup>_′_</sup> <sup>is determined from the poles of the re-</sup> The direct-correlation matrix C <sup>ˆ</sup> 10 <sup>_−_</sup> <sup>6</sup> 2 4 6 8 _z/d_ 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> 10 <sup>_−_</sup> <sup>7</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> (d) _c_ = 0 _._ 5988 M, _λ_ B = 0 _._ 73 nm, ∆Φ = 0 _._ 210 V 1 2 3 4 5 _z/d_ (f) _c_ = 1 _._ 8215 M, _λ_ B = 0 _._ 73 nm, ∆Φ = 0 _._ 14438 V 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> (e) _c_ = 1 _._ 8215 M, _λ_ B = 0 _._ 73 nm, ∆Φ = 0 _._ 14438 V ex do not ex charge and the number correlations from _F_ <sup>MF</sup> hibit any oscillations and the decay length is greatly underestimated, whereas the correlations of _F_ ex <sup>_δ_</sup> <sup>show</sup> <sup>the</sup> correct oscillation frequency and just a slightly lower de 10 <sup>_−_</sup> <sup>7</sup> 2 4 6 8 _z/d_ 10 <sup>_−_</sup> <sup>5</sup> 1 2 3 4 5 _z/d_ ex still predicts no oscillations in that the functional _F_ <sup>MF</sup> the charge correlation function and an inaccurate oscillation in the number correlation function. Moreover, it still ex underestimates the decay length in both cases. The _F_ <sup>_δ_</sup> correlation functions agree very well with the simulation FIG. 7. Dimensionless charge and number density profiles _ρ_ Z (left column) and _ρ_ N (right column) of counterions in the vicinity of a charged hard wall in the PM. We show results from the _F_ ex <sup>_δ_</sup> <sup>(blue,</sup> <sup>solid</sup> <sup>line)</sup> <sup>and</sup> <sup>_F_</sup> <sup>MF</sup> ex (violet, dashed line) functionals as well as from the MSAc (red, dotted line) and MSAc (yellow, dot-dashed line) functionals and MD simulation results (purple open circles). Data for MSAc, MSAu, and MD are from ref. <sup>21</sup> . Data for _F_ ex <sup>MF</sup> correspond to that of _F_ ex <sup>MFC</sup> in ref. <sup>21</sup> (both mean-field functionals are identi ex <sup>_δ_</sup> <sup>(blue,</sup> <sup>solid</sup> <sup>line)</sup> <sup>and</sup> <sup>_F_</sup> <sup>MF</sup> ex of _F_ ex <sup>MFC</sup> in ref. <sup>21</sup> (both mean-field functionals are identi cal). The hard-sphere diameter and Bjerrum length are set to _d_ := _d_ + = _d−_ = 0 _._ 5 nm and λB = 0 _._ 73 nm in all panels. The respective concentration and applied electrostatic potential are noted on the top of each panel. ex underestimates the decay length in both cases. The _F_ <sup>_δ_</sup> correlation functions agree very well with the simulation data. An interesting method to study the quality of an energy functional and its deduced entities like the density profiles and correlation functions is to test thermodynamic consistency. In the last paragraphs we have studied correlation functions that we obtained, on one hand, via the Percus trick and, on the other hand, via functional derivatives and the OZ equation. For the exact functional these routes, the test-particle route and the thermodynamic or compressibility route, must be consistent and must yield the same pair-correlation functions. 3 2 1 0 -1 1 2 3 4 5 6 7 8 _r/d_ (b) _c_ = 3 _._ 0 M, _λ_ B = 3 _._ 0 nm 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 _r/d_ (c) _c_ = 10 _._ 0 M, _λ_ B = 3 _._ 0 nm 1 2 3 4 5 _r/d_ (d) _c_ = 10 _._ 0 M, _λ_ B = 0 _._ 3 nm 1.0 1.5 2.0 2.5 _r/d_ (a) _c_ = 0 _._ 1 M, _λ_ B = 3 _._ 0 nm 1.5 1.0 0.5 0.0 -0.5 -1.0 1.5 1.0 0.5 0.0 _F_ ex <sup>_δ_</sup> _F_ ex <sup>_δ_</sup> <sup>_h_</sup> <sup>+</sup> <sup>_−_</sup> _F_ ex <sup>MF</sup> _h_ + _F_ ex <sup>MF</sup> _h_ + _−_ MD Sim. _h_ + _−_ _F_ ex <sup>_δ_</sup> <sup>_h_</sup> <sup>++</sup> _F_ ex <sup>_δ_</sup> <sup>_h_</sup> <sup>++</sup> ex _h_ ++ _F_ <sup>MF</sup> ex _h_ ++ _F_ <sup>MF</sup> MD Sim. _h_ ++ 2.0 1.5 1.0 0.5 0.0 -0.5 -1.0 FIG. 8. Total correlation functions of charged hard spheres with a diameter of _d_ := _d_ + = _d−_ obtained via the Percus trick from the functionals _F_ ex <sup>_δ_</sup> <sup>(solid</sup> <sup>line)</sup> <sup>and</sup> <sup>_F_</sup> <sup>MF</sup> ex (dashed line) for different concentrations and Bjerrum lengths. The parameters are given at the top of each panel and are listed in table II. The <sup>++</sup> and <sup>_−−_</sup> correlations are identical and are colored orange. The same holds for the <sup>+</sup> <sup>_−_</sup> and <sup>_−_</sup> <sup>+</sup> correlations which are colored blue. Data from MD simulations is shown as open diamonds in the respective color for comparison. _ν_ Thus, we can test a functional for consistency by comparing correlations calculated via both routes. Accordingly, we now compare the direct correlation functions obtained via both routes for the functionals _F_ ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> <sup>,</sup> <sup>respectively.</sup> Our results are shown in fig. 10. By using the difference between the direct corre rem (CDT) <sup>58</sup> reads _βP_ = (42) _ρν_ ( _z_ = _Rν_ ) _−_ 2 <sup>_<u>βσ</u>_</sup> _εε_ <sup>2</sup> 0 ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> 10. By _F_ ex <sup>MF</sup> and _F_ ex <sup>_δ_</sup> <sup>,</sup> <sup>respectively.</sup> Our results are shown in fig. 10. By using the difference between the direct correlation functions obtained via the two routes as a consistency measure <sup>57</sup>, we find that the _F_ ex <sup>_δ_</sup> <sup>direct</sup> <sup>correlation</sup> functions are overall more consistent than the ones of tency measure <sup>57</sup>, we find that the _F_ ex <sup>_δ_</sup> <sup>direct</sup> <sup>correlation</sup> functions are overall more consistent than the ones of _F_ ex <sup>MF.</sup> <sup>For</sup> <sup>_r_</sup> <sup>_< d_</sup> <sup>,</sup> <sup>shown</sup> <sup>in</sup> <sup>panels</sup> <sup>(a)</sup> <sup>and</sup> <sup>(c),</sup> <sup>this</sup> <sup>is</sup> <sup>due</sup> to the diverging Coulomb potential which is contained _F_ ex <sup>MF.</sup> <sup>For</sup> <sup>_r_</sup> <sup>_< d_</sup> <sup>,</sup> <sup>shown</sup> <sup>in</sup> <sup>panels</sup> <sup>(a)</sup> <sup>and</sup> <sup>(c),</sup> <sup>this</sup> <sup>is</sup> <sup>due</sup> to the diverging Coulomb potential which is contained in the second functional derivative of _F_ ex <sup>MF,</sup> <sup>while</sup> <sup>the</sup> in the second functional derivative of _F_ ex <sup>MF,</sup> <sup>while</sup> <sup>the</sup> second functional derivative of _F_ ex <sup>_δ_</sup> <sup>remains</sup> <sup>constant</sup> <sup>by</sup> second functional derivative of _F_ ex <sup>_δ_</sup> <sup>remains</sup> <sup>constant</sup> <sup>by</sup> construction (compare eq. (16) and eq. (23)). For _r_ _≥_ _d_, as shown in panels (b) and (d) of fig. 10, the direct correlation functions from the second functional derivative are identical due to the definition of the pair potentials. At both concentrations, the _F_ ex <sup>_δ_</sup> <sup>direct</sup> <sup>correlations</sup> <sup>are</sup> again much more consistent. This is especially true for At both concentrations, the _F_ ex <sup>_δ_</sup> <sup>direct</sup> <sup>correlations</sup> <sup>are</sup> again much more consistent. This is especially true for higher densities, where the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>also</sup> <sup>produces</sup> more accurate density profiles, as we discussed in sec and relates the bulk pressure _P_ of the system to the contact densities at particle-wall contact and to the surface charge density _σ_ of the planar wall. Whether it holds for a specific functional depends heavily on the functional’s formulation and, thus, on its purpose. Accordingly, some electrostatic functionals show thermodynamic inconsistencies by not satisfying the CDT <sup>59</sup> and some functionals have been developed that satisfy it <sup>20</sup> . We test the CDT by computing the three terms in eq. (42). Since the grand potential Ω= _−PV_ is readily available in DFT, we can use it to calculate the bulk pressure. The surface charge _σ_ is given by the slope of the electrostatic potential Φ of the system at the walls, for instance for the system wall at _z_ = 0 via lim _z↘_ 0 higher densities, where the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>also</sup> <sup>produces</sup> more accurate density profiles, as we discussed in section III A. Both pressure and surface charge density are listed for selected system parameters in table I for the mean-field ex and the restricted phase-space functional functional _F_ <sup>MF</sup> _<u>∂</u>_ <u>Φ(</u> _<u>z</u>_ <u>)</u> (43) _∂z_ = _−_ 4 _π_ λB _σ ._ ex and the restricted phase-space functional functional _F_ <sup>MF</sup> _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>The</sup> <sup>relative</sup> <sup>deviation</sup> <sup>between</sup> <sup>the</sup> <sup>left-hand</sup> <sup>side</sup> (lhs) and the right-hand side (rhs) of eq. (42) is calculated C. Sum rules Instead of comparing correlation functions as discussed in the previous subsection, we can also test certain sum rules to test thermodynamic consistency of our functional. One of these sum rules is derived by a force balance argument for the hard planar wall and the particles pushing against it. This so-called contact density theo _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>The</sup> <sup>relative</sup> <sup>deviation</sup> <sup>between</sup> <sup>the</sup> <sup>left-hand</sup> <sup>side</sup> (lhs) and the right-hand side (rhs) of eq. (42) is calculated via _|_ ((lhs) _−_ (rhs)) _/_ (lhs) _|_ . The CDT holds true for both the regular mean-field functional _F_ ex <sup>MF</sup> and the core-corrected functional _F_ ex <sup>_δ_</sup> <sup>.</sup> There the given deviations are due to the finite numer functional _F_ ex <sup>MF</sup> and the core-corrected functional _F_ ex <sup>_δ_</sup> <sup>.</sup> There the given deviations are due to the finite numerical resolution of the grid the density profile is sampled on, which is indicated with a ’ _<_ ’ sign in the table. Thus the deviations might be even lower. However, if the hardsphere diameters differ between species, the deviations in ex <sup>MF</sup> and the core-corrected functional _F_ ex <sup>_δ_</sup> deviations are due to the finite (b) _c_ = 3 _._ 0 M, _λ_ B = 3 _._ 0 nm _F_ <sup>_δ_</sup> direct ++ _F_ <sup>MF</sup> direct ++ _F_ <sup>_δ_</sup> direct + _−_ _F_ <sup>MF</sup> direct + _−_ _F_ <sup>_δ_</sup> Percus ++ _F_ <sup>MF</sup> Percus ++ _F_ <sup>_δ_</sup> Percus + _−_ _F_ <sup>MF</sup> Percus + _−_ 2 4 6 8 10 _r/d_ (d) _c_ = 10 _._ 0 M, _λ_ B = 3 _._ 0 nm 2 4 6 8 10 _r/d_ 10 <sup>1</sup> (a) _c_ = 3 _._ 0 M, _λ_ B = 3 _._ 0 nm 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> (b) _c_ = 3 _._ 0 M, _λ_ B = 3 _._ 0 nm 10 5 0 -5 -10 10 5 0 -5 -10 (a) _c_ = 3 _._ 0 M, _λ_ B = 3 _._ 0 nm 0.0 0.2 0.4 0.6 0.8 1.0 _r/d_ (c) _c_ = 10 _._ 0 M, _λ_ B = 3 _._ 0 nm 0.0 0.2 0.4 0.6 0.8 1.0 _r/d_ _F_ ex <sup>_δ_</sup> _F_ ex <sup>MF</sup> MD 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 1 2 3 4 5 6 _r/d_ 10 <sup>1</sup> (c) _c_ = 10 _._ 0 M, _λ_ B = 3 _._ 0 nm 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 1 2 3 4 5 6 _r/d_ 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 1 2 3 4 5 6 _r/d_ 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 1 2 3 4 5 6 _r/d_ 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> (d) _c_ = 10 _._ 0 M, _λ_ B = 3 _._ 0 nm 30 20 10 0 -10 -20 -30 20 10 0 -10 -20 -30 FIG. 9. The charge correlations (a), (c) and number correlations (b), (d) for charged hard spheres with a diameter of _d_ := _d_ + = _d−_ . The respective parameters are noted on the top of each panel and are listed in table II (b) and (c). The standard mean-field functional (dashed, red line) and the _F_ ex <sup>_δ_</sup> functional _F_ ex <sup>_δ_</sup> <sup>(solid,</sup> <sup>blue</sup> <sup>line)</sup> <sup>are</sup> <sup>compared</sup> <sup>with</sup> <sup>MD</sup> <sup>sim-</sup> ulation data (yellow, open circles). the CDT do not become smaller with increasing resolution as we found in additional calculations (results are not shown here). Consequently, there is a real deviation of about 1% in these cases. We expect that this thermodynamic inconsistency will increase further when the inequality of hard-sphere diameters is increased. Another approach to test thermodynamic consistency is via the virial pressure formula which for binary mixtures in bulk has the form FIG. 10. Two-body direct correlation functions of the PM with diameters _d_ := _d_ + = _d−_ from the functionals _F_ ex <sup>_δ_</sup> <sup>(solid</sup> line) and _F_ ex <sup>MF</sup> (dashed line) obtained via the second func tional derivative of the excess free energy (bold lines) and the test-particle route (thin lines). The ++ and _−−_ correlations are identical as well as the <sup>+</sup> <sup>_−_</sup> and <sup>_−_</sup> <sup>+</sup> correlations. The ++ correlations (blue and purple) have negative values in all panels, while the + _−_ correlations (red and yellow) have positive values (except from the thin, dashed, yellow line in panel (c)). To check the thermodynamic consistency, one can compare the curves of the same color. The direct correlation function is split into the regions _r_ _<_ _d_ (panel (a) and (c)) and _r_ _≥_ _d_ (panel (b) and (d)). Note the different range of the respective _y_ -axis. sphere potential and obtain _ρν_ + <sup>_<u>π</u>_</sup> 12 - _<u>dν</u>_ <u>+</u> _<u>dν′</u>_ <u>+</u> _<u>dν′</u>_ 2 _βP_ = _ν_ ( _dν_ + _dν′_ ) <sup>3</sup> _ρνρν′ gνν′_ _∞_ _rgνν_ <sup>_′_</sup> ( _r_ ) d _r_ _._ 0 _νν_ <sup>_′_</sup> _νν_ <sup>_′_</sup> _ZνρνZν_ <sup>_′_</sup> _ρν_ <sup>_′_</sup> _νν_ <sup>_′_</sup> (45) Note, that the remaining integral does not diverge, because the constant part of the pair correlation functions + <sup><u>2</u></sup> <sup>_<u>π</u>_</sup> <sup><u>λB</u></sup> 3 _ρν_ _−_ <sup><u>2</u></sup> <sup>_<u>πβ</u>_</sup> 3 _βP_ = _ν_ _ρνρν′_ _∞_ 0 _<u>∂vνν′</u>_ <u>(</u> _<u>r</u>_ <u>)</u> _gνν′_ ( _r_ ) _r_ <sup>3</sup> d _r_ _._ _∂r_ (44) If we supply this equation with the pair potential of the PM from eq. (1), we can solve the integral of the hard cancel each other out due to the alternating sign in the sum over the valencies. To evaluate the lhs and the rhs of eq. (45) we need to determine the pair-distribution function. For this purpose, we use the density profiles from the test-particle route, because Archer, Chacko, and Evans <sup>60</sup> provide strong arguments for an increased accuracy of paircorrelation functions when using this route for mean-field functionals instead of the OZ route. In table II we summarize our results for systems of different concentrations and Bjerrum lengths. The columns labelled “Virial” show the Virial pressure (rhs of eq. (45)). Clearly, the virial equation is not satisfied by any of the functionals, even though the CDT showed thermodynamic consistency to a satisfying degree. The overall agreement between the Virial pressure from simulation and from the Percus trick shows that the Percus trick produces more sensible results than the direct calculation via the grand potential. For functionals with mean-field-like structure, this result is not surprising, because their electrostatic contributions vanish in bulk such that the obtained bulk pressure solely stems from the hard-sphere contribution to the functional. While the virial equation relies on the entire course of the pair-correlation functions, the CDT only depends on contact quantities, which explains the difference in performance for both virial equation and CDT. In conclusion, testing the virial equation could be a good addition to a thorough analysis of functionals. IV. CONCLUSION AND DISCUSSION functional and performed MD simulations. Further, we consulted results from the literature for two MSA-based functionals (MSAc and MSAu) that have been developed recently <sup>20,21</sup> . With these tools we studied density profiles and pair-correlation functions. The _F_ ex <sup>_θ_</sup> <sup>functional</sup> overestimates contact values greatly and overall performs files and pair-correlation functions. The _F_ ex <sup>_θ_</sup> <sup>functional</sup> overestimates contact values greatly and overall performs weakly in predicting density profiles such that we did not investigated it any further. Note that, nevertheless, it recently has been used to successfully explain a rapid switch in the experimentally measured oscillation length in the long-range decay of charge correlations <sup>38</sup> . The _F_ ex <sup>_δ_</sup> <sup>functional,</sup> <sup>however,</sup> <sup>overall</sup> <sup>predicts</sup> <sup>density</sup> <sup>profiles</sup> better than the standard mean-field functional for all pa _F_ ex <sup>_δ_</sup> <sup>functional,</sup> <sup>however,</sup> <sup>overall</sup> <sup>predicts</sup> <sup>density</sup> <sup>profiles</sup> better than the standard mean-field functional for all parameters we studied and, thus, is a true improvement beyond the standard mean-field treatment. While both the mean-field and the modified functional agree with simulation results at low concentrations and weak electrostatic interactions, only the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>predicts</sup> <sup>the</sup> correct density profiles including layering effects at high static interactions, only the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>predicts</sup> <sup>the</sup> correct density profiles including layering effects at high concentrations. The dominating long-range correlations at low concentrations and high electrostatic interactions are accounted for by neither the _F_ ex <sup>MF</sup> nor the _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>In</sup> particular due to eq. (17) and the approximation that ex <sup>MF</sup> nor the _F_ ex <sup>_δ_</sup> approximation are accounted for by neither the _F_ ex <sup>MF</sup> nor the _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>In</sup> particular due to eq. (17) and the approximation that the functional derivative of the involved total correlation function vanishes, long-range correlations were neglected in _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>However,</sup> <sup>the</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>functional</sup> <sup>again</sup> <sup>shows</sup> <sup>good</sup> predictive capabilities if the ion concentrations are in ex <sup>_δ_</sup> <sup>.</sup> <sup>However,</sup> <sup>the</sup> <sup>_F_</sup> ex <sup>_δ_</sup> capabilities if In this work we derived a modified mean-field functional for the PM of charged hard spheres. For this purpose, we started from the Barker-Henderson perturbation theory, which, in first order, results in the standard meanfield electrostatic treatment. For the higher order terms, we applied a low-density approximation, which resulted in a mean-field functional _F_ ex <sup>_θ_</sup> <sup>for a</sup> <sup>_modified_</sup> <sup>electrostatic</sup> interaction potential where the center is cut out. This in _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>However,</sup> <sup>the</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>functional</sup> <sup>again</sup> <sup>shows</sup> <sup>good</sup> predictive capabilities if the ion concentrations are increased ( _>_ 2 M). At uncharged walls one expects depletion effects due to the incomplete screening cloud of counterions around an ion that is close to the wall. The only functional of those we tested that predicts this depletion is one of the MSA-based functionals (MSAu in <sup>20,21</sup> ) to which we compared our results. This missing depletion is a drawback of mean-field like functionals (e.g. _F_ ex <sup>MF,</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>, MSAc), be-</sup> cause their electrostatic contributions vanish for equally ex <sup>MF,</sup> <sup>_F_</sup> ex <sup>_δ_</sup> in a mean-field functional _F_ ex <sup>_θ_</sup> <sup>for a</sup> <sup>_modified_</sup> <sup>electrostatic</sup> interaction potential where the center is cut out. This electrostatic interaction potential is not continuous. In a second modification we split the interaction potential into a repulsive hard-sphere contribution and an electrostatic, _continuous_ contribution, yielding a second functional _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>Both</sup> <sup>functionals</sup> <sup>contain</sup> <sup>correlation</sup> <sup>terms</sup> beyond the standard mean-field treatment which would tional _F_ ex <sup>_δ_</sup> <sup>.</sup> <sup>Both</sup> <sup>functionals</sup> <sup>contain</sup> <sup>correlation</sup> <sup>terms</sup> beyond the standard mean-field treatment which would be expected from the exact functional. In comparison to other sophisticated functionals for the PM, for example the ones that are derived from the mean-spherical approximation (MSA), our approach is built on the exact functional perturbation by approximating and neglecting certain terms. Accordingly our approach is well related to the underlying Hamiltonian, transparent, and expandable. To test our functionals we applied them to two systems of different geometry: a parallel plate capacitor and a test-particle setup to apply the Percus trick. For comparison we also implemented the standard mean-field of mean-field like functionals (e.g. _F_ ex <sup>MF,</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>, MSAc), be-</sup> cause their electrostatic contributions vanish for equally sized ions as soon as the external electrostatic potential is turned off. As a result, only the hard-sphere contribution to the functional remains, which leads to density profiles that do not show the expected depletion at the walls. Similarly, bulk pressures are incorrect as a consequence to this missing contribution. The situation would change if the interactions between like-charged and oppositelycharged ions were treated differently, for instance, in order to reduce mean-field repulsion between like-charged ions <sup>40</sup> . Such changes can be implemented by correlation holes where interactions are cut below a certain threshold <sup>61</sup>, a concept also known from electronic structure calculations as exchange-correlation holes <sup>62</sup> . Different interaction ranges further can be respected in the concept of shells of charge <sup>22</sup> where, in contrast to our approach where only one of two charges is distributed on a spherical shell, the charge of each particle is smeared on some spherical shell. Apart from this difference, our concept of modifying the electrostatic interaction potential inside the core can in general also be applied to implement different correlation holes. Nevertheless, when we compared the _F_ ex <sup>_δ_</sup> <sup>functional to the MSA-based function-</sup> ex <sup>_δ_</sup> <sup>functional to the MSA-based function-</sup> als, the former predicts oscillations in the number and charge densities more accurate, while both show the correct decay behavior. The mean-field functional, however, failed to capture the correct decay behaviour completely. For the total correlation functions in bulk that we obtained via the Percus trick, we found similar results as those reported above for the density profiles. In addition, we applied the Ornstein-Zernike equation to transform the total correlation functions into direct correlation functions such that we could compare them to the direct correlation functions obtained from a second functional derivative of the respective functionals. Thus, we performed a direct check of the structural consistency of the functionals, where the _F_ ex <sup>_δ_</sup> <sup>functional per-</sup> formed much better. Moreover, we tested the contact 406121234. DATA AVAILABILITY The data that support the findings of this study are available from the first author upon reasonable request. Appendix A: Bulk Derivatives term of the functional derivatives of _F_ ex <sup>_θ_</sup> <sup>from</sup> <sup>eq.</sup> <sup>(31)</sup> that read sistency of the functionals, where the _F_ ex <sup>_δ_</sup> <sup>functional per-</sup> formed much better. Moreover, we tested the contact density theorem which we found to be valid numerically for both the modified functional _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>the</sup> <sup>mean-field</sup> as long as the hard-sphere diameters are As stated in section II C the functional derivatives of _F_ ex <sup>_δ_</sup> <sup>from</sup> <sup>eq.</sup> <sup>(37)</sup> <sup>are</sup> <sup>obtained</sup> <sup>by</sup> <sup>leaving</sup> <sup>out</sup> <sup>the</sup> <sup>last</sup> _F_ ex <sup>_δ_</sup> <sup>from</sup> <sup>eq.</sup> <sup>(37)</sup> <sup>are</sup> <sup>obtained</sup> <sup>by</sup> <sup>leaving</sup> <sup>out</sup> <sup>the</sup> <sup>last</sup> term of the functional derivatives of _F_ ex <sup>_θ_</sup> <sup>from</sup> <sup>eq.</sup> <sup>(31)</sup> that read 2 _β_ - _φν′_ _∗_ _δ_ <sup>˜</sup> _νν′_ (r) _⃗_ - dr _⃗_ <sup>_′_</sup> <sup>_<u>n</u>_</sup> _<u>νν</u>_ <sup>_δ_</sup> <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ for both the modified functional _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>the</sup> <sup>mean-field</sup> ex as long as the hard-sphere diameters are functional _F_ <sup>MF</sup> identical. The virial equation for mixtures, that we tested ex as long as the hard-sphere diameters are functional _F_ <sup>MF</sup> identical. The virial equation for mixtures, that we tested as a second sum rule, however, is not satisfied. To our knowledge the virial pressure comparison has not been done in other works presenting electrostatic functionals, although it seems to be a stricter measure in determining the quality of a functional. Because of the advantages that the _F_ ex <sup>_δ_</sup> <sup>functional</sup> <sup>has</sup> over the regular mean-field functional, we think that it is the better choice in general. Further, the _F_ ex <sup>_δ_</sup> <sup>func-</sup> tional performs well in comparison to the MSA-based _<u>δF</u>_ <u>ex</u> <sup>_θ_</sup> _⃗_ <u>ex</u> <sup>_θ_</sup> <sup><u>[</u></sup> <sup>_<u>{ρi}</u>_</sup> <sup><u>]</u></sup> = <sup>_<u>Zν</u>_</sup> _δρν_ (r) _⃗_ 2 _β_ + <sup>_<u>Zν</u>_</sup> 2 _β_ _ν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> λB _⃗_ <sup>_<u>n</u>_</sup> _<u>νν</u>_ <sup>_δ_</sup> <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ (A1) _−_ <sup><u>λB</u></sup> _β_ <sup>_<u>Zν</u>_</sup> _ν_ <sup>_′_</sup> _n_ <sup>_θ_</sup> _νν_ <sup>_′_</sup> <sup>(r) .</sup> <sup>_⃗_</sup> Because of the advantages that the _F_ ex <sup>_δ_</sup> the regular mean-field functional, is the better choice in general. Further, the _F_ ex <sup>_δ_</sup> <sup>func-</sup> tional performs well in comparison to the MSA-based functionals we consulted. We suppose, that _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>the</sup> MSA functionals are comparable in terms of numerical Thus, we show calculations just for the latter. We start by setting the density profiles to a constant bulk value _ρν_ (r) = _⃗_ _ρν_ . The first term of eq. (A1) yields <u>λ2</u> _β_ <u>B</u> <sup>_Zν_</sup> _ν_ <sup>_′_</sup> _Zν′ρν′_ functionals we consulted. We suppose, that _F_ ex <sup>_δ_</sup> <sup>and</sup> <sup>the</sup> MSA functionals are comparable in terms of numerical speed, because the required operations (e.g. calculation of weighted densities and functional derivatives in FMT using Fourier transforms) are very similar. Of course, the computational speed is also affected by the numerical iteration scheme used for solving eq. (25), for which, apart from the simple Picard iterations, sophisticated schemes like <sup>63</sup> have been developed. We discussed how the aforementioned drawbacks of functionals can be magnified by thermodynamic consistency checks which will help to tackle them systematically in future developments of functionals. In this context we found that for increasing electrostatic interaction inconsistencies become more pronounced, because the bulk pressure (lhs of eq. (45)) does not contain an electrostatic contribution due to the mean-field like structure of the functional. Finally, improvements in terms of additional approximations from the Barker-Henderson theory might yield improved bulk values and better density profiles at uncharged hard walls, while keeping the underlying Hamiltonian _within_ _reach_ . ACKNOWLEDGMENTS We acknowledge support by the state of BadenW¨urttemberg through bwHPC and the German Research Foundation (DFG) through Grant No. INST 39/963-1 FUGG (bwForCluster NEMO) and through Project No. (A2) First, the shell theorem was applied. Then the second integral can be solved trivially and gives a term depending on the hard sphere diameters. Transitioning to spherical coordinates the first integral yields another term depending on the hard sphere diameters and a diverging term. However, due to the imposed charge neutrality - _ν_ <sup>_′ Zν′ρν′_</sup> <sup>= 0</sup> <sup>this</sup> <sup>diverging</sup> <sup>term</sup> <sup>vanishes.</sup> The second term of eq. (A1) is equivalent to the first one. We see that the rhs of the shell theorem in eq. (29) dr _⃗_ <sup>_′_</sup> <sup>_δ_</sup> _⃗_ _⃗_ 2 _⃗_ _<u>|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r _<u>| −</u>_ ( <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ 2 ) _⃗_ _⃗_ <sup>_<u>dν′</u>_</sup> dr _⃗_ 2  _⃗_ _⃗_ _⃗_ _π_ ( _dν_ + _dν′_ ) <sup>2</sup> _|_ r _⃗_ 2 _−⃗_ r <sup>_′_</sup> _|_ <u>2</u> dr _⃗_ <sup>_′_</sup> _dν_ + _dν_ <sup>_′_</sup> <sup>+</sup> <u>1</u> dr _⃗_ <sup>_′_</sup> _|_ r _⃗_ <sup>_′_</sup> _−⃗_ r _|_  _V_ <sup>_′_</sup>    = <sup><u>λB</u></sup> 2 _β_ <sup><u>λB</u></sup> 2 _β_ <sup>_Zν_</sup> - _<u>π</u>_ 3 <sup>(</sup> <sup>_dν_</sup> <sup>+</sup> <sup>_dν′_</sup> <sup>)2</sup> _ν_ <sup>_′_</sup>   R <sup>3</sup> _\V_ <sup>_′_</sup> _<u>dν</u>_ <u>+</u> _<u>dν′</u>_ 2 _∞_ = <sup><u>λB</u></sup> 2 _β_ <sup><u>λB</u></sup> 2 _β_ <sup>_Zν_</sup>      _<u>π</u>_ 3 <sup>(</sup> <sup>_dν_</sup> <sup>+</sup> <sup>_dν′_</sup> <sup>)2 + 4</sup> <sup>_π_</sup> _ν_ <sup>_′_</sup>  d _r r_    = <sup><u>λB</u></sup> 2 _β_ <sup><u>λB</u></sup> 2 _β_ <sup>_Zν_</sup> _Zν′ρν′_ _Zν′ρν′_ _Zν′ρν′_ _ν_ <sup>_′_</sup> _r_ lim _→∞_ <sup>_r_</sup> <sup>2</sup> <sup>_−_</sup> <sup>_<u>π</u>_</sup> 2 + 2 _π_ lim <sup>_<u>π</u>_</sup> 2 <sup>(</sup> <sup>_dν_</sup> <sup>+</sup> <sup>_dν′_</sup> <sup>)2</sup> = _−_ 12 <sup>_<u>π</u>_</sup> <u>λB</u> 12 <sup>_<u>π</u>_</sup> _β_ _Zν′ρν′_ ( _dν_ + _dν′_ ) <sup>2</sup> . _β_ <sup>_Zν_</sup> _ν_ <sup>_′_</sup> only depends on _|_ r _⃗_ 1 _−⃗_ r2 _|_, which is symmetric in _⃗_ r1 and r2. As a consequence, the equivalence follows via <u>Φ</u> _<u>i−</u>_ <u>1</u> _<u>−</u>_ <u>2Φ</u> _<u>i</u>_ <u>+ Φ</u> _<u>i</u>_ <u>+1</u> ∆ _r_ <sup>2</sup> <u>2Φ</u> _<u>i</u>_ <u>+ Φ</u> _<u>i</u>_ <u>+1</u> + <sup><u>Φ</u></sup> <sup>_<u>i−</u>_</sup> <sup><u>1 + Φ</u></sup> <sup>_<u>i</u>_</sup> <sup><u>+1</u></sup> ∆ _r_ <sup>2</sup> _ri_ ∆ _r_ of a charge distribution _q_ ( _r_ ) can be discretized <sup><u>1 + Φ</u></sup> <sup>_<u>i</u>_</sup> <sup><u>+1</u></sup> _ri_ ∆ _r_ = _−_ 4 _π_ λB _q_ ( _ri_ ) (B2) _ν_ <sup>_′_</sup> - _φν′_ _∗_ _δ_ <sup>˜</sup> _νν′_ (r) _⃗_ 2 _<u>|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r _<u>| −</u>_ ( <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ 2 ) _⃗_ _⃗_ <sup>_<u>dν′</u>_</sup> dr _⃗_ <sup>_′_</sup> <sup>_ρν′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>2)</sup> <sup>_δ_</sup> _⃗_ _⃗_ _<u>ρν′</u>_ <u>(r</u> _⃗_ <u>2)</u> _|_ r _⃗_ 2 _−⃗_ r _|_ <sup>+</sup> - dr _⃗_ <sup>_′_</sup> <sup>_<u>n</u>_</sup> _<u>νν</u>_ <sup>_δ_</sup> <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ <sup>,</sup> dr _⃗_ 2  = = = = _ν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> λB _Zν′_ λB _Zν′_ λB _Zν′_ λB _⃗_ <sup>_⃗_</sup> _⃗_ _⃗_ _π_ ( _dν_ + _dν′_ ) <sup>2</sup> _|_ r _⃗_ 2 _−⃗_ r <sup>_′_</sup> _|_ _⃗_ _⃗_  dr _⃗_ 2 <u>2</u> _<u>ρν′</u>_ <u>(r</u> _⃗_ <u>2)</u> _dν_ + _dν′_     _V_ <sup>_′_</sup> dr _⃗_ 2 _⃗_ _⃗_ R <sup>3</sup> _\V_ <sup>_′_</sup> into a system of linear equations. Φ _−_ 1 and Φ _n_ +1 are the two occurring boundary conditions to be specified. They are subtracted from the equation to make them appear on the right-hand side. Now, the system of linear equations can be represented by a matrix equation with a tridiagonal matrix, for which there are solving algorithms <sup>64</sup> of linear numerical complexity _O_ ( _n_ ). As boundary conditions we chose a combination of Dirichlet and Neumann conditions. The Neumann condition is imposed at the center 2 _<u>|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r2 _<u>| −</u>_ ( <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _⃗_ _⃗_ 2 ) _⃗_ _⃗_ <sup>_<u>dν′</u>_</sup> dr _⃗_ 2 dr _⃗_ <sup>_′_</sup> <sup>_ρν′_</sup> <sup>(r</sup> <sup>_⃗_</sup> <sup>2)</sup> <sup>_δ_</sup> _⃗_ _⃗_ lim _r→_ 0 _<u>∂</u>_ <u>Φ(</u> _<u>r</u>_ <u>)</u> = 0, (B3) _∂r_ _⃗_ <sup>_⃗_</sup> _⃗_ _⃗_ _π_ ( _dν_ + _dν′_ ) <sup>2</sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ (A3) _⃗_ <sup>_<u>n</u>_</sup> _<u>νν</u>_ <sup>_δ_</sup> <sup>_′_</sup> <sup><u>(r</u></sup> <sup>_⃗_</sup> <sup>_′_</sup> <sup><u>)</u></sup> _|_ r _⃗_ _−⃗_ r <sup>_′_</sup> _|_ <sup>,</sup> because we know that the derivative of the potential by the radial coordinate vanishes due to the spherical symmetry. The outer boundary condition at _R_ max is of Dirichlet type where the mentioned symmetry is utilized in the third and fourth line. Thus, it remains to calculate the bulk case of the third term of eq. (A1), Φ( _R_ max) = λB _<u>Q</u>_ <u>tot</u> _R_ max , (B4) _−_ <sup><u>λ</u></sup> _β_ <sup><u>B</u></sup> <sup>_Zν_</sup> - _Zν_ <sup>_′_</sup> _ρν_ <sup>_′_</sup> _ν_ <sup>_′_</sup> <u>2</u> dr _⃗_ <sup>_′_</sup> <sup>2</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_<u>dν</u>_</sup> <sup><u>+</u></sup> <sup>_<u>dν′</u>_</sup> _<u>−|</u>_ r _⃗_ <sup>_′_</sup> _<u>−⃗</u>_ r _<u>|</u>_ ) _dν_ + _dν′_ R <sup>3</sup> _\V_ <sup>_′_</sup> = _−_ 2 <sup><u>λ</u></sup> _β_ <sup><u>B</u></sup> <sup>_Zν_</sup> = _−_ 2 <sup><u>λ</u></sup> _β_ <sup><u>B</u></sup> _ν_ <sup>_′_</sup> _<u>Zν′ρν′</u>_ _dν_ + _dν′_ (A4) dr _⃗_ <sup>_′_</sup> and is hence set according to Gauss’ law. Since all charges are contained within the sphere of radius _R_ max, the total charge _Q_ tot is given by the integral of the total charge density over the volume of that sphere. Note, that this quantity is usually non-zero, because the charge of the test particle is not included and its potential is incorporated into the external potential = _−_ <sup>_<u>π</u>_</sup> 3 <u>λB</u> <sup>_<u>π</u>_</sup> 3 _β_ _Zν′ρν′_ ( _dν_ + _dν′_ ) <sup>2</sup> . _β_ <sup>_Zν_</sup> _ν_ <sup>_′_</sup> Here, the integral yields the volume of a sphere. Now, the modified chemical potential contributions, which are also found in eq. (35) and eq. (38), follow as _V_ ext _,ν_ ( _r_ ) = λB _Zν_ _<u>Q</u>_ <u>test</u> . (B5) _r_ <sup>_∗_</sup> _ν_ <sup>_θ_</sup> <sup>=</sup> <sup>_<u>π</u>_</sup> _β_ _ν_ <sup>_′_</sup> (A5) _µ_ <sup>_∗_</sup> _ν_ <sup>_θ_</sup> <sup>_<u>π</u>_</sup> _<u>Zν</u>_ <u>λB</u> 6 _β_ _Zν′ρν′_ ( _dν_ + _dν′_ ) <sup>2</sup> The Poisson equation for the hard wall geometry can be treated similarly as discussed above for the spherical geometry. However, now we supply Dirichlet boundary conditions at both walls and set the potentials to _±_ ∆Φ _/_ 2. Hence, the external potential is already incorporated into the boundary conditions. Now we compute the potential of the weighted charge densities _n_ <sup>_δ_</sup> _νν_ <sup>_′_</sup> <sup>that</sup> <sup>occur</sup> <sup>in</sup> <sup>the</sup> <sup>functional</sup> <sup>derivatives</sup> <sup>of</sup> _F_ ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>in</sup> <sup>eqs.</sup> <sup>(31)</sup> <sup>and</sup> <sup>(37).</sup> <sup>As</sup> <sup>we</sup> <sup>have</sup> <sup>seen</sup> <sup>pre-</sup> viously the first two terms in both of these equations _ν_ <sup>_′_</sup> <sup>_∗δ_</sup> _ν_ <sup>=</sup> <sup>_−_</sup> <sup>_<u>π</u>_</sup> 6 _Zν′ρν′_ ( _dν_ + _dν′_ ) <sup>2</sup> . _µ_ <sup>_∗δ_</sup> _<u>Zν</u>_ <u>λB</u> <sup>_<u>π</u>_</sup> 6 _β_ _β_ Note, that if the hard sphere diameters of all species are equal, the bulk derivatives vanish due to the charge neutrality <sup>�</sup> _ν_ <sup>_′ Zν′ρν′_</sup> <sup>= 0</sup> <sup>of</sup> <sup>bulk.</sup> Appendix B: Numerical Implementation The numerical solution of Poisson equations is usually obtained by discretizing the difference quotient. Suppose that the potential Φ( _r_ ) of the test particle system is discretized into _n_ equidistant points in space with Φ( _ri_ = _i_ ∆ _r_ ) = Φ _i_ for _i_ = 1 _, . . ., n_ . The radial Poisson equation ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> the = _−_ 4 _π_ λB _q_ ( _r_ ) (B1) _F_ ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>in</sup> <sup>eqs.</sup> <sup>(31)</sup> <sup>and</sup> <sup>(37).</sup> <sup>As</sup> <sup>we</sup> <sup>have</sup> <sup>seen</sup> <sup>pre-</sup> viously the first two terms in both of these equations are identical and, for this reason, we only compute the second one. Here, the potentials of the weighted charge densities are required. To compute them, the system has to be extended such that the weighted charge densities are contained completely within the boundaries. The new boundary conditions of the spherical system follow analogously to eqs. (B1) to (B5). For the planar system the electrostatic potential Φ( _z_ ) has to be extrapolated linearly (into the physical walls) to cover the whole extended system. Hence, after computing the potential Φ of the physical system, the weighted charge densities are calculated to compute the corresponding species-specific potentials. <u>1</u> _<u>∂</u>_ _r_ <sup>2</sup> _∂r_ - _r_ <sup>2</sup> <sup>_<u>∂</u>_</sup> <sup><u>Φ(</u></sup> <sup>_<u>r</u>_</sup> <sup><u>)</u></sup> _∂r_ _c_ bulk _c_ λB ∆Φ _Lx×Ly×Lz_ [M] [M] [nm] [V] [nm <sup>3</sup> ] 0.1 0.108 0.726 0.1 20 _×_ 20 _×_ 15 0.1 0.316 0.726 0.5 15 _×_ 15 _×_ 20 0.1 0.109 4.25 0.1 50 _×_ 50 _×_ 12 0.1 0.242 4.25 0.5 50 _×_ 50 _×_ 12 2.0 1.930 4.25 0.1 15 _×_ 15 _×_ 12 2.0 2.330 4.25 0.5 15 _×_ 15 _×_ 12 5.0 4.870 4.25 0.1 10 _×_ 10 _×_ 12 5.0 5.145 4.25 0.5 10 _×_ 10 _×_ 12 5.0 4.930 0.726 0.1 10 _×_ 10 _×_ 12 5.0 5.368 0.726 0.5 10 _×_ 10 _×_ 12 TABLE III. Parameters used for MD simulations of the PM confined between two parallel charged plates. The corresponding density profiles decay to a bulk concentration _c_ bulk, when an overall concentration _c_ = 1 _._ 661 _ρ_ + with _ρ_ + = _N_ + _/V_ is used. The simulation box volume is given by _V_ = _Lx_ _×_ _Ly_ _× Lz_ . Lennard-Jones potential (C1) �6 + _c_ shift _v_ LJ( _r_ ) = 4 _α_ �� _<u>r</u>_ <u>0</u> �12 _r_ _−_ - _<u>r</u>_ <u>0</u> _r_ Fourier transforms are required for the convolutions in the FMT functional and the restricted phase-space functionals _F_ ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>.</sup> <sup>In</sup> <sup>the</sup> <sup>spherical</sup> <sup>geometry</sup> <sup>the</sup> 3D Fourier transform (FT) boils down to 1D sine- and ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> functionals _F_ ex <sup>_θ_</sup> <sup>and</sup> <sup>_F_</sup> ex <sup>_δ_</sup> <sup>.</sup> <sup>In</sup> <sup>the</sup> <sup>spherical</sup> <sup>geometry</sup> <sup>the</sup> 3D Fourier transform (FT) boils down to 1D sine- and cosine-transforms (ST and CT), for example FT _{ρν_ ( _r_ ) _}_ = _ρ_ ˆ _ν_ ( _k_ ) = <sup><u>4</u></sup> _k_ <sup>_<u>π</u>_</sup> _∞_ d _r rρν_ ( _r_ ) sin( _kr_ ) 0 (B6a) with an offset _c_ shift = 4 <sup><u>1</u></sup> <sup>, a truncation radius of</sup> <sup>_r_</sup> <sup>cut</sup> <sup>=</sup> <sup>_dν_</sup> <sup>,</sup> a potential depth of _α_ = 5 _·_ 10 <sup>3</sup> _k_ B _T_, and _r_ 0 = 2 <sup>_−_</sup> <sup>1</sup> <sup>_/_</sup> <sup>6</sup> _dν_ . The hard-core interactions between walls and particles were implemented analogously. The long-range electrostatic interactions are implemented via the P3M electrostatics solver, which employs a certain kind of Ewald summation method <sup>45</sup> . The external electric field due to the charged walls is added via 4 _πk_ B _T_ λB _Q/e_, where _Q_ is the total charge of the walls. The latter is obtained from the wall charge density of the DFT calculations via eq. (43). The restricted symmetry in the simulations due to the hard walls is taken care of by an electric layer correction implemented in `ESPResSo` . A preliminary equilibration run is performed such that the system reaches the expected average kinetic energy within a 1% accuracy. Afterwards several particle trajectories are recorded by taking snapshots every 300 time steps until in total 10 <sup>5</sup> snapshots are collected. These snapshots are then processed into a histogram with 400 bins. The simulation box dimensions depended on the concentration of the simulated system and on how far the density profiles were expected to decay into the bulk. The parameter combinations for all reported systems are presented in table III. 1A. Shukla, S. Sampath, and K. Vijayamohanan, “Electrochemical supercapacitors: Energy storage beyond batteries,” [Current](https://www.jstor.org/stable/24104124) Science 79, [1656–1661](https://www.jstor.org/stable/24104124) (2000). 2A. Namisnyk and J. Zhu, “A survey of electrochemical supercapacitor technology,” in _Australian_ _Universities_ _Power_ _Engi-_ _neering_ _Conference_ (University of Canterbury, New Zealand, 2003). 3W. K. Chee, H. N. Lim, Z. Zainal, N. M. Huang, I. Harrison, and Y. Andou, “Flexible graphene-based supercapacitors: a review,” The Journal of Physical [Chemistry](https://doi.org/10.1021/acs.jpcc.5b10187) C 120, 4153–4172 (2016). 4J. P. Valleau and L. K. Cohen, “Primitive model electrolytes. i. grand canonical monte carlo computations,” The [Journal](https://doi.org/10.1063/1.439092) of Chemical Physics [72](https://doi.org/10.1063/1.439092), 5935–5941 (1980). 5G. Torrie and J. Valleau, “Electrical double layers. i. monte carlo study of a uniformly charged surface,” The Journal of Chemical Physics 73, [5807–5816](https://doi.org/10.1063/1.440065) (1980). 6M. V. Fedorov and A. A. Kornyshev, “Ionic liquid near a charged wall: Structure and capacitance of electrical double layer,” [The](https://doi.org/10.1021/jp803440q) Journal of Physical [Chemistry](https://doi.org/10.1021/jp803440q) B 112, 11868–11872 (2008). 7I. Kalcher and J. Dzubiella, “Structure-thermodynamics relation of electrolyte solutions,” The Journal of [Chemical](https://doi.org/10.1063/1.3097530) Physics 130, [134507](https://doi.org/10.1063/1.3097530) (2009). 8C. Merlet, B. Rotenberg, P. A. Madden, P.-L. Taberna, P. Simon, Y. Gogotsi, and M. Salanne, “On the molecular origin of supercapacitance in nanoporous carbon electrodes,” Nature [Materials](https://doi.org/10.1038/nmat3260) 11, [306–310](https://doi.org/10.1038/nmat3260) (2012). 9R. Evans, “The nature of the liquid-vapour interface and other topics in the statistical mechanics of non-uniform, classical fluids,” Advances in [physics](https://doi.org/10.1080/00018737900101365) 28, 143–200 (1979). 10J.-P. Hansen and I. R. McDonald, _Theory of Simple Liquids:_ _with_ _Applications_ _to_ _Soft_ _Matter_, 4th ed. (Academic Press, 2013). 11J. Percus, “Equilibrium state of a classical fluid of hard rods in an [external field,” Journal of Statistical Physics](https://doi.org/10.1007/BF01020803) 15, 505–511 (1976). 12Y. Rosenfeld, “Free-energy model for the inhomogeneous hardsphere fluid mixture and density-functional theory of freezing,” Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.63.980) 63, 980 (1989). = <sup><u>4</u></sup> <sup>_<u>π</u>_</sup> _k_ <sup>ST</sup> <sup>_{rρν_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_}_</sup> <sup>,</sup> <u>1</u> <u>4</u> _<u>π</u>_ (B6b) FT _{ρ_ ˆ _ν_ ( _k_ ) _}_ = _ρν_ ( _r_ ) = 8 _π_ <sup>3</sup> _r_ <sup>ST</sup> <sup>_{kρν_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_}_</sup> for the quantity _rρν_ ( _r_ ). Numerical packages like `FFTW3` <sup>65</sup> also offer sine- and cosine-transforms in addition to the Euclidean 1D transform. Another way to compute STs and CTs is via Hankel transforms of order _±_ 1 _/_ 2. Appendix C: Simulation Details The molecular dynamics simulations for the density profiles for the planar geometry discussed in section III A and for the radial distribution functions used in section III B were carried out in the simulation package `ESPResSo` `4.1.4` <sup>45</sup> . As simulation units we use _k_ B _T_ for ener�gy, <u>3</u> _<u>·</u>_ <u>10</u> <sup>_−_</sup> <sup>23</sup> <u>g</u> for mass, 1 nm for length, and [length mass _/_ energy] _≈_ 2 _._ 7 ps for time. Instead of sim ulating the system at fixed chemical potentials _µν_ in the grand ensemble ( _µV T_ ) as used in DFT, we prescribe fixed particle numbers _Nν_ in the canonical ensemble ( _NV T_ ). To ensure comparability between density profiles obtained from simulations and DFT, we set the particle numbers such that the densities in bulk agree with each other. The hard-sphere interactions are modelled by a steep, purely repulsive, truncated and shifted 13H. Hansen-Goos and R. Roth, “Density functional theory for hard-sphere mixtures: the white bear version mark ii,” [Journal](https://doi.org/10.1088/0953-8984/18/37/002) of Physics: [Condensed](https://doi.org/10.1088/0953-8984/18/37/002) Matter 18, 8413 (2006). 14R. Roth, “Fundamental measure theory for hard-sphere mixtures: a review,” Journal of Physics: [Condensed](https://doi.org/10.1088/0953-8984/22/6/063102) Matter 22, 063102 [(2010).](https://doi.org/10.1088/0953-8984/22/6/063102) 15F. van Swol and J. Henderson, “Wetting and drying transitions at a fluid-wall interface: Density-functional theory versus computer simulation,” Physical Review [A](https://doi.org/10.1103/PhysRevA.40.2567) 40, 2567 (1989). 16M. M. Hatlo, P. Banerjee, J. Forsman, and L. Lue, “Density functional theory for yukawa fluids,” The Journal of Chemical Physics 137 [,](https://doi.org/10.1063/1.4742154) 064115 (2012). 17E. Waisman and J. L. Lebowitz, “Mean spherical model integral equation for charged hard spheres i. method of solution,” [The](https://doi.org/10.1063/1.1677644) Journal of Chemical [Physics](https://doi.org/10.1063/1.1677644) 56, 3086–3093 (1972). 18A. H¨artel, M. Janssen, S. Samin, and R. van Roij, “Fundamental measure theory for the electric double layer: implications for blue-energy harvesting and water desalination,” [Journal](https://doi.org/10.1088/0953-8984/27/19/194129) of Physics: Condensed [Matter](https://doi.org/10.1088/0953-8984/27/19/194129) 27, 194129 (2015). 19Y.-X. Yu, J. Wu, and G.-H. Gao, “Density-functional theory of spherical electric double layers and _ζ_ potentials of colloidal [particles in restricted-primitive-model electrolyte solutions,” The](https://doi.org/10.1063/1.1676121) Journal of Chemical [Physics](https://doi.org/10.1063/1.1676121) 120, 7223–7233 (2004). 20R. Roth and D. Gillespie, “Shells of charge: a density functional [theory for charged hard spheres,” Journal of Physics:](https://doi.org/10.1088/0953-8984/28/24/244006) Condensed Matter 28, [244006](https://doi.org/10.1088/0953-8984/28/24/244006) (2016). 21P. Cats, R. Evans, A. H¨artel, and R. van Roij, “Primitive model electrolytes in the near and far field: Decay lengths from dft and simulations,” The Journal of [Chemical](https://doi.org/10.1063/5.0039619) Physics 154, 124504 [(2021).](https://doi.org/10.1063/5.0039619) 22J. Jiang and D. Gillespie, “Revisiting the charged shell model: A density functional theory for electrolytes,” Journal [of](https://doi.org/10.1021/acs.jctc.1c00052) Chemical Theory and [Computation](https://doi.org/10.1021/acs.jctc.1c00052) 17, 2409–2416 (2021). 23J. A. Barker and D. Henderson, “Perturbation theory and equation of state for fluids. ii. a successful theory of liquids,” [The](https://doi.org/10.1063/1.1701689) Journal of Chemical [Physics](https://doi.org/10.1063/1.1701689) 47, 4714–4721 (1967). 24S. M. Tschopp, H. D. Vuijk, A. Sharma, and J. M. Brader, “Mean-field theory of inhomogeneous fluids,” Physical Review E 102, [042140](https://doi.org/10.1103/PhysRevE.102.042140) (2020). 25R. van Roij, “Statistical thermodynamics of supercapacitors and blue engines,” (2012), [10.48550/ARXIV.1211.1269.](https://doi.org/10.48550/ARXIV.1211.1269) 26J.-P. Hansen and I. R. McDonald, _Theory_ _of_ _Simple_ _Liquids:_ _with_ _Applications_ _to_ _Soft_ _Matter_, 4th ed. (Academic Press, 2013) p. 34. 27L. Ornstein and F. Zernike, “Accidental deviations of density and opalescence at the critical point of a single substance,” Proceeding of Akademic Science 17, 793 (1914). 28J. Percus, “Approximation methods in classical statistical mechanics,” Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.8.462) 8, 462 (1962). 29H. L. Frisch and J. L. Lebowitz, _The_ _Equilibrium_ _Theory_ _of_ _Clas-_ _sical_ _Fluids:_ _a_ _Lecture_ _Note_ _and_ _Reprint_ _volume_ (WA Benjamin, 1964) pp. II–33—II–170. 30P. Hohenberg and W. Kohn, “Inhomogeneous electron gas,” Physical Review [136](https://doi.org/10.1103/PhysRev.136.B864), B864 (1964). 31N. D. Mermin, “Thermal properties of the inhomogeneous electron gas,” Physical Review [137](https://doi.org/10.1103/PhysRev.137.A1441), A1441 (1965). 32P. Tarazona, “Density functional for hard sphere crystals: A fundamental measure approach,” Physical Review Letters 84, 694 [(2000).](https://doi.org/10.1103/PhysRevLett.84.694) 33M. Oettel, S. G¨orig, A. H¨artel, H. L¨owen, M. Radu, and T. Schilling, “Free energies, vacancy concentrations, and density distribution anisotropies in hard-sphere crystals: A combined density functional and simulation study,” Physical [Review](https://doi.org/10.1103/PhysRevE.82.051404) E 82, [051404](https://doi.org/10.1103/PhysRevE.82.051404) (2010). 34A. H¨artel, M. Oettel, R. E. Rozas, S. U. Egelhaaf, J. Horbach, and H. L¨owen, “Tension and stiffness of the hard sphere crystalfluid interface,” Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.108.226101) 108, 226101 (2012). 35A. H¨artel, M. Kohl, and M. Schmiedeberg, “Anisotropic pair correlations in binary and multicomponent hard-sphere mixtures in the vicinity of a hard wall: a combined density functional theory and simulation study,” Physical Review E 92, 042310 (2015). 36J.-P. Hansen and I. R. McDonald, _Theory of Simple Liquids:_ _with_ _Applications_ _to_ _Soft_ _Matter_, 4th ed. (Academic Press, 2013) pp. 71–72. 37J.-P. Hansen and I. R. McDonald, _Theory of Simple Liquids:_ _with_ _Applications_ _to_ _Soft_ _Matter_, 4th ed. (Academic Press, 2013) p. 438. 38F. Coupette, A. H¨artel, _et_ _al._, “Screening lengths in ionic fluids,” Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.121.075501) 121, 075501 (2018). 39J. D. Weeks, D. Chandler, and H. C. Andersen, “Role of repulsive forces in determining the equilibrium structure of simple liquids,” The Journal of Chemical [Physics](https://doi.org/10.1063/1.1674820) 54, 5237–5247 (1971). 40J. Forsman, “A simple correlation-corrected poisson-boltzmann theory,” The Journal of Physical [Chemistry](https://doi.org/10.1021/jp049571u) B 108, 9236–9245 [(2004).](https://doi.org/10.1021/jp049571u) 41J. P. de Souza, Z. A. Goodwin, M. McEldrew, A. A. Kornyshev, and M. Z. Bazant, “Interfacial layering in the electric double layer of ionic liquids,” Physical Review [Letters](https://doi.org/10.1103/PhysRevLett.125.116001) 125, 116001 (2020). 42A. H¨artel, _Density_ _Functional_ _Theory_ _of_ _Hard_ _Colloidal_ _Parti-_ _cles:_ _From_ _Bulk_ _to_ _Interfaces_ (Shaker Verlag, 2013). 43P. A. Tipler and G. Mosca, _Physics_ _for_ _Scientists_ _and_ _Engineers_ (Macmillan, 2007) p. 779. 44To see that this holds true one can substitute _⃗_ r := _⃗_ r _′_ _−⃗_ r1 and shellr12 :=is _⃗_ robtained.2 _−⃗_ r1. ThenThe thesolutionformaltosolutionthis problemto a sphericalis, for example,charge given in <sup>43</sup> . 45F. Weik, R. Weeber, K. Szuttor, K. Breitsprecher, J. de Graaf, M. Kuron, J. Landsgesell, H. Menke, D. Sean, and C. Holm, “Espresso 4.0 - an extensible software package for simulating soft matter systems,” The European [Physical](https://doi.org/10.1140/epjst/e2019-800186-9) Journal Special Topics 227, [1789–1816](https://doi.org/10.1140/epjst/e2019-800186-9) (2019). 46R. Fantoni and G. Pastore, “Monte carlo simulation of the nonadditive restricted primitive model of ionic fluids: Phase diagram and clustering,” Physical Review E 87, 052303 (2013). 47G. Orkoulas and A. Z. Panagiotopoulos, “Free energy and phase equilibria for the restricted primitive model of ionic fluids from monte carlo simulations,” The Journal of [Chemical](https://doi.org/10.1063/1.467770) Physics 101, [1452–1459](https://doi.org/10.1063/1.467770) (1994). 48W. van Megen and I. Snook, “The grand canonical ensemble monte carlo method applied to the electrical double layer,” [The](https://doi.org/10.1063/1.440657) Journal of Chemical [Physics](https://doi.org/10.1063/1.440657) 73, 4656–4662 (1980). 49A. A. Kornyshev, “Double-layer in ionic liquids: paradigm change?” The Journal of Physical [Chemistry](https://doi.org/10.1021/jp067857o) B 111, 5545–5557 [(2007).](https://doi.org/10.1021/jp067857o) 50M. A. Gebbie, M. Valtiner, X. Banquy, E. T. Fox, W. A. Henderson, and J. N. Israelachvili, “Ionic liquids behave as dilute electrolyte solutions,” Proceedings of the [National](https://doi.org/10.1073/pnas.1307871110) Academy of Sciences 110, [9674–9679](https://doi.org/10.1073/pnas.1307871110) (2013). 51A. M. Smith, A. A. Lee, and S. Perkin, “The electrostatic screening length in concentrated electrolytes increases with concentration,” The Journal of Physical [Chemistry](https://doi.org/10.1021/acs.jpclett.6b00867) Letters 7, 2157–2163 [(2016).](https://doi.org/10.1021/acs.jpclett.6b00867) 52S. W. Coles, C. Park, R. Nikam, M. Kandu˘c, J. Dzubiella, and B. Rotenberg, “Correlation length in concentrated electrolytes: Insights from all-atom molecular dynamics simulations,” [The](https://doi.org/10.1021/acs.jpcb.9b10542) Journal of Physical [Chemistry](https://doi.org/10.1021/acs.jpcb.9b10542) B 124, 1778–1786 (2020). 53R. Kjellander, “A multiple decay-length extension of the debye–h¨uckel theory: to achieve high accuracy also for concentrated solutions and explain under-screening in dilute symmetric elec[trolytes,” Physical Chemistry Chemical Physics](https://doi.org/10.1039/D0CP02742A) 22, 23952–23985 [(2020).](https://doi.org/10.1039/D0CP02742A) 54J. Zeman, S. Kondrat, and C. Holm, “Bulk ionic screening lengths from extremely large-scale molecular dynamics simulations,” Chemical [Communications](https://doi.org/10.1039/D0CC05023G) 56, 15635–15638 (2020). 55C. S. Perez-Martinez, A. M. Smith, S. Perkin, _et_ _al._, “Under[screening in concentrated electrolytes,” Faraday Discussions](https://doi.org/10.1039/C6FD00250A) 199, [239–259](https://doi.org/10.1039/C6FD00250A) (2017). 56J.-P. Hansen and I. R. McDonald, _Theory of Simple Liquids:_ _with_ _Applications_ _to_ _Soft_ _Matter_, 4th ed. (Academic Press, 2013) p. 417. 57We “measured” consistency by a comparison of the shown curves, performed by the naked eye. For a rigorous definition of a measure, one can utilize a norm in function space. 58D. Henderson, L. Blum, and J. L. Lebowitz, “An exact formula for the contact value of the density profile of a system of charged hard spheres near a charged wall,” Journal of [Electroanalytical](https://doi.org/10.1016/S0022-0728%0x2879%0x2980459-3) [Chemistry and Interfacial Electrochemistry](https://doi.org/10.1016/S0022-0728%0x2879%0x2980459-3) 102, 315–319 (1979). 59E. Kierlik and M. Rosinberg, “Density-functional theory for inhomogeneous fluids: adsorption of binary mixtures,” [Physical](https://doi.org/10.1103/PhysRevA.44.5025) Review A [44](https://doi.org/10.1103/PhysRevA.44.5025), 5025 (1991). 60A. J. Archer, B. Chacko, and R. Evans, “The standard mean-field treatment of inter-particle attraction in classical dft is better than [one might expect,” The Journal of Chemical Physics](https://doi.org/10.1063/1.4993175) 147, 034501 [(2017).](https://doi.org/10.1063/1.4993175) 61S. Nordholm, “Simple analysis of the thermodynamic properties of the one-component plasma,” Chemical [Physics](https://doi.org/10.1016/0009-2614%0x2884%0x2985035-6) Letters 105, [302–307](https://doi.org/10.1016/0009-2614%0x2884%0x2985035-6) (1984). 62R. G. Parr and W. Yang, _Density-Functional_ _theory_ _of_ _Atoms_ _and_ _Molecules_, 1st ed. (Oxford University Press, 1994). 63M. Edelmann and R. Roth, “A numerical efficient way to minimize classical density functional theory,” The Journal of Chemical Physics 144, 074105 (2016). 64W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery, _Numerical_ _Recipes_ _3rd_ _Edition:_ _The_ _Art_ _of_ _Scientific_ _Com-_ _puting_ (Cambridge University Press, 2007) p. 56. 65M. Frigo and S. G. Johnson, “The design and implementation of fftw3,” Proceedings of the [IEEE](https://doi.org/10.1109/JPROC.2004.840301) 93, 216–231 (2005).

섹션 본문

섹션 본문이 없습니다.

참고문헌 50건

  1. Role of Repulsive Forces in Determining the Equilibrium Structure of Simple Liquids The Journal of Chemical Physics · American Institute of Physics · 1971 10.1063/1.1674820
  2. Anisotropic pair correlations in binary and multicomponent hard-sphere mixtures in the vicinity of a hard wall: A combined density functional theory and simulation study Physical Review E · American Physical Society · 2015 10.1103/physreve.92.042310
  3. Structure-thermodynamics relation of electrolyte solutions The Journal of Chemical Physics · American Institute of Physics · 2009 10.1063/1.3097530
  4. Free-energy model for the inhomogeneous hard-sphere fluid mixture and density-functional theory of freezing Physical Review Letters · American Physical Society · 1989 10.1103/physrevlett.63.980
  5. Density-functional theory of spherical electric double layers and ζ potentials of colloidal particles in restricted-primitive-model electrolyte solutions The Journal of Chemical Physics · American Institute of Physics · 2004 10.1063/1.1676121
  6. Approximation Methods in Classical Statistical Mechanics Physical Review Letters · American Physical Society · 1962 10.1103/physrevlett.8.462
  7. Equilibrium state of a classical fluid of hard rods in an external field Journal of Statistical Physics · Springer Science+Business Media · 1976 10.1007/bf01020803
  8. Free energy and phase equilibria for the restricted primitive model of ionic fluids from Monte Carlo simulations The Journal of Chemical Physics · American Institute of Physics · 1994 10.1063/1.467770
  9. The nature of the liquid-vapour interface and other topics in the statistical mechanics of non-uniform, classical fluids Advances In Physics · Taylor & Francis · 1979 10.1080/00018737900101365
  10. Density functional theory for Yukawa fluids The Journal of Chemical Physics · American Institute of Physics · 2012 10.1063/1.4742154
  11. Double-Layer in Ionic Liquids: Paradigm Change? The Journal of Physical Chemistry B · American Chemical Society · 2007 10.1021/jp067857o
  12. Density Functional for Hard Sphere Crystals: A Fundamental Measure Approach Physical Review Letters · American Physical Society · 2000 10.1103/physrevlett.84.694
  13. Simple analysis of the thermodynamic properties of the one-component plasma Chemical Physics Letters · Elsevier BV · 1984 10.1016/0009-2614(84)85035-6
  14. Density functional theory for hard-sphere mixtures: the White Bear version mark II Journal of Physics Condensed Matter · IOP Publishing · 2006 101088095389841837002
  15. Electrical double layers. I. Monte Carlo study of a uniformly charged surface The Journal of Chemical Physics · American Institute of Physics · 1980 10.1063/1.440065
  16. Wetting and drying transitions at a fluid-wall interface: Density-functional theory versus computer simulation Physical review. A, General physics · American Institute of Physics · 1989 10.1103/physreva.40.2567
  17. Inhomogeneous Electron Gas Physical Review · American Institute of Physics · 1964 10.1103/physrev.136.b864
  18. Density-functional theory for inhomogeneous fluids: Adsorption of binary mixtures Physical Review A · American Physical Society · 1991 10.1103/physreva.44.5025
  19. Thermal Properties of the Inhomogeneous Electron Gas Physical Review · American Institute of Physics · 1965 10.1103/physrev.137.a1441
  20. The grand canonical ensemble Monte Carlo method applied to the electrical double layer The Journal of Chemical Physics · American Institute of Physics · 1980 10.1063/1.440657
  21. Free energies, vacancy concentrations, and density distribution anisotropies in hard-sphere crystals: A combined density functional and simulation study Physical Review E · American Physical Society · 2010 10.1103/physreve.82.051404
  22. Fundamental measure theory for the electric double layer: implications for blue-energy harvesting and water desalination Journal of Physics Condensed Matter · IOP Publishing · 2015 101088095389842719194129
  23. Monte Carlo simulation of the nonadditive restricted primitive model of ionic fluids: Phase diagram and clustering Physical Review E · American Physical Society · 2013 10.1103/physreve.87.052303
  24. Ionic Liquid Near a Charged Wall: Structure and Capacitance of Electrical Double Layer The Journal of Physical Chemistry B · American Chemical Society · 2008 10.1021/jp803440q
  25. A Simple Correlation-Corrected Poisson−Boltzmann Theory The Journal of Physical Chemistry B · American Chemical Society · 2004 10.1021/jp049571u
  26. Fundamental measure theory for hard-sphere mixtures: a review Journal of Physics Condensed Matter · IOP Publishing · 2010 10.1088/0953-8984/22/6/063102
  27. An exact formula for the contact value of the density profile of a system of charged hard spheres near a charged wall Journal of Electroanalytical Chemistry · Elsevier BV · 1979 10.1016/s0022-0728(79)80459-3
  28. Perturbation Theory and Equation of State for Fluids. II. A Successful Theory of Liquids The Journal of Chemical Physics · American Institute of Physics · 1967 10.1063/1.1701689
  29. Tension and Stiffness of the Hard Sphere Crystal-Fluid Interface Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.108.226101
  30. Primitive model electrolytes. I. Grand canonical Monte Carlo computations The Journal of Chemical Physics · American Institute of Physics · 1980 10.1063/1.439092
  31. Mean Spherical Model Integral Equation for Charged Hard Spheres I. Method of Solution The Journal of Chemical Physics · American Institute of Physics · 1972 10.1063/1.1677644
  32. The Design and Implementation of FFTW3 Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 2005 10.1109/jproc.2004.840301
  33. On the molecular origin of supercapacitance in nanoporous carbon electrodes Nature Materials · Nature Portfolio · 2012 10.1038/nmat3260
  34. Statistical thermodynamics of supercapacitors and blue engines arXiv (Cornell University) · Cornell University · 2012
  35. Ionic liquids behave as dilute electrolyte solutions Proceedings of the National Academy of Sciences · National Academy of Sciences · 2013 10.1073/pnas.1307871110
  36. Flexible Graphene-Based Supercapacitors: A Review The Journal of Physical Chemistry C · American Chemical Society · 2016 10.1021/acs.jpcc.5b10187
  37. A numerical efficient way to minimize classical density functional theory The Journal of Chemical Physics · American Institute of Physics · 2016 10.1063/1.4942020
  38. Shells of charge: a density functional theory for charged hard spheres Journal of Physics Condensed Matter · IOP Publishing · 2016 10.1088/0953-8984/28/24/244006
  39. The Electrostatic Screening Length in Concentrated Electrolytes Increases with Concentration The Journal of Physical Chemistry Letters · American Chemical Society · 2016 10.1021/acs.jpclett.6b00867
  40. Underscreening in concentrated electrolytes Faraday Discussions · Royal Society of Chemistry · 2017 10.1039/c6fd00250a
  41. The standard mean-field treatment of inter-particle attraction in classical DFT is better than one might expect The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4993175
  42. Screening Lengths in Ionic Fluids Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.121.075501
  43. ESPResSo 4.0 – an extensible software package for simulating soft matter systems The European Physical Journal Special Topics · Springer Science+Business Media · 2019 10.1140/epjst/e2019-800186-9
  44. Correlation Length in Concentrated Electrolytes: Insights from All-Atom Molecular Dynamics Simulations The Journal of Physical Chemistry B · American Chemical Society · 2020 10.1021/acs.jpcb.9b10542
  45. Interfacial Layering in the Electric Double Layer of Ionic Liquids Physical Review Letters · American Physical Society · 2020 10.1103/physrevlett.125.116001
  46. Mean-field theory of inhomogeneous fluids Physical review. E · American Physical Society · 2020 10.1103/physreve.102.042140
  47. A multiple decay-length extension of the Debye–Hückel theory: to achieve high accuracy also for concentrated solutions and explain under-screening in dilute symmetric electrolytes Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2020 10.1039/d0cp02742a
  48. Bulk ionic screening lengths from extremely large-scale molecular dynamics simulations Chemical Communications · Royal Society of Chemistry · 2020 10.1039/d0cc05023g
  49. Primitive model electrolytes in the near and far field: Decay lengths from DFT and simulations The Journal of Chemical Physics · American Institute of Physics · 2021 10106350039619
  50. Revisiting the Charged Shell Model: A Density Functional Theory for Electrolytes Journal of Chemical Theory and Computation · American Chemical Society · 2021 10.1021/acs.jctc.1c00052