Next Article in Journal
Solid-State Lithium Batteries with Cathode-Supported Composite Solid Electrolytes Enabling High-Rate Capability and Excellent Cyclic Performance
Next Article in Special Issue
Comprehensive Study of Failure Mechanisms of Field-Aged Automotive Lead Batteries
Previous Article in Journal
Polymer Electrolytes for Lithium-Sulfur Batteries: Progress and Challenges
Previous Article in Special Issue
Modeling and Experimental Investigation of the Interaction between Pressure-Dependent Aging and Pressure Development Due to the Aging of Lithium-Ion Cells
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analytic Free-Energy Expression for the 2D-Ising Model and Perspectives for Battery Modeling

by
Daniel Markthaler
1,*,† and
Kai Peter Birke
1,2
1
Fraunhofer Institute for Manufacturing Engineering and Automation IPA, Nobelstr. 12, 70569 Stuttgart, Germany
2
Electrical Energy Storage Systems, Institute for Photovoltaics, University of Stuttgart, Pfaffenwaldring 47, 70569 Stuttgart, Germany
*
Author to whom correspondence should be addressed.
Current address: Department of Bioenergetics, Institute of Biomaterials and Biomolecular Systems, University of Stuttgart, Pfaffenwaldring 57, 70569 Stuttgart, Germany.
Batteries 2023, 9(10), 489; https://doi.org/10.3390/batteries9100489
Submission received: 21 July 2023 / Revised: 19 September 2023 / Accepted: 20 September 2023 / Published: 25 September 2023
(This article belongs to the Special Issue The Precise Battery—towards Digital Twins for Advanced Batteries)

Abstract

:
Although originally developed to describe the magnetic behavior of matter, the Ising model represents one of the most widely used physical models, with applications in almost all scientific areas. Even after 100 years, the model still poses challenges and is the subject of active research. In this work, we address the question of whether it is possible to describe the free energy A of a finite-size 2D-Ising model of arbitrary size, based on a couple of analytically solvable 1D-Ising chains. The presented novel approach is based on rigorous statistical-thermodynamic principles and involves modeling the free energy contribution of an added inter-chain bond Δ A bond ( β , N ) as function of inverse temperature β and lattice size N. The identified simple analytic expression for Δ A bond is fitted to exact results of a series of finite-size quadratic N × N -systems and enables straightforward and instantaneous calculation of thermodynamic quantities of interest, such as free energy and heat capacity for systems of an arbitrary size. This approach is not only interesting from a fundamental perspective with respect to the possible transfer to a 3D-Ising model, but also from an application-driven viewpoint in the context of (Li-ion) batteries where it could be applied to describe intercalation mechanisms.

Graphical Abstract

1. Introduction

The Ising model [1,2] is a simple but at the same time very powerful model. Originally developed to describe ferromagnetism, the Ising model has evolved to be one of the most important theoretical models in physics since it was first described 100 years ago. The applications of the Ising model and derived variants are widespread [3] and include the description of nucleation phenomena [4], adsorption on solid substrates [5] and even modeling of social phenomena [6]. Battery modeling represents another interesting application area for the Ising model. Modern batteries such as lithium-ion batteries rely on the so-called intercalation mechanism, where empty sites in a host lattice are easily occupied by Li-ions, which can in principle be reversibly removed from these sites [7]. The similarity to the Ising model is obvious. In ferromagnetic materials, “spin-up” and “spin-down” are reflected by “1” and “-1”, respectively. One could now easily connect “1” to “lattice site occupied by an ion” and “-1” (or “0”) to “lattice site not occupied by an ion”. Thus, the Ising model could serve as a simple but highly efficient model to describe different phenomena such as phase transitions upon occupation of the electrode host lattice by movable ions. The Ising model could also be feasibly extended to more disordered materials such as alloys, e.g., Li-Si. However, beforehand, novel tools must be developed to handle the Ising model efficiently. It is well known that in three dimensions no analytical solution is yet available [8]. This paper develops a first approach to use analytical solutions of the finite-size Ising-lattice to extrapolate with high accuracies to the infinite lattice. Here, battery modeling serves the basic idea because a similar approach is executed for aging simulation in the sense that a set of data for “limited” time slots is available which can be used for extrapolation. This approach is demonstrated for the 2D-Ising model and will basically be transferred to the 3D-Ising model in a separate paper. We will show that certain interconnections and interactions between spins in the 2D-Ising model, which hamper a simple analytical solution, can be easily and efficiently tackled by calculating finite lattices and interpolation later. Using the framework of classical statistical thermodynamics, we present an easy-to-interpret expression for the free energy of quadratic 2D-Ising systems, which consists of two parts: (i) a purely analytical part based on 1D-Ising chains and (ii) a part which approximately describes the interactions between the chains. Through this novel starting approach, described in the present paper, we will stepwise develop a tool to reflect phenomena occurring upon the occupation of sites in the host electrode matrix with ions in modern batteries.
The paper is structured as follows: Section 2 summarizes the key statistical-mechanical and thermodynamic properties of the 1D- and 2D-Ising model with a focus on explicit calculations on the basis of small systems, which already show the essential model behavior. Due to the huge amount of literature, we considered it necessary to concisely summarize the essential aspects that constitute the theoretical framework for the methodology we applied and which are described in detail in Section 3. Results obtained with the developed modeling approach are presented and discussed in Section 4, followed by a short conclusion in Section 5. Appendix A summarizes additional calculations and basic relationships as relevant for the methodology.

2. Theory: Statistical Thermodynamics of the Ising Model

While we are solely looking at the original Ising model as developed by Lenz [1] and Ising [2], it should be mentioned that a number of extensions exist, such as the inclusion of next-nearest neighbor and higher order interactions [9] or the consideration of more than two states per spin [10]. For a comprehensive overview, we recommend standard text books on statistical mechanics [11] as well as specialized literature [12,13]. In the absence of an external magnetic field, the Hamiltonian H evaluates the total interaction energy (i.e., potential energy only without a kinetic contribution) for a system of interacting spins placed on a regular lattice where each spin can only interact with its nearest neighbor spins. In such a setting, H results from summation of pair energies ( ϵ i , j ):
H ( s 1 , s 2 , s i ) = < i , j > ϵ i , j = < i , j > J i , j s i s j = J < i , j > s i s j
where the sum runs over all pairs of nearest neighbor spins < i , j > with two possible values for the spin number s i = ± 1 , corresponding to the spin-up and spin-down state. Once all spins are prepared in a particular configuration with specified values for the spin numbers (e.g., ( s 1 = 1 , s 2 = 1 , ) ), H returns the resulting system energy of this particular configuration. The coupling constant J i , j carries units of an energy and specifies the interaction strength between nearest neighboring spins i and j such that the spins become decoupled, i.e., independent, for J i , j = 0 . Interactions between different particle types as it becomes relevant for mixtures or in case of impurities could be modeled by using different J i , j -values. In the last identity of Equation (1), we assumed isotropic interactions, i.e., uniform coupling constants J = J i , j between all pairs in all directions. We implicitly assumed regular, i.e., ideal or uniform lattices where each spin is assigned to a single lattice site without any vacancies or impurities in between. Explicit expressions for the Hamiltonian of the 1D- and 2D-Ising model in case of free boundary (FBC) and periodic boundary conditions (PBC) are given in Equations (A1a), (A1b) and (A2a)–(A2c). PBC are typically applied in order to reduce the impact of boundary or surface effects in case of finite-size systems. However, in the thermodynamic limit, i.e., for infinite lattice sizes, the impact of the boundary conditions on the system’s (thermodynamic) behavior and thus the difference between FBC and PBC has to vanish. Schematic examples for 1D- and 2D-systems with FBC and PBC are shown in Figure A1 in Appendix A.1. In 1D, FBC corresponds to a linear chain with open ends, i.e., all spins except for the first and last one in the chain share two nearest neighbors, while PBC corresponds to a closed ring where the last spin N also interacts with the first spin 1 such that all spins have two nearest neighbors. In 2D, a number of N spins = N x · N y spins are arranged onto a regular lattice, with N x spins in x-direction (=number of columns) and N y spins in y-direction (=number of rows), corresponding to a matrix of dimensions N y × N x . In two dimensions, FBC correspond to a planar graph, with N y · ( N x 1 ) horizontal and N x · ( N y 1 ) vertical interactions, yielding 2 N 2 2 N = 2 N ( N 1 ) interactions in total for the special case of quadratic ( N × N ) lattices with N N x = N y . In this case, all inner spins have four nearest neighbors, while spins at the boundary can have two or three neighbors. When PBC are applied in both the x- and y-direction, the resulting lattice is wrapped around a torus with all spins having four neighbors. In such an arrangement, we equally have N x · N y horizontal and N x · N y vertical interactions, yielding a total of 2 N 2 interactions in case of a quadratic system. For the sake of completeness it should be noted that also hybrid boundary conditions can be used where PBC are applied in one and FBC in the other direction, yielding a lattice with cylindrical topology.
Once the interactions of the spin system are specified in form of the Hamiltonian H (cf. Equation (1)), the partition function in the canonical ensemble Z Z ( N spins , T ) at constant number of spins N spins and temperature T is obtained via summation of Boltzmann factors exp ( β H ) for all possible spin configurations:
Z = { s i } e β H ( s i ) = { s i } e β < i , j > ϵ i , j = { s i } e β J < i , j > s i s j = { s i } < i , j > e β J s i s j
where { s i } s 1 ( 1 ) , s 2 ( 1 ) , ; s 1 ( 2 ) , s 2 ( 2 ) , ; denotes the collection of all possible spin configurations the system can populate, < i , j > is the collection of all nearest neighbor pairs, and β = 1 / ( k B T ) is the inverse temperature with Boltzmann constant k B . All thermodynamic quantities of interest such as internal energy U, entropy S, isochoric heat capacity C V (in the following, simply denoted as C) or chemical potential μ can be obtained rigorously from appropriate partial differentiation of Z (see Equations (A3a)–(A3e)). Since the total number of possible spin configurations (=number of micro(scopic) states) is Ω tot = 2 N spins , i.e., the set { s i } involves a total of Ω tot different configurations, it is evident that the number of terms involved in Z grows rapidly with increasing spin number N spins and becomes very large even for small systems. Due to this scaling behavior, it is typically not practicable to evaluate Z by exact enumeration for general systems of arbitrary size even with state of the art computational resources. Here, simulation-based approaches such as Markov chain Monte Carlo (MC) can make an important contribution to estimate quantities such as C with high accuracy [14,15]. Only for very simple systems such as the 1D-Ising model, it is possible to find exact closed analytic expressions for Z which are summarized in Equations (A11a) and (A11b) for the cases of FBC and PBC together with corresponding expressions for the Helmholtz (free) energy A = k B T ln Z in Equations (A12a) and (A12b). In 2D, a closed analytical solution exists for the limiting case of infinite lattices which was derived by Lars Onsager [16] with high mathematical effort (see Equation (7)). For 2D-systems of finite size, exact solutions for Z exist in case of PBC [17,18,19] but to the best of our knowledge not for FBC [20,21]. This means it is (currently) not possible to directly write down an expression for Z as function of (inverse) temperature β and N spins in case of a finite-size N y × N x -2D-model with FBC of arbitrary system size. It is of course possible, at least in principle, to calculate Z for any 2D-system of arbitrary size on the basis of Equation (2). However as mentioned before, with increasing lattice size, the evaluation becomes increasingly computationally intensive due to the combinatorial part of the calculation given by the power law scaling of the number of possible configurations. Alternatively to summing over all possible spin configurations { s i } as conducted in Equation (2), one can first cluster the configurations into a set of discrete energy levels { E n } and then sum over this set of distinct energy levels instead:
Z = n Ω n e β E n = w n
where the weights (=frequencies, multiplicities, degeneracies) Ω n Ω ( E n ) associated with energy levels E n have to fulfill the closure relation n Ω n = Ω tot = 2 N spins . The energy level of a specific configuration is calculated from Equation (1) according to E n = H s 1 ( n ) , s 2 ( n ) , . The quantity introduced in this way and defined by the combined collection of energy levels E n and corresponding weights Ω n is called the density of states (DOS). The DOS refers to the number of different states at a particular energy level and can be interpreted as an energy spectrum of the corresponding Ising model. It should be noted that the DOS itself is temperature-independent while all derived quantities such as A, U and C depend on T. Calculation of Z based on the DOS is completely equivalent to the former calculation according to Equation (2) and therefore also allows exact evaluation of Z. Corresponding expressions for the calculation of derived thermodynamic quantities involving the DOS are summarized in Equations (A7a)–(A7c). It should be stressed that even though the number of distinct energy levels n is typically much smaller than the number of possible spin configurations Ω tot (i.e., the set { E n } is smaller than the set { s i } ), and consequently the sum in Equation (3) involves considerably fewer terms as compared to Equation (2), practical calculation of Z via the DOS formulation is, from a computational point of view, not superior per se towards the first route, since in both cases all possible configurations { s i } have to be generated anyway. However, the DOS formulation allows a compact representation of the partition function itself. Another difference between the two formulations for Z is that computation according to Equation (2) involves a number of N spins individual sums (see Equation (A15b)) while the summation over energy levels according to Equation (3) involves a single summation only. Figure 1 shows estimated DOS for a couple of small quadratic ( N × N ) 2D-Ising systems with FBC (left) and PBC (right). In case of FBC, all DOS distributions are symmetric around the maximal value at E n = 0 , whereas for PBC, this symmetry is found for even N only. The minimum energy of the DOS distribution for a generic N × N -system is given by E 0 / J = 2 N ( N 1 ) for FBC and E 0 / J = 2 N 2 for PBC, respectively, with a weight of Ω 0 = 2 for both cases, corresponding to the two equivalent configurations with all spins being either in the up- or down-state.
In the following, we will take a closer look at the thermodynamic behavior of the 2D-Ising model, using the minimal 2 × 2 -system (FBC) as an explicit example which is shown in Figure A1b and Figure A3. In this case, there are Ω tot = 2 4 = 16 distinguishable configurations, i.e., microscopic states, but the DOS only involves three distinct energy states given by E n / J = 4 , 0 , 4 such that Ω 0 = 2 configurations have the minimal energy of E 0 = 4 J , Ω 2 = 2 configurations have the maximal energy of E 2 = 4 J and the majority of Ω 1 = 12 configurations have an energy value of E 1 = 0 (cf. Figure 1a and Figure A3). The canonical partition function can then be written as (see also Equation (A15b) in the Appendix A.3):
Z 2 × 2 FBC = 2 e 4 β J = w 0 + 12 e 0 = w 1 + 2 e 4 β J = w 2 .
In order to rationalize the following discussion, it is advantageous to (re)define a normalized partition function with respect to the lowest-energy state (ground state) E 0 = 4 J , first:
Z * Z 2 × 2 FBC w 0 = 1 + 6 e 4 β J = w 1 / w 0 + e 8 β J = w 2 / w 0
from which expressions for the populated fractions associated with the nth discrete energy state can be defined as:
(6a) p n Pr ( E n ) = Ω n e β E n Z = w n Z = ( w n / w 0 ) Z * (6b) p 0 = 1 Z * = 1 1 + w 1 / w 0 + w 2 / w 0 = 1 1 + K 0 1 + K 0 2 = 1 1 + 6 e 4 β J + e 8 β J (6c) p 1 = w 1 / w 0 Z * = w 1 / w 0 1 + w 1 / w 0 + w 2 / w 0 = K 0 1 1 + K 0 1 + K 0 2 = 6 e 4 β J 1 + 6 e 4 β J + e 8 β J (6d) p 2 = w 2 / w 0 Z * = w 2 / w 0 1 + w 1 / w 0 + w 2 / w 0 = K 0 2 1 + K 0 1 + K 0 2 = e 8 β J 1 + 6 e 4 β J + e 8 β J .
For each temperature, the condition n p n = 1 with p n 0 , 1 must be fulfilled. It is important to emphasize that the meaning of a state here refers to a particular macroscopic (=energy) state and the fractions p n measure the probability of finding the 2 × 2 -system in one of these three discrete energy states E 0 = 4 J , E 1 = 0 or E 2 = 4 J . On the other hand, one could also calculate the probability for each of the 16 individual configurations, i.e., microscopic states (see Equation (A5)). Such a simple three-state model as the 2 × 2 -system can be applied in a wide range of applications such as protein thermodynamics where states 0, 1 and 2 could correspond to the native (i.e., folded) state, intermediate (i.e., partially folded) state and denatured (i.e., unfolded) state of a protein, respectively [22]. The equilibrium constants K 0 i = w i / w 0 = p i / p 0 , defined above, are a measure for the ratio of two probabilities and are closely related to the free energy barrier between ground state 0 and (excited) state i via Δ 0 , i A A i A 0 = k B T ln K 0 i . In principle, the equilibrium constant for the transition from the ground state to the second (excited) state ( 0 2 ) could be further split into two sequential transitions according to 0 1 2 such that K 0 2 = K 0 1 K 1 2 which will not be performed in the following however. In case of the 2 × 2 -system, the free energy barriers Δ 0 , i A relative to the ground state which comprise an energetic and entropic part according to Δ 0 , i A = Δ 0 , i U T Δ 0 , i S are given by Δ 0 , 1 A = 4 J k B T ln 6 and Δ 0 , 2 A = 8 J . The energetic contribution is simply given by Δ 0 , i U = E i E 0 . The entropy difference which is related to the ratio of the weights of the corresponding states according to Δ 0 , i S = k B ln ( Ω i / Ω 0 ) reflects the fact that the state E 1 = 0 has a six-times higher weight compared to the ground state E 0 = 4 J . Figure 2a shows the fractions p n of the three states as function of temperature where the latter is represented in reduced (dimensionless) form as T * k B T / J = ( β J ) 1 . At low temperatures ( T 0 , i.e., β ), only p 0 corresponding to the ground state E 0 = 4 J is populated, while at increasing temperatures ( T , i.e., β 0 ), though all three states become thermally accessible, p 1 associated with the zero-energy state E 1 = 0 dominates due to its six-times higher statistical weight Ω 1 compared to the other states. As revealed by Figure 2b, at T = 0 when the system is in the ground state, free energy A and internal energy U coincide ( A ( 0 ) = U ( 0 ) = E 0 = 4 J ) and the entropic part is zero. It should be stressed that it is the entropic part of the free energy given by T · S which becomes zero due to T = 0 , while the entropy itself becomes S ( 0 ) = k B ln 2 due to the two possible and equivalent configurations (all spins up or all spins down) associated with the ground state. With increasing T, A becomes more negative and the entropic part dominates the free energy while the absolute value of U (i.e., the interactions between the spins) asymptotically decreases to zero. In this case, when all states are accessible and the system behaves as a collection of non-interacting spins, entropy becomes S ( ) = k B ln Ω tot with Ω tot = 2 N spins = 16 . Different ways to estimate entropy are outlined in the Appendix A.2.
For comparison, Figure 3 shows an analogue decomposition analysis for the 5 × 5 -FBC-Ising model which in this case comprises a total of 39 distinct energy states with ground state energy E 0 = 40 J (cf. Figure 1a). As pointed out earlier, the number of energy levels is significantly smaller than the number of different spin configurations Ω tot = 2 25 3.36 × 10 7 .
As the system size N spins further increases, the system can adopt an ever-increasing number of discrete energetic states while the spacing between these energy levels decreases. In the extreme case of the thermodynamic limit ( N spins ), an infinite number of states (=number of fractions p n ), i.e., a continuum of states is required. For this case, for which the difference between FBC and PBC as present for finite-size system vanishes, the following expression for the reduced free energy per spin a * β A / N spins was derived by Lars Onsager [16]:
a * lim N spins a * = ln 2 cosh ( 2 β J ) 1 2 π 0 π ln 1 2 1 + 1 k 2 sin 2 φ d φ k = 2 sinh ( 2 β J ) cosh 2 ( 2 β J )
Focusing on the reduced quantity a * instead of the dimensional free energy A itself which is an extensive quantity and therefore scales with N spins allows for a comparison between finite-size systems of all dimensions including the limiting case of N spins . This is shown in Figure 4 which shows a set of curves for a * as function of inverse temperature for a couple of quadratic ( N × N ) 2D-Ising models together with the limiting Onsager expression. In the low-temperature (LT) regime (i.e., high β ) in case of FBC, a * can be well-approximated by the scaling law a N * LT ( β * ) = 2 β * 1 1 / N with β * = β J which is linear in β * with slope 2 multiplied by a system-size dependent factor [23]. This LT-approximation holds increasingly better for increasing N (see dashed lines in Figure 4a). For high temperatures (HT), i.e., β 0 , all curves independent of system size N converge to the same limiting value a * HT = ln 2 0.69 .
A main characteristic of the 2D-Ising model and major difference compared to the 1D-Ising model is that it features a phase transition when the number of spins increases to infinity. This phase transition is characterized by a discontinuity or singularity at a critical temperature in different physical observables when monitored as function of temperature such as (isochoric) heat capacity or the derivative of the (spontaneous) magnetization. For a 2D-lattice of infinite size and in the absence of a magnetic field, this critical temperature T c * k B T c / J is given by [16,24]:
T c * = 2 ln 1 + 2 2.269
As revealed for example by MC simulations, below this critical temperature ( T < T c ), a phase exists comprising large domains where most of the spins have identical spin numbers s i (either + 1 or 1 ) together with small isolated clusters with opposite s i [25]. Such a phase can coexist with a phase of opposite magnetization, i.e., where all spins are reversed. For T > T c on the other hand, only a single homogenous (“disordered”) phase exists.
Figure 5 shows the temperature-dependence of the reduced heat capacity per spin c * C / k B N spins calculated for a couple of quadratic ( N × N ) 2D-Ising systems based on their DOS for FBC (a) and PBC (b). For comparison, the limiting heat capacity for the 1D-Ising model, given by c * 1 D = ( β J / cosh ( β J ) ) 2 is also shown (purple dashed-dotted curve). The finite height of this curve over the whole temperature range demonstrates the absence of a phase transition in case of the 1D-Ising model. Since the first part of Equation (7) is almost identical to the limiting value of a * for the 1D-Ising model ( a * 1 D = ln 2 cosh ( β J ) , cf. Equation (A14a)) it can be concluded that it is the second part of the Onsager expression for a * , i.e., the integral which gives rise to the phase transition. The black curve in Figure 5 which shows the aforementioned singularity at the critical temperature T c * according to Equation (8) (black dashed line) corresponds to the limiting reduced heat capacity for a 2D-lattice. It was derived from the Onsager expression Equation (7) according to c * = β 2 2 a * / β 2 but can not be expressed in closed form. Here, we applied an automatic differentiation approach based on (hyper-) dual numbers to obtain c * [26]. Despite the fact that, both for the FBC and PBC case, the curves for c * clearly seem to converge towards the limiting Onsager solution with increasing N (peaks become higher and corresponding peak temperature gets closer to T c * ), the heat capacity values for all finite-size N × N systems will remain finite and a singularity is only found for macroscopic systems in the thermodynamic limit, i.e., for N . Different methods for estimating the critical temperature of the infinite system based on extrapolation from a couple of finite-size systems will be discussed in more detail in the context of another planned publication. In addition to the temperature at the peak maximum of the heat capacity curve, other characteristic parameters can be deduced from the profile giving access to insights into the thermodynamic behavior of the system. In analogy to calorimetric experiments [22], the integration of the heat capacity profile over the whole temperature range delivers the so-called calorimetric change in internal energy and entropy:
Δ U cal / J = U ( ) / J U ( 0 ) / J = 1 k B 0 C ( T * ) d T *
Δ S cal / k B = S ( ) / k B S ( 0 ) / k B = 1 k B 0 C ( T * ) T * d T *
with T * = k B T / J . Using the state function property of U and S as it was performed in the first equality, the value of the integral between the given temperature bounds on the right-hand side can be evaluated without the need to actually integrate the heat capacity profile mathematically. For a N × N -system based on FBC, one obtains Δ U cal / J = 2 N ( N 1 ) with U ( ) / J = 0 and U ( 0 ) / J = E 0 / J = 2 N ( N 1 ) and Δ S cal / k B = ln 2 N 2 1 = ( N 2 1 ) ln 2 with S ( ) / k B = ln Ω tot = ln 2 N 2 and S ( 0 ) / k B = ln 2 . For quadratic PBC-systems, one obtains Δ U cal / J = 2 N 2 due to the different value for the ground state energy U ( 0 ) / J = E 0 / J = 2 N 2 while Δ S cal / k B remains the same as for FBC. In order to compare the behavior of FBC and PBC when the number of spins N spins increases, it is beneficial to divide Equations (9a) and (9b) by N spins = N 2 :
(10a) Δ u cal * = 0 c * ( T * ) d T * = 0 c * ( β * ) β * 2 d β * = 2 ( 1 1 / N ) ( FBC ) 2 ( PBC ) (10b) Δ s cal * = 0 c * ( T * ) T * d T * = 0 c * ( β * ) β * d β * = ( 1 1 / N 2 ) ln 2
with β * = β J = 1 / T * and the dimensionless per-spin quantities Δ u cal * = Δ U cal / J N spins and Δ s cal * = Δ S cal / k B N spins . The integrals now involve the reduced heat capacity per spin c * = C / k B N spins as plotted in Figure 5. From Equation (10a), one can see that the difference for Δ u cal * between FBC and PBC as present for finite lattice sizes vanishes in the thermodynamic limit as expected. Δ s cal * on the other hand is identical for both boundary types at all lattice sizes. One also sees that Δ u cal * which corresponds to the area under the curve c * ( T * ) remains finite even for infinite lattice size despite the singularity at the aforementioned critical temperature T c * (see black curve in Figure 5) and takes a value of Δ u cal * = 2 in this case. The conditions given by Equations (10a), (10b) can be used as diagnostic test for assessing the quality of the presented modeling approach for c * in an integral sense.

3. Materials and Methods

The central idea as tested in this work is based on the question if it is possible to develop a free energy expression on the basis of 1D-Ising chains that can reproduce the results of a finite-size 2D-Ising model with FBC at least qualitatively. Here, we focus on the description of quadratic N × N -Ising models with N spins = N 2 spins. The goal is to obtain an analytic and, in the best case, simple expression for the reduced free energy per spin a * = β A / N 2 which approximates the exact solution as good as possible for any N × N -Ising model and therefore allows fast estimation without the rapidly growing computational effort for increasing lattice sizes as it is the case for the exact evaluation based on Equation (2). The model should be applicable to small lattice dimensions N on the one hand but should also feature a phase transition in case of infinite N as described by the Onsager solution (see Equation (7)). While the modeling takes place on the basis of the reduced free energy a * , the reduced heat capacity per spin c * = C / k B N spins follows straightforwardly at any (inverse) temperature from the second derivative with respect to β : c * = β 2 2 a * / β 2 . The general idea is illustrated in Figure 6 for the example of a 5 × 5 -FBC-system.
Initially, the number of N spins = N 2 non-interacting spins corresponding to the desired N × N -system is placed on the lattice (=initial state 0). As a first step, a total of N ( N 1 ) interactions are added by summarizing the spins to N non-interacting, i.e., independent Ising chains as shown in Figure 6 (=state 1). In this scheme, the chains are labeled beginning from chain-ID 1, corresponding to the minimal length of 1 (i.e., a single spin) to chain-ID N, corresponding to the longest chain, consisting of 2 N 1 spins. In this notion, the added N ( N 1 ) interactions correspond to intra-chain bonds since they connect neighboring spins within a chain. For the remainder of the work, the expressions “interactions” and “bonds” are used synonymously. In order to obtain a fully connected 2D-Ising system, another equal amount of N ( N 1 ) interactions have to be added to the graph, corresponding to inter-chain bonds since they establish interactions between adjacent chains, i.e., to couple neighboring spins assigned to different chains. This could be performed in a series of steps by successively adding more layers of inter-chain bonds. A specific example is shown in Figure 6 where chains are connected via a set of edge bonds such that the edge spin of chain i is connected via 2 bonds to 2 spins of chain i + 1 , resulting in a weakly coupled graph (=state 2). We emphasize that this procedure to go from state 1 (non-interacting Ising chains) to the final state of a fully coupled N × N -system is by no means unique, i.e., there are several ways of adding the remaining N ( N 1 ) inter-chain bonds and as it turns out, this part represents the actual challenge. From a statistical-mechanical point of view, the described approach (denoted by superscript “app.”) corresponds to a free energy construction of the kind:
A N × N app . = A chains + k = 1 m n k Δ A bond ( k ) = A chains + n 1 Δ A bond ( k = 1 ) + n 2 Δ A bond ( k = 2 ) + + n m Δ A bond ( k = m ) .
In such an additive construction scheme, the final free energy estimate A N × N app . for the interacting N × N -system results from addition of different free energy contributions Δ A bond ( k ) , associated with the inclusion of specific inter-chain bonds of type k to the reference system of non-interacting Ising chains A chains . If Δ A bond ( k ) represents the free energy contribution for the addition of a single bond of type k, the corresponding coefficients n k have to add up to the total number of remaining inter-chain bonds: k = 1 m n k = N ( N 1 ) . Explicit expressions for A chains and Δ A bond ( k ) will be derived in the following. Ideally, the constructed A N × N app . would correspond to the exact A N × N for the N × N -FBC-system as calculated from the corresponding exact 2D-partition function based on Equation (2). Equation (11) can be equivalently formulated in terms of partition functions:
Z N × N app . = Z chains · z bond ( k = 1 ) n 1 · z bond ( k = 2 ) n 2 · · z bond ( k = m ) n m
with the relations A N × N app . = k B T ln Z N × N app . , A chains = k B T ln Z chains and Δ A bond ( k ) = k B T ln z bond ( k ) . From the latter relation it follows that z bond ( k ) actually does not represent an absolute partition function but rather a partition function ratio corresponding to the inclusion of a single bond of type k into the graph which is emphasized by the use of a lowercase letter z.

3.1. Free Energy of Independent Ising Chains

The first step corresponding to state 1 in Figure 6 is to summarize the N 2 non-interacting spins on the lattice to N independent Ising chains which implies the inclusion of N ( N 1 ) intra-chain bonds to the graph. The first and smallest chain has a length of 1, i.e., an isolated spin while the last chain N is the longest with a length of 2 N 1 spins. Since the chains are independent, the combined partition function for the whole set of N chains is given exactly by the product of the partition functions of the individual chains, i.e., it factorizes into N partition functions:
Z chains = k = 0 N 1 Z 2 k + 1 1 D , FBC = k = 1 N Z 2 k 1 1 D , FBC = Z 1 · Z 3 1 D , FBC · · Z 2 N 1 1 D , FBC
with Z N 1 D , FBC = 2 N cosh N 1 ( β J ) according to Equation (A11a) where the special case Z 1 Z 1 1 D , FBC = 2 corresponds to the partition function of a single isolated spin. In terms of free energy, the corresponding expression reads as:
A chains = k = 0 N 1 A 2 k + 1 1 D , FBC = k = 1 N A 2 k 1 1 D , FBC = A 1 + A 3 1 D , FBC + + A 2 N 1 1 D , FBC
with A N 1 D , FBC = k B T ln Z N 1 D , FBC according to Equation (A12a) and A 1 A 1 1 D , FBC = k B T ln 2 . Using the Gaussian sum formula, Equation (14) can be simplified to give the following expression for the (reduced) free energy:
(15a) A chains = k B T N 2 ln 2 + N ( N 1 ) ln cosh ( β J ) (15b) a chains * = ln 2 1 1 N ln cosh ( β J )
which is identical to the expression for the reduced free energy per spin of a single 1D-Ising chain of length N with FBC (compare Equation (A12c)).

3.2. Inclusion of Inter-Chain Interactions

In this work, we applied a simplified variant of the presented approach discussed above where only one bond type in Equation (11) with a single value for the free energy contribution Δ A bond is considered. In this case, one adds all inter-chain bonds simultaneously and thus transitions directly from state 1 to the final state of a fully connected N × N -system without any intermediate steps (compare Figure 6):
A N × N app . = A chains + N ( N 1 ) Δ A bond
a N × N * app . = a chains * + 1 1 N β Δ A bond
where a chains * is given by Equation (15b). For the 5 × 5 -FBC-system in Figure 6 this would correspond to the addition of 20 equal bonds to the graph in state 1, where the free energy contribution of each added bond is identical and given by Δ A bond . At this point it should be stressed that although only one bond type is considered, Δ A bond ( β , N ) is not a constant, but a function of N and β . Further, it should be emphasized that the decomposition of the free energy into an intra-chain and an inter-chain part does not involve any approximation so far and is exact (i.e., a N × N * app . = a N × N * ) as long as one calculates the bond contribution Δ A bond consistently:
Δ A bond / J = T * N N 1 a N × N * app . a chains *
with T * = k B T / J . For infinite lattice size, the equation changes into:
Δ A bond / J = T * a * a chains , *
where Δ A bond is now a function of temperature only, a * is given by the Onsager expression Equation (7) and a chains * , = ln 2 cosh ( β J ) . From the comparison of the Onsager expression with Equation (16b), it can be seen that the second term of the latter equation which involves Δ A bond should be given by the integral of the Onsager expression in case of N and is thus responsible for the phase transition.
Based on Equation (16b), an equivalent decomposition can also be obtained for the heat capacity via c * = β 2 2 a * / β 2 :
c N × N * app . = c chains * + 1 1 N Δ c bond *
= 1 1 N ( β J ) 2 cosh 2 ( β J ) 1 1 N β 2 2 ( β Δ A bond ) β 2 N with 2 ( β Δ A bond ) β 2 N = 2 Δ A bond β N + β 2 Δ A bond β 2 N
where c chains * was derived from Equation (15b). For infinite lattice size this expression becomes:
c * app . = c chains , * + Δ c bond , *
= ( β J ) 2 cosh 2 ( β J ) β 2 2 ( β Δ A bond ) β 2 N
where c * app . only depends on β .
From the derived expressions it becomes evident that the initial problem of expressing the free energy of a (finite-size) 2D-Ising model by means of 1D-Ising chains is now reduced to the estimation of Δ A bond ( β , N ) as function of system size N and (inverse) temperature β . A requirement for the calculation of c N × N * app . is that the function Δ A bond ( β , N ) is two times differentiable with respect to β . The route taken in this work was to compute Δ A bond according to Equation (17) from the exact a * for a couple of finite-size N × N -systems and then perform an approximation based on a two-dimensional fit in N- and β -space. For the calculation of a * , we used the optimized code of Karandashev et al. [27] which evaluates the exact partition function Z of a given 2D-Ising model at specified temperature and is publically available [28]. Since the code returns ln Z ( β * ) , ln Z ( β * + Δ β * ) and ln Z ( β * + 2 Δ β * ) with Δ β * = 10 5 , the (reduced) heat capacity was computed from a finite-differences (second-order forward) approach. We validated this code for small system dimensions through comparison with self-written (non-optimized) code which evaluates the exact partition functions of N y × N x -systems based on the DOS formalism by systematically generating all possible Ω tot = 2 N spins = 2 N x · N y configurations using the Python itertools-module [29]. Relative deviations in a * between the two implementations for the considered temperature range were found to be in the order of 10 13 .
Among different investigated modeling approaches for Δ A bond ( β , N ) , the following has been found to be the most suitable: (i) calculation of exact values for Δ A bond according to Equation (17) for a couple of N × N -systems (e.g., 2 × 2 to 20 × 20 ) within a defined discretized (inverse) temperature interval; (ii) fitting the results with the inverse power law or generalized hyperbola function Equation (21a) in N-space with the four temperature-dependent model parameters a , b , c , d , separately for every discrete β -value (the reader has to be aware of not to confuse the model parameter a with the reduced free energy a * ):
Δ A bond fit ( β * , N ) / J = a ( β * ) ( N b ( β * ) ) c ( β * ) + d ( β * )
Δ A bond fit / J β * N = a ( N b ) c + a c b ( N b ) c + 1 a ln ( N b ) c ( N b ) c + d
2 Δ A bond fit / J β * 2 N = [ 1 ] · a + [ 2 ] · b + [ 3 ] · c + a ( N b ) c + a c b ( N b ) c + 1 a ln ( N b ) c ( N b ) c + d
with β * = β J , a ( β * ) = d a / d β * and a ( β * ) = d 2 a / d β * 2 (analogously for the other model parameters b , c , d ) and the following abbreviations:
(22a) [ 1 ] = c b ( N b ) c + 1 c ln ( N b ) ( N b ) c (22b) [ 2 ] = c a ( N b ) c + 1 + a c ( c + 1 ) b ( N b ) c + 2 a c c ln ( N b ) ( N b ) c + 1 + a c ( N b ) c + 1 (22c) [ 3 ] = a ln ( N b ) ( N b ) c + a c ( ln ( N b ) ) 2 ( N b ) c + a b ( N b ) c + 1 a c b ln ( N b ) ( N b ) c + 1 .
As can be seen from Equation (21a), for positive exponent c, the asymptotic value of Δ A bond fit for infinite lattice dimension is given by the temperature-dependent offset parameter d: Δ A bond fit / J Δ A bond fit ( β * , ) / J = d ( β * ) ; (iii) interpolation of the discretized model parameter values in β -space using cubic splines. Using Equations (21a)–(21c) and (22a)–(22c), the reduced free energy and heat capacity can then be calculated according to Equation (16b) and Equation (19b), respectively, at any temperature and system size.
The quality of the predicted approximations was assessed through a comparison with the exact results for a * and c * as obtained with the code of Karandashev et al. As mentioned above, alternative and lower-complexity modeling approaches for Δ A bond fit ( β * , N ) / J , such as a second-degree polynomial function in inverse lattice dimension N inv 1 / N with only three β * -dependent model parameters were also tested but found not to be suitable (data not shown). Nonlinear fitting of Equation (21a) was performed using the optimize-package of the open-source Python library SciPy [30]. For piecewise cubic splines interpolation, the SciPy interpolate-package has been used. The routine returns not only the interpolated function value itself for the fitting parameters (e.g., a ( β * ) ) but also the corresponding first ( a ( β * ) ) and second derivative ( a ( β * ) ) at this temperature as required for the evaluation of Equations (21b), (21c) and (22a)–(22c). At this point, it should be emphasized again that the approximation of the modeling approach is introduced by specifying a specific functional form for Δ A bond fit ( β * , N ) / J (in our case the generalized hyperbola Equation (21a)) and not through Equations (16a), (16b) which are exact. For the sake of completeness, it should be noted that the analytical expression Δ A bond fit ( β * , N ) / J further enables a direct and straightforward calculation of the chemical potential μ N × N * app . for arbitrary quadratic systems as function of lattice size and temperature (see Appendix A.4).

4. Results and Discussion

Figure 7 demonstrates the success of the described modeling procedure for Δ A bond ( β , N ) (see methods section for details) involving fitting with the hyperbola-based approach in Equation (21a) to system sizes 2 × 2 to 20 × 20 . Therefore, exact reference solutions for Δ A bond were calculated for these systems using the code of Karandashev et al. [27] at 200 equidistant temperature points in the interval β J = [ 0.01 , 2 ] for each system. The shown results for systems 21 × 21 to 40 × 40 were not incorporated into the fitting process and thus represent (interpolated) predictions. However, it has been found that it is also necessary to prescribe the Onsager solution for infinite N by constraining the offset parameter d of the fitting function via: Δ A bond fit ( β * , ) / J = d ( β * ) = T * a * a chains , * where Equation (18) has been applied in the second equality. By doing this, d becomes fixed such that only three free adjustable model parameters ( a , b , c ) remain. Without constraining d, the (reduced) heat capacity profile will become unphysical for increasing N and will not converge towards the correct Onsager solution in thermodynamic limit (see Figure A4 in the Appendix A.5). Furthermore, the exponent c was restricted to positive values. As can be seen from Figure 7, Δ A bond fit shows a pronounced dependence on system size and temperature, both of which seem to be well reproduced by our approach. As expected, the free energy contribution of an added bond diminishes with increasing temperature.
The corresponding adjusted model parameters are shown in Figure 8 as function of inverse temperature. It can be seen that all parameters are bound and well-behaved within the studied temperature-range.
Figure 9 shows the modeling results for the reduced free energy per spin a * and reduced heat capacity per spin c * based on Equation (16b) and Equation (19b), respectively, as functions of inverse temperature for selected N × N -systems. By construction through constraining the model parameter d, both a * and c * become identical to the corresponding Onsager expressions for N . While the agreement between the tested model approach and corresponding exact results are close to perfect in case of a * , a fact which is also confirmed by the very low percentage relative deviation ( < 0.1 % ) in Figure 10, deviations for c * are more pronounced. This behavior is due to the fact that c * is proportional to the second derivative of a * and thus is very sensitive to small local changes in the curvature of a * ( β * ) . For all system sizes, some artifacts are present in c * around the critical temperature which cause the curves to become increasingly rugged near the maximum as N increases and makes an unambiguous determination of the peak maximum and the corresponding peak temperature difficult. These numerical artifacts can be mainly attributed to two origins: (i) a side effect of the imposed constraint to match the Onsager solution for infinite N and (ii) the limited number of temperature points as used for interpolation. The latter can be seen when more temperature points are used which increases the resolution in β -space at the expense of increased computational effort. Although a higher β -resolution reduces the artifacts near the critical temperature and makes the curves smoother around the maximum, this creates small local disturbances (see Figure A5 in the Appendix A.5). For large N-values outside the fitting range, the maximum of the approximated c * -curve is already determined by the critical temperature β c * = β c J = ( k B T c / J ) 1 0.44 , whereas the peak temperature of the exact curve does not yet match it (see result for the 40 × 40 -system in Figure 9b). However, despite these deviations in the shape of the profiles, the evaluation of the integral conditions in Equations (10a), (10b) yielded a maximal violation in the order of 1 % from the nominal value. In this context, the impact of including the exact results from more N × N -systems in the fitting process at the same temperature resolution was also investigated (see Figure A6 in the Appendix A.5). For small system sizes the aforementioned artifacts close to β c * become more pronounced when more systems were taken into account for fitting (at same β -resolution) while for the prediction of larger system sizes the description near the peak becomes better. However, the qualitative behavior is identical for the studied cases where a different number of reference solutions was involved. Figure 10 further shows that the deviations in a * disappear for very high and low temperatures at all system sizes. Although it appears that local extrema emerge at certain intervals which increase with increasing N, in the limiting case for infinite N, all deviations must by construction decrease to zero for all temperatures.
As already mentioned in the introduction, a separate publication will focus on the adaption of the Ising model such that it can be applied to the description of intercalation phenomena such as the intercalation of Li-ions into an electrode host matrix. Here, we will only briefly illustrate a possible roadmap for such a modeling attempt. In the simplest case, one could study a one-dimensional cut through a (finite-sized) crystal lattice composed of N lattice sites where each site can be either occupied by an ion ( s i = 1 ) or empty ( s i = 0 ). Such a description could be used for example to model the diffusion of Li-ions diffusion into tunnel-like structures of LiFePO 4 [31,32]. Therefore, a Hamiltonian based on pairwise ion-ion interactions could be constructed in the following way:
H N 1 D , FBC = i = 1 N 1 j = i + 1 N ϵ i , j = { ϵ 1 , 2 + ϵ 2 , 3 + + ϵ N 1 , N } N 1 terms + { ϵ 1 , 3 + ϵ 2 , 4 + + ϵ N 2 , N } N 2 terms + + { ϵ 1 , N } 1 term
with the pair energy ϵ i , j = J i , j s i s j between lattice sites i and j. Equation (23) involves a total of N ( N 1 ) / 2 pair interactions in case of FBC, comprising N 1 possible nearest neighbor interactions between adjacent lattice sites, N 2 possible next-nearest neighbor interactions between lattice sites which have another site in between and so on. Due to the long-range nature of electrostatic interactions it might be necessary to include interactions which go beyond nearest neighbors which is a clear difference compared to the classic Ising model (compare Equation (A1a)) and the simplifying assumption of a uniform coupling constant J i , j might not be applicable. A possible modeling approach of the distance-dependence of J i , j for interaction sites which are n 1 sites apart could be derived in analogy to Coulomb’s law according to J i , i + n = J / n . Here, the coupling constant J J i , i + 1 between ions sitting directly next to each other (i.e., s i = s i + 1 = 1 ) could be treated as adjustable model parameter. Another degree of freedom could be introduced by the multiplication of J with a distance-dependent screening parameter α i , j to better incorporate the effect of the electrode matrix on the alteration of the ion-ion interactions. For computational reasons it might be necessary to define a certain cut-off distance beyond which the interactions are assumed to be zero which can be included into α i , j in combination with a special switching function. Of course, both J i , j and α i , j could further be treated as temperature-dependent. Due to the inherent periodicity of the crystal, inclusion of PBC might yield a more realistic description for finite-size systems. For a 1D-crystal with N lattice sites, the corresponding canonical partition function Z N 1 D involves a total of Ω tot = 2 N possible configurations, including states with 0 , 1 , , N ions and can (in principle) be calculated for every lattice size according to Equation (2). In 1D, the transfer matrix method offers a route to obtain a closed analytic solution for Z N [33]. However, in order to apply this kind of model for intercalation of Li-ions into other host materials where two- or three-dimensional diffusion takes place such as graphitic carbon [34] or LiMn 2 O 4 spinel [35], respectively, efficient approximative approaches for the evaluation of the higher-dimensional Ising model are required which was the main motivation of the present work. For these situations, a similar approach as presented in this work will be followed, comprising calculation of exact partition functions (or free energies A N × N ) for a couple of finite-size N × N -systems, followed by approximation of A N × N with a suitable analytic expression and extrapolation to other lattice dimensions of interest. In contrast to the classic Ising model, it is known that such a proposed model based on the Hamiltonian above features a phase transition even in 1D due to the presence of long-range interactions [36,37]. The advantages of such a simple but at the same time physically based model and its implications for battery modeling are versatile: it could be used not only to predict the most probable electrode composition at a particular temperature but also transition temperatures between different phases from the heat capacity profile. Through the combination with experimentally or computationally determined ionic conductivities or diffusion coefficients, a link to transport properties of ionic species within crystal lattices can be achieved. Microscopic origins of hysteresis effects during dis-/charging which are highly relevant for battery energy efficiency and are thought to be related to lattice reorganization, could be possibly incorporated into such a model through further factorization of the coupling constant.

5. Conclusions

The central question addressed in this work was whether it is possible to develop a free energy expression on the basis of 1D-Ising chains that can reproduce the results of a finite-size 2D-Ising model with FBC at least qualitatively. Therefore, we considered an arbitrary N × N -system as a combination of an intra-chain part which is given by a set of non-interacting Ising chains and an inter-chain part through which interactions among neighboring chains are established. In this context we considered the free energy contribution of a single inter-chain bond Δ A bond ( β , N ) that is added to the system and shows a distinct dependence on (inverse) temperature and lattice size. It could be shown that with the chosen modeling approach based on 1D-Ising chains in combination with an analytic expression for Δ A bond for which the involved model parameters were adjusted to exact results from a couple of finite-size 2D-systems, a satisfying reproduction of the exact data in terms of Δ A bond ( β , N ) can be achieved. However, extrapolation to lattices, which are significantly larger than those included for the fit, is only possible when the limiting solution for infinite N is explicitly incorporated into the fitting step. This is especially true for the reduced heat capacity per spin (to a much lesser extent for the reduced free energy per spin), which is as a second-derivative property extremely sensitive to subtle local changes in curvature of a * . This shows the limitation of the current approach which could be attributed to the particularly chosen fitting approach. However, it must be emphasized that the primary goal of the current work was not to find an optimal working approach that reproduces the exact results as closely as possible, but to show a principal (qualitative) route for how such a model could be built. Based on the obtained results, we will extend the modeling approach by trying to split the process of adding inter-chain bonds to the system of non-interacting Ising chains into different intermediate steps as it is illustrated in Figure 6 which will then also be tested for the 3D-Ising model.

Author Contributions

Conceptualization, D.M. and K.P.B.; methodology, D.M. and K.P.B.; software, D.M.; validation, D.M.; formal analysis, D.M. and K.P.B.; investigation, D.M. and K.P.B.; writing—original draft preparation, D.M. and K.P.B.; writing—review and editing, D.M. and K.P.B.; visualization, D.M.; supervision, K.P.B.; project administration, K.P.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DOSDensity of state
FBCFree boundary conditions
PBCPeriodic boundary conditions
MCMonte Carlo
LTLow-temperature
HTHigh-temperature
SMIShannon measure of information

Appendix A

Appendix A.1

In the following, explicit expressions for the Hamiltonian H for 1D- and 2D-Ising models in the absence of an external magnetic field with free (FBC) and periodic boundary conditions (PBC) will be presented. In case of the 1D-Ising model, i.e., a chain with N spins = N spins, it follows from the general Equation (1):
H N 1 D , FBC = i = 1 N 1 ϵ i , i + 1 = J i = 1 N 1 s i s i + 1 = ϵ 1 , 2 + + ϵ N 1 , N N 1 interactions ( = bonds ) = J ( s 1 s 2 + + s N 1 s N )
H N 1 D , FBC = i = 1 N ϵ i , i + 1 = J i = 1 N s i s i + 1 = ϵ 1 , 2 + + ϵ N 1 , N + ϵ N , N + 1 N interactions ( = bonds ) = J ( s 1 s 2 + + s N 1 s N + s N s N + 1 = s N s 1 ) with ϵ N , N + 1 = ϵ N , 1 = ϵ 1 , N = J s 1 s N
where ϵ i , j denotes the pair energy between neighbor spins i and j and s i = ± 1 the spin number (spin up or spin down) of spin i.
For a 2D- N y × N x -system with a total of N spins = N x · N y spins where N x spins are placed in x-direction (=number of columns) and N y spins are placed in y-direction (=number of rows) of the lattice, the Hamiltonian involves a double sum and can be spit into a horizontal interaction part ( H x ) and a vertical interaction part ( H y ) according to:
H N y × N x = H x + H y with H x = J i = 1 N y j = 1 N x s i , j s i , j + 1 right neighb . and H y = J i = 1 N y j = 1 N x s i , j s i + 1 , j lower neighb .
s i , N x + 1 = 0 ( FBC ) or s i , N x + 1 = s i , 1 ( PBC ) , i = 1 , , N y
s N y + 1 , j = 0 ( FBC ) or s N y + 1 , j = s 1 , j ( PBC ) , j = 1 , , N x
H x only involves summation over horizontal (i.e., right) next neighbors, while H y involves summation over vertical (i.e., lower) next neighbors. Figure A1 shows some explicit examples for simple 1D- and 2D-systems. For 2D-systems, we will typically use the single-index numbering scheme as shown in the upper right of Figure A1b. As can be seen for the example of the 2 × 2 -system, although the number of possible configurations ( Ω tot = 2 N 2 ) is identical for a finite-size N × N -system with FBC and PBC, both models differ in their possible energy values due to the modified interactions (compare also Figure 1a,b).
Figure A1. Explicit examples for simple 1D-Ising models (a) and 2D-Ising models (b) with free boundary conditions (FBC) and periodic boundary conditions (PBC). Color scheme: black spheres correspond to spins in the up-state ( s i = + 1 ), white spheres to spins in the down-state ( s i = 1 ). For 1D and 2D, the given values of the Hamiltonian H associated with the presented configurations were calculated according to Equations (A1a), (A1b) and Equations (A2a)–(A2c), respectively.
Figure A1. Explicit examples for simple 1D-Ising models (a) and 2D-Ising models (b) with free boundary conditions (FBC) and periodic boundary conditions (PBC). Color scheme: black spheres correspond to spins in the up-state ( s i = + 1 ), white spheres to spins in the down-state ( s i = 1 ). For 1D and 2D, the given values of the Hamiltonian H associated with the presented configurations were calculated according to Equations (A1a), (A1b) and Equations (A2a)–(A2c), respectively.
Batteries 09 00489 g0a1

Appendix A.2

Here, we summarize the most important statistical-mechanical relations with regard to how to calculate free energy A, internal energy U, entropy S, constant-volume (=isochoric) heat capacity C V (here only denoted as C) and chemical potential μ from the (canonical) partition function Z. For detailed derivations, we refer to standard textbooks on statistical mechanics [38]. The general relations between the listed thermodynamic quantities and Z are as follows:
A = k B T ln Z β A = ln Z
U = H = ln Z β N spins = k B T 2 ln Z T N spins
S k B = β A + β U = ln Z β ln Z β N spins = ln Z + T ln Z T N spins
μ = A N spins T = k B T ln Z N spins T
C k B = 1 k B U T N spins = β 2 2 ln Z β 2 N spins = 2 T ln Z T N spins + T 2 2 ln Z T 2 N spins
where X denotes the ensemble average for a generic quantity X ( s i ) which depends on the particular configuration s i ( s 1 , s 2 , ) , i.e., the current values of the spin numbers for all spins in the system. The calculation of the ensemble average involves summation over all possible spin configurations { s i } :
X 1 Z { s i } X ( s i ) e β H ( s i ) = Equation ( 2 ) { s i } X ( s i ) e β H ( s i ) { s i } e β H ( s i ) = { s i } X ( s i ) p i mic
where in the last equality, we introduced the probability of a particular configuration, i.e., a single specific micro state according to:
p i mic Pr ( s i ) = e β H ( s i ) Z = e β H ( s i ) { s i } e β H ( s i )
p i mic can be computed for every of the Ω tot = 2 N spins configurations and must be clearly distinguished from the fractions p i defined in Equation (6a) which refer to the probability of an energetic (i.e., macroscopic) state of the system. However, both probabilities are closely related and differ only by the incorporation of the degeneracy factor Ω n :
p n = Equation ( 6 a ) Ω n e β E n Z = Ω n e β H s 1 ( n ) , s 2 ( n ) , Z = Equation ( A 5 ) Ω n p n mic
with E n = H s 1 ( n ) , s 2 ( n ) , .
In case of the equivalent DOS formulation for Z (see Equation (3)), the relations for A, U and C can be written as:
A = k B T ln Z = k B T ln n Ω n e β E n
U = H = E = n E n Ω n e β E n n Ω n e β E n
C k B = β 2 E 2 E 2 = σ E 2 = β 2 n E n E 2 Ω n e β E n n Ω n e β E n
where all sums run over the number of distinct energy levels E n which is typically much smaller than the number of all possible spin configurations Ω tot = 2 N spins . As can be seen, C is directly proportional to the energy fluctuation (=variance) σ E 2 . With the fractions p n Ω n e β E n / Z = w n / Z as defined in Equation (6a), the ensemble average for a generic quantity X (such as the mean energy E ) could also be written as:
X = 1 Z n X n w n = n X n p n
where X n , w n and p n denote the discrete value of quantity X, the non-normalized weight and the (normalized) fraction associated with the nth discrete energy state, respectively.
While the free energy A and internal energy U were calculated from the partition function Z according to the DOS formulation (Equations (A7a), (A7b)), entropy S was calculated from the difference of both quantities, according to the Gibbs-Helmholtz equation S / k B = β ( U A ) as given in Equation (A3c). Alternatively to this thermodynamic approach, one could equally apply the entropy concept developed by Shannon in the context of information theory [39] which will therefore be denoted as “Shannon measure of information” (SMI) [40]:
S SMI / k B = i p i mic ln p i mic
where the sum considers all Ω tot = 2 N spins micro states, i.e., the full set of all possible spin configurations { s i } and p i mic denotes the probability of a particular micro state as defined in Equation (A5). Equation (A9) can be transformed such that it only contains the thermodynamic fractions p n as defined in Equation (6a) instead of p i mic :
S SMI / k B = S SMI mac / k B + n p n ln Ω n with S SMI mac / k B = n p n ln p n
where the sum now considers all distinct energy levels instead. Be aware of the different meanings of the probabilities p i mic and p n as outlined before (see also Equation (A6)). As can be seen from Figure A2 both approaches (i.e., Gibbs-Helmholtz and SMI) are completely equivalent.
Figure A2. Reduced entropy S / k B as function of temperature for a couple of quadratic ( N × N ) 2D-Ising systems with free boundary conditions (FBC): 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). The low- and high-temperature limiting values are given by S ( 0 ) / k B = ln 2 and S ( ) / k B = N spins · ln 2 , respectively. Full colored lines refer to the calculation based on the Gibbs-Helmholtz equation (Equation (A3c)), while black dashed lines refer to the calculation based on the SMI (Equation (A10)).
Figure A2. Reduced entropy S / k B as function of temperature for a couple of quadratic ( N × N ) 2D-Ising systems with free boundary conditions (FBC): 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). The low- and high-temperature limiting values are given by S ( 0 ) / k B = ln 2 and S ( ) / k B = N spins · ln 2 , respectively. Full colored lines refer to the calculation based on the Gibbs-Helmholtz equation (Equation (A3c)), while black dashed lines refer to the calculation based on the SMI (Equation (A10)).
Batteries 09 00489 g0a2

Appendix A.3

For the 1D-Ising model, i.e., a chain with N spins = N spins, closed analytic expressions for Z (FBC and PBC) can be derived [11,41]:
Z N 1 D , FBC = 2 e β J + e β J N 1 = 2 N cosh N 1 ( β J )
Z N 1 D , PBC = e β J + e β J N + e β J e β J N = 2 N cosh N ( β J ) + sinh N ( β J ) = 2 N cosh N ( β J ) 1 + tanh N ( β J )
or equivalently, on a (reduced) free energy basis:
A N 1 D , FBC = N k B T ln 2 ( N 1 ) k B T ln cosh ( β J )
A N 1 D , PBC = N k B T ln 2 N k B T ln cosh ( β J ) k B T ln 1 + tanh N ( β J )
a N * 1 D , FBC = ln 2 1 1 N ln cosh ( β J )
a N * 1 D , PBC = ln 2 cosh ( β J ) 1 N ln 1 + tanh N ( β J )
Expressions for the heat capacity C and chemical potential μ can be derived from Equation (A12a) using the appropriate derivative relations from Equations (A3d) and (A3e):
1 k B C N 1 D , FBC = ( N 1 ) ( β J ) 2 cosh 2 ( β J )
μ N 1 D , FBC = k B T ln 2 cosh ( β J )
For PBC, the corresponding expressions are slightly more complicated, however, in the thermodynamic limit N , expressions for the reduced free energy per spin a * β A / N , μ and the reduced heat capacity per spin c * C / k B N = β 2 2 a * / β 2 become identical for FBC and PBC:
a * 1 D lim N a N * 1 D , FBC = lim N a N * 1 D , PBC = ln 2 cosh ( β J )
μ * 1 D lim N μ 1 D , FBC = lim N μ 1 D , PBC = k B T ln 2 cosh ( β J )
c * 1 D lim N c N * 1 D , FBC = lim N c N * 1 D , PBC = ( β J ) 2 cosh 2 ( β J )
As can be seen, the limiting values for the reduced free energy per spin and the reduced chemical potential are identical: lim N a N * 1 D = lim N β μ 1 D = ln 2 cosh ( β J ) . The limiting heat capacity c * 1 D as function of temperature is shown in Figure 5a (purple dashed-dotted line).
While for the finite-size 2D-Ising model with FBC no closed analytic expressions can be given for Z [20,21], it can be evaluated (in principle) for all system sizes from Equation (2) or equivalently Equation (3). Using the minimal 2 × 2 -FBC-system as explicit example, application of Equations (A2a), (A2b) and (2) yields:
H FBC 2 × 2 = ϵ 1 , 2 + ϵ 3 , 4 horizontal ( = H x ) + ϵ 1 , 3 + ϵ 2 , 4 vertical ( = H y ) = J ( s 1 s 2 + s 3 s 4 + s 1 s 3 + s 2 s 4 )
Z FBC 2 × 2 = { s i } e β H FBC 2 × 2 = s 1 = ± 1 s 2 = ± 1 e β ϵ 1 , 2 · s 3 = ± 1 e β ϵ 1 , 3 · s 4 = ± 1 e β ϵ 2 , 4 · e β ϵ 3 , 4 = 2 e 4 β J + 12 e 0 + 2 e 4 β J
Note that in contrast to H which can be decomposed into a horizontal ( H x ) and a vertical ( H y ) interaction part, such a decomposition is not possible for the partition function, i.e., Z can not be factorized into different contributions resulting from horizontal and vertical interactions. Factorization in the form of Z = Z x · Z y would only be possible if these contributions are independent, i.e., when the whole system comprises independent (=non-interacting) subsystems. Graphical visualization of the Ω tot = 2 N spins = 16 possible configurations together with the corresponding values of H for the 2 × 2 -FBC-system are shown in Figure A3.
It can be seen that based on the value of H, the 16 possible configurations can be assigned to three energy states or levels E n / J = 4 , 0 , 4 with corresponding weights Ω n = 2 , 12 , 2 which together define the density of states (DOS). In addition, it should be noted that two configurations can have the same number of spins in the up-state (as denoted by the order parameter n up ), but differ in the energy H. Although more efficient ways exist to calculate Z without the need to generate all possible Ω tot = 2 N spins configurations as it is performed in the brute-force approach, still the exact enumeration of Z for a 2D-system of arbitrary size becomes computationally challenging at some point. It should be noted that for the regarded special case of the 2 × 2 -FBC-system (and only for this!), the partition function is identical to the partition function of a 1D-system of length N = 4 with PBC, i.e., Z 2 × 2 FBC = Z 4 1 D , PBC (compare Figure A1).
Figure A3. All Ω tot = 2 N spins = 16 possible configurations of the minimal 2 × 2 -Ising model (FBC). Color scheme: black spheres correspond to spins in the up-state ( s i = + 1 ), white spheres to spins in the down-state ( s i = 1 ). The numbering scheme is shown in the upper left corner. The configurations are classified according to the order parameter n up , denoting the number of spins in the up-state with n up = 0 , 1 , , N spins . The value of the Hamiltonian H associated with a particular configuration (given in the center of configuration) was calculated according to Equation (A15a).
Figure A3. All Ω tot = 2 N spins = 16 possible configurations of the minimal 2 × 2 -Ising model (FBC). Color scheme: black spheres correspond to spins in the up-state ( s i = + 1 ), white spheres to spins in the down-state ( s i = 1 ). The numbering scheme is shown in the upper left corner. The configurations are classified according to the order parameter n up , denoting the number of spins in the up-state with n up = 0 , 1 , , N spins . The value of the Hamiltonian H associated with a particular configuration (given in the center of configuration) was calculated according to Equation (A15a).
Batteries 09 00489 g0a3

Appendix A.4

Based on a given explicit equation for Δ A bond ( β , N ) , an analytic expression for the chemical potential μ N × N app . for arbitrary quadratic N × N -systems as function of lattice size and temperature can be calculated:
μ N × N app . J = A N × N app . / J N spins β * = A N × N app . / J N β * · d N d N spins = ( 2 N ) 1
= Equation ( 16 a ) 1 2 N A chains / J N β * = μ chains / J + 1 2 N N N ( N 1 ) Δ A bond J β * = Δ μ bond / J
= Equation ( 15 a ) k B T J ln 2 + 1 1 2 N ln cosh ( β J ) + 1 1 2 N Δ A bond J + N 1 2 Δ A bond / J N β *
which now only requires an expression for Δ A bond and its derivative with respect to N. For Δ A bond = Δ A bond fit according to Equation (21a), the latter is given by:
Δ A bond fit / J N β * = a c ( N b ) c + 1
In case of infinite N when the offset-parameter d of Equation (21a) is constrained to the limiting Onsager solution as it was performed for the derived results presented in the corresponding section in the main text, the following limiting chemical potential is obtained from the expression above:
μ app . J = k B T J ln 2 cosh ( β J ) + d = k B T J a *
This is equivalent to β μ app . = a * and was already derived for 1D-systems (see Appendix A.3). For this result, we used the vanishing limit of the following expression which is fulfilled when the model parameter c (i.e., the exponent in Equation (21a)) is restricted to positive values:
lim N N 1 2 Δ A bond fit / J N β * = a c 2 lim N N 1 ( N b ) c + 1 = 0

Appendix A.5

In this section, supplementary parametric studies to the reported results from the corresponding section of the main text are compiled.
Figure A4. Influence of treating the offset-parameter d of Δ A bond fit as free adjustable parameter. (a) reduced heat capacity per spin as function of inverse temperature for selected N × N -systems: 2 × 2 (blue), 40 × 40 (red), infinite lattice size (black). (b) corresponding model parameters a (blue), b (green), c (orange), d (red) as function of inverse temperature. For the fitting procedure, 200 equidistant points within the interval β J = [ 0.01 , 2 ] were applied for system sizes 2 N 20 without constraining d to the limiting exact Onsager solution. The black dashed-dotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Figure A4. Influence of treating the offset-parameter d of Δ A bond fit as free adjustable parameter. (a) reduced heat capacity per spin as function of inverse temperature for selected N × N -systems: 2 × 2 (blue), 40 × 40 (red), infinite lattice size (black). (b) corresponding model parameters a (blue), b (green), c (orange), d (red) as function of inverse temperature. For the fitting procedure, 200 equidistant points within the interval β J = [ 0.01 , 2 ] were applied for system sizes 2 N 20 without constraining d to the limiting exact Onsager solution. The black dashed-dotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Batteries 09 00489 g0a4
Figure A5. Influence of increased temperature-resolution in the parameter optimization step: reduced heat capacity per spin as function of inverse temperature for selected N × N -systems: 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 40 × 40 (red). The model parameters were parametrized based on exact results of systems with 2 N 20 , using 400 (a) and 800 (b) equidistant points in the temperature-range β J = [ 0.01 , 2 ] . The parameter d was constrained to the exact limiting value of Δ A bond / J for N according to Equation (18). Colored and black lines refer to exact and modelled results, respectively. The black dashed-dotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Figure A5. Influence of increased temperature-resolution in the parameter optimization step: reduced heat capacity per spin as function of inverse temperature for selected N × N -systems: 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 40 × 40 (red). The model parameters were parametrized based on exact results of systems with 2 N 20 , using 400 (a) and 800 (b) equidistant points in the temperature-range β J = [ 0.01 , 2 ] . The parameter d was constrained to the exact limiting value of Δ A bond / J for N according to Equation (18). Colored and black lines refer to exact and modelled results, respectively. The black dashed-dotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Batteries 09 00489 g0a5
Figure A6. Influence of including different numbers of exact reference solutions into the parameter optimization step of the modeling approach: reduced heat capacity per spin as function of inverse temperature for a 2 × 2-FBC-system (a) and 40 × 40-FBC-system (b). Exact reference solutions are shown in black. Colored lines refer to modeling results for which an increasing number of exact reference solutions of N × N-systems were considered in the fitting step: 2 × 2 − 10 × 10 (blue), 2 × 2 − 20 × 20 (green), 2 × 2 − 30 × 30 (orange), 2 × 2 − 40 × 40 (red). This means, for example, the underlying model parameters (a, b, c, d according to Equation (21a)) for the blue curve in the left graph which represents the prediction for c* for a 2 × 2-FBC-system were optimized from fitting to exact reference solutions of systems 2 × 2, 3 × 3, …, 10 × 10. All variants were fitted to 200 equidistant temperature reference points within the interval βJ = [0.01, 2]. The parameter d was constrained to the exact limiting value of ΔAbond/J for N → ∞ according to Equation (18). The black dasheddotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit (βcJ = (kBTc/J)−1 ≈ 0.44) as given by Equation (8).
Figure A6. Influence of including different numbers of exact reference solutions into the parameter optimization step of the modeling approach: reduced heat capacity per spin as function of inverse temperature for a 2 × 2-FBC-system (a) and 40 × 40-FBC-system (b). Exact reference solutions are shown in black. Colored lines refer to modeling results for which an increasing number of exact reference solutions of N × N-systems were considered in the fitting step: 2 × 2 − 10 × 10 (blue), 2 × 2 − 20 × 20 (green), 2 × 2 − 30 × 30 (orange), 2 × 2 − 40 × 40 (red). This means, for example, the underlying model parameters (a, b, c, d according to Equation (21a)) for the blue curve in the left graph which represents the prediction for c* for a 2 × 2-FBC-system were optimized from fitting to exact reference solutions of systems 2 × 2, 3 × 3, …, 10 × 10. All variants were fitted to 200 equidistant temperature reference points within the interval βJ = [0.01, 2]. The parameter d was constrained to the exact limiting value of ΔAbond/J for N → ∞ according to Equation (18). The black dasheddotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit (βcJ = (kBTc/J)−1 ≈ 0.44) as given by Equation (8).
Batteries 09 00489 g0a6

References

  1. Lenz, W. Beitrag zum Verständnis der magnetischen Erscheinungen in festen Körpern. Phys. Z. 1920, 21, 613–615. [Google Scholar]
  2. Ising, E. Beitrag zur Theorie des Ferromagnetismus. Z. Phys. 1925, 31, 253–258. [Google Scholar] [CrossRef]
  3. Lipowski, A. Ising model: Recent developments and exotic applications. Entropy 2022, 24, 1834. [Google Scholar] [CrossRef]
  4. Pan, A.C.; Chandler, D. Dynamics of nucleation in the Ising model. J. Phys. Chem. B 2004, 108, 19681–19686. [Google Scholar] [CrossRef]
  5. De Oliveira, M.; Griffiths, R.B. Lattice-gas model of multiple layer adsorption. Surf. Sci. 1978, 71, 687–694. [Google Scholar] [CrossRef]
  6. Stauffer, D. Social applications of two-dimensional Ising models. Am. J. Phys. 2008, 76, 470–473. [Google Scholar] [CrossRef]
  7. Tarascon, J.M.; Armand, M. Issues and challenges facing rechargeable lithium batteries. Nature 2001, 414, 359–367. [Google Scholar] [CrossRef]
  8. Viswanathan, G.M.; Portillo, M.A.G.; Raposo, E.P.; da Luz, M.G. What does it take to solve the 3D Ising model? Minimal necessary conditions for a valid solution. Entropy 2022, 24, 1665. [Google Scholar] [CrossRef] [PubMed]
  9. Fisher, M.E.; Selke, W. Infinitely many commensurate phases in a simple Ising model. Phys. Rev. Lett. 1980, 44, 1502. [Google Scholar] [CrossRef]
  10. Potts, R.B. Some generalized order-disorder transformations. In Mathematical Proceedings of the Cambridge Philosophical Society; Cambridge University Press: Cambridge, UK, 1952; Volume 48, pp. 106–109. [Google Scholar]
  11. Scheck, F. Theoretische Physik 5: Statistische Theorie der Wärme; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  12. Newell, G.F.; Montroll, E.W. On the theory of the Ising model of ferromagnetism. Rev. Mod. Phys. 1953, 25, 353. [Google Scholar] [CrossRef]
  13. Brush, S.G. History of the Lenz-Ising model. Rev. Mod. Phys. 1967, 39, 883. [Google Scholar] [CrossRef]
  14. Landau, D.P.; Wang, F. A new approach to Monte Carlo simulations in statistical physics. Braz. J. Phys. 2004, 34, 354–362. [Google Scholar] [CrossRef]
  15. Janke, W. Monte Carlo simulations in statistical physics—From basic principles to advanced applications. In Order, Disorder and Criticality: Advanced Problems of Phase Transition Theory Volume 3; World Scientific: Singapore, 2013; pp. 93–166. [Google Scholar]
  16. Onsager, L. Crystal statistics. I. A two-dimensional model with an order-disorder transition. Phys. Rev. 1944, 65, 117–149. [Google Scholar] [CrossRef]
  17. Kaufman, B. Crystal statistics. II. Partition function evaluated by spinor analysis. Phys. Rev. 1949, 76, 1232. [Google Scholar] [CrossRef]
  18. Ferdinand, A.E.; Fisher, M.E. Bounded and inhomogeneous Ising models. I. Specific-heat anomaly of a finite lattice. Phys. Rev. 1969, 185, 832. [Google Scholar] [CrossRef]
  19. Beale, P.D. Exact distribution of energies in the two-dimensional Ising model. Phys. Rev. Lett. 1996, 76, 78. [Google Scholar] [CrossRef]
  20. Binder, K. Statistical mechanics of finite three-dimensional Ising models. Physica 1972, 62, 508–526. [Google Scholar] [CrossRef]
  21. Kim, S.Y. Ising model on L× L square lattice with free boundary conditions up to L= 19. J. Phys. Conf. Ser. 2013, 410, 012050. [Google Scholar] [CrossRef]
  22. Carra, J.H.; Murphy, E.C.; Privalov, P.L. Thermodynamic effects of mutations on the denaturation of T4 lysozyme. Biophys. J. 1996, 71, 1994–2001. [Google Scholar] [CrossRef]
  23. Karandashev, I.M.; Kryzhanovsky, B.V.; Malsagov, M.Y. Analytical expressions for a finite-size 2D Ising model. Opt. Mem. Neural Netw. 2017, 26, 165–171. [Google Scholar] [CrossRef]
  24. Kramers, H.A. Statistics of the two-dimensional ferromagnet. Part I. Phys. Rev. 1941, 60, 252–262. [Google Scholar] [CrossRef]
  25. Landau, D.; Binder, K. A Guide to Monte Carlo Simulations in Statistical Physics; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  26. Rehner, P.; Bauer, G. Application of generalized (hyper-) dual numbers in equation of state modeling. Front. Chem. Eng. 2021, 3, 758090. [Google Scholar] [CrossRef]
  27. Karandashev, Y.M.; Malsagov, M.Y. Polynomial algorithm for exact calculation of partition function for binary spin model on planar graphs. Opt. Mem. Neural Netw. 2017, 26, 87–95. [Google Scholar] [CrossRef]
  28. Implementation 2D-Partition-Function Code. Available online: https://github.com/Thrawn1985/2D-Partition-Function (accessed on 21 April 2023).
  29. Van Rossum, G. The Python Library Reference, Release 3.8.2; Python Version 3.9.16; Python Software Foundation: Wilmington, DE, USA, 2020. [Google Scholar]
  30. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed]
  31. Ceder, G. Opportunities and challenges for first-principles materials design and applications to Li battery materials. MRS Bull. 2010, 35, 693–701. [Google Scholar] [CrossRef]
  32. Chen, G.; Song, X.; Richardson, T.J. Electron microscopy study of the LiFePO4 to FePO4 phase transition. Electrochem.-Solid-State Lett. 2006, 9, A295. [Google Scholar] [CrossRef]
  33. Martínez-Herrera, J.; Rodríguez-López, O.A.; Solís, M. Critical temperature of one-dimensional Ising model with long-range interaction revisited. Phys. A Stat. Mech. Appl. 2022, 596, 127136. [Google Scholar] [CrossRef]
  34. Persson, K.; Sethuraman, V.A.; Hardwick, L.J.; Hinuma, Y.; Meng, Y.S.; Van Der Ven, A.; Srinivasan, V.; Kostecki, R.; Ceder, G. Lithium diffusion in graphitic carbon. J. Phys. Chem. Lett. 2010, 1, 1176–1180. [Google Scholar] [CrossRef]
  35. Xu, B.; Meng, S. Factors affecting Li mobility in spinel LiMn2O4—A first-principles study by GGA and GGA+ U methods. J. Power Sources 2010, 195, 4971–4976. [Google Scholar] [CrossRef]
  36. Dyson, F.J. Existence of a phase-transition in a one-dimensional Ising ferromagnet. Commun. Math. Phys. 1969, 12, 91–107. [Google Scholar] [CrossRef]
  37. Fröhlich, J.; Spencer, T. The phase transition in the one-dimensional Ising model with 1/r2 interaction energy. Commun. Math. Phys. 1982, 84, 87–101. [Google Scholar] [CrossRef]
  38. Göpel, W.; Wiemhöfer, H.D. Statistische Thermodynamik; Springer: Berlin/Heidelberg, Germany, 2000. [Google Scholar]
  39. Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
  40. Ben-Naim, A. Information, entropy, life, and the universe. Entropy 2022, 24, 1636. [Google Scholar] [CrossRef] [PubMed]
  41. Mueller, M.; Johnston, D.A.; Janke, W. Exact solutions to plaquette Ising models with free and periodic boundaries. Nucl. Phys. B 2017, 914, 388–404. [Google Scholar] [CrossRef]
Figure 1. Calculated densities of states (DOS) for a couple of quadratic ( N × N ) 2D-Ising systems: 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). (a) Free boundary conditions (FBC), (b) periodic boundary conditions (PBC).
Figure 1. Calculated densities of states (DOS) for a couple of quadratic ( N × N ) 2D-Ising systems: 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). (a) Free boundary conditions (FBC), (b) periodic boundary conditions (PBC).
Batteries 09 00489 g001
Figure 2. Thermodynamics of 2 × 2 -Ising model with FBC: (a) fractions (=probabilities) p 0 (black), p 1 (blue) and p 2 (red) of finding the system in states with system energy 4 J , 0, and 4 J , respectively, as function of temperature according to Equations (6b)–(6d). High-temperature asymptotic values for T derived from Equations (6b)–(6d) are given by: p 0 ( ) = p 2 ( ) = 0.125 ,   p 1 ( ) = 0.75 . (b) Temperature-dependence of free energy A (black) and decomposition into internal energy U (blue) and entropic part T S (red) according to the Gibbs-Helmholtz equation: A = U T S . All quantities were calculated from the corresponding partition function Equation (4) using Equations (A7a), (A7b) and (A3c). The black dashed line which is shown as guide to the eye corresponds to the high-temperature asymptotic given by k B T ln Ω tot with Ω tot = 2 4 = 16 .
Figure 2. Thermodynamics of 2 × 2 -Ising model with FBC: (a) fractions (=probabilities) p 0 (black), p 1 (blue) and p 2 (red) of finding the system in states with system energy 4 J , 0, and 4 J , respectively, as function of temperature according to Equations (6b)–(6d). High-temperature asymptotic values for T derived from Equations (6b)–(6d) are given by: p 0 ( ) = p 2 ( ) = 0.125 ,   p 1 ( ) = 0.75 . (b) Temperature-dependence of free energy A (black) and decomposition into internal energy U (blue) and entropic part T S (red) according to the Gibbs-Helmholtz equation: A = U T S . All quantities were calculated from the corresponding partition function Equation (4) using Equations (A7a), (A7b) and (A3c). The black dashed line which is shown as guide to the eye corresponds to the high-temperature asymptotic given by k B T ln Ω tot with Ω tot = 2 4 = 16 .
Batteries 09 00489 g002
Figure 3. Thermodynamics of 5 × 5 -Ising model with FBC: (a) fractions (=probabilities) p i of finding the system in one of the 39 distinct energy states (cf. Figure 1a) as function of temperature according to Equation (6a). The 39 curves are colored according to ascending energy levels from E 0 = 40 J (dark blue) to E 38 = 40 J (dark red). The black dashed lines corresponds to state 20 at the maximum of the DOS distribution in Figure 1a with corresponding energy level E 19 = 0 , showing the highest high-temperature asymptotic value ( p 19 ( ) 0.130 ) among all states. (b) Temperature-dependence of free energy A (black) and decomposition into internal energy U (blue) and entropic part T S (red) according to the Gibbs-Helmholtz equation: A = U T S . All quantities were calculated from the corresponding partition function using Equations (A7a), (A7b) and (A3c). The black dashed line which is shown as guide to the eye corresponds to the high-temperature asymptotic given by k B T ln Ω tot with Ω tot = 2 25 3.36 × 10 7 .
Figure 3. Thermodynamics of 5 × 5 -Ising model with FBC: (a) fractions (=probabilities) p i of finding the system in one of the 39 distinct energy states (cf. Figure 1a) as function of temperature according to Equation (6a). The 39 curves are colored according to ascending energy levels from E 0 = 40 J (dark blue) to E 38 = 40 J (dark red). The black dashed lines corresponds to state 20 at the maximum of the DOS distribution in Figure 1a with corresponding energy level E 19 = 0 , showing the highest high-temperature asymptotic value ( p 19 ( ) 0.130 ) among all states. (b) Temperature-dependence of free energy A (black) and decomposition into internal energy U (blue) and entropic part T S (red) according to the Gibbs-Helmholtz equation: A = U T S . All quantities were calculated from the corresponding partition function using Equations (A7a), (A7b) and (A3c). The black dashed line which is shown as guide to the eye corresponds to the high-temperature asymptotic given by k B T ln Ω tot with Ω tot = 2 25 3.36 × 10 7 .
Batteries 09 00489 g003
Figure 4. Reduced free energy per spin a * = β A / N spins as function of inverse temperature β J = J / k B T for a couple of quadratic ( N × N ) 2D-Ising systems: 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). (a) Free boundary conditions (FBC), (b) periodic boundary conditions (PBC). For completeness, the Onsager solution for the case of an infinitely sized system according to Equation (7) is also shown (black curve). Dashed lines in (a) correspond to the low-temperature (LT) approximation as applicable for FBC given by a N * LT ( β * ) = 2 β * 1 1 / N with β * = β J [23].
Figure 4. Reduced free energy per spin a * = β A / N spins as function of inverse temperature β J = J / k B T for a couple of quadratic ( N × N ) 2D-Ising systems: 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). (a) Free boundary conditions (FBC), (b) periodic boundary conditions (PBC). For completeness, the Onsager solution for the case of an infinitely sized system according to Equation (7) is also shown (black curve). Dashed lines in (a) correspond to the low-temperature (LT) approximation as applicable for FBC given by a N * LT ( β * ) = 2 β * 1 1 / N with β * = β J [23].
Batteries 09 00489 g004
Figure 5. Reduced heat capacity per spin c * = C / k B N spins as function of temperature for a couple of quadratic ( N × N ) 2D-Ising systems: 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). (a) Free boundary conditions (FBC), (b) periodic boundary conditions (PBC). The corresponding heat capacity for the thermodynamic limit was derived from the Onsager expression for a * in Equation (7) (black curve). The black dashed line corresponds to the critical temperature in the thermodynamic limit ( k B T c / J 2.269 ) as given by Equation (8). The left graph also shows the limiting heat capacity for the 1D-Ising model (fine purple dashed-dotted line).
Figure 5. Reduced heat capacity per spin c * = C / k B N spins as function of temperature for a couple of quadratic ( N × N ) 2D-Ising systems: 2 × 2 (blue), 3 × 3 (green), 4 × 4 (orange), 5 × 5 (red). (a) Free boundary conditions (FBC), (b) periodic boundary conditions (PBC). The corresponding heat capacity for the thermodynamic limit was derived from the Onsager expression for a * in Equation (7) (black curve). The black dashed line corresponds to the critical temperature in the thermodynamic limit ( k B T c / J 2.269 ) as given by Equation (8). The left graph also shows the limiting heat capacity for the 1D-Ising model (fine purple dashed-dotted line).
Batteries 09 00489 g005
Figure 6. Schematic representation of the approach: starting from a system of non-interacting spins for the 2D-topology of interest (=state 0), the spins are first summarized to a set of non-interacting 1D-systems, i.e., Ising chains (=state 1). In the following steps, successive layers of inter-chain interactions (=bonds) between neighboring chains are added sequentially, resulting in a fully connected graph at the final state (here a 5 × 5 -FBC-system).
Figure 6. Schematic representation of the approach: starting from a system of non-interacting spins for the 2D-topology of interest (=state 0), the spins are first summarized to a set of non-interacting 1D-systems, i.e., Ising chains (=state 1). In the following steps, successive layers of inter-chain interactions (=bonds) between neighboring chains are added sequentially, resulting in a fully connected graph at the final state (here a 5 × 5 -FBC-system).
Batteries 09 00489 g006
Figure 7. Free energy contribution of a single inter-chain bond Δ A bond / J as function of lattice size (left) and temperature (right): (a) circles (closed and open) represent exact solutions for Δ A bond / J calculated according to Equation (17). Dashed lines correspond to fitting results according to Equation (21a) at constant temperature within β J = [ 0.01 , 2 ] using 200 equidistant points. Closed (open) circles represent points that were (not) incorporated into the fitting process. The coloring scheme of the lines refers to ascending order in temperature, with blue curves at the bottom corresponding to low temperature (high β ) and red curves at the top to high temperature (low β ). (b) Δ A bond / J as function of reduced temperature k B T / J for selected N × N -systems: 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 40 × 40 (red). The limiting Onsager solution is shown in magenta. Colored curves correspond to exact results according to Equation (17) whereas superimposed black dashed lines refer to modeling results from (a). The shown 40 × 40 -system (red) was not taken explicitly into account into the fitting process but is a prediction.
Figure 7. Free energy contribution of a single inter-chain bond Δ A bond / J as function of lattice size (left) and temperature (right): (a) circles (closed and open) represent exact solutions for Δ A bond / J calculated according to Equation (17). Dashed lines correspond to fitting results according to Equation (21a) at constant temperature within β J = [ 0.01 , 2 ] using 200 equidistant points. Closed (open) circles represent points that were (not) incorporated into the fitting process. The coloring scheme of the lines refers to ascending order in temperature, with blue curves at the bottom corresponding to low temperature (high β ) and red curves at the top to high temperature (low β ). (b) Δ A bond / J as function of reduced temperature k B T / J for selected N × N -systems: 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 40 × 40 (red). The limiting Onsager solution is shown in magenta. Colored curves correspond to exact results according to Equation (17) whereas superimposed black dashed lines refer to modeling results from (a). The shown 40 × 40 -system (red) was not taken explicitly into account into the fitting process but is a prediction.
Batteries 09 00489 g007
Figure 8. Model parameters a (blue), b (green), c (orange) and d (red) of the generalized hyperbola function for Δ A bond fit / J (see Equation (21a)), corresponding to Figure 7a as function of inverse temperature. For the fitting procedure, the c-parameter was constrained to positive values and the parameter d was not taken as free parameter but constrained to the exact limiting value of Δ A bond / J for N according to Equation (18). The black dashed-dotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Figure 8. Model parameters a (blue), b (green), c (orange) and d (red) of the generalized hyperbola function for Δ A bond fit / J (see Equation (21a)), corresponding to Figure 7a as function of inverse temperature. For the fitting procedure, the c-parameter was constrained to positive values and the parameter d was not taken as free parameter but constrained to the exact limiting value of Δ A bond / J for N according to Equation (18). The black dashed-dotted line is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Batteries 09 00489 g008
Figure 9. Reduced free energy (a) and reduced heat capacity per spin (b) as a function of inverse temperature for selected N × N -systems: 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 40 × 40 (red). The left graph also includes the limiting Onsager solution (magenta). For the fitting procedure, 200 equidistant points within the interval β J = [ 0.01 , 2 ] were applied for system sizes 2 N 20 . Systems with dimensions 21 < N < represent predictions. Colored curves correspond to exact results while black (dashed) lines represent modeling results based on Equations (16b) and (19b), respectively. The black dashed-dotted line in the right graph is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Figure 9. Reduced free energy (a) and reduced heat capacity per spin (b) as a function of inverse temperature for selected N × N -systems: 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 40 × 40 (red). The left graph also includes the limiting Onsager solution (magenta). For the fitting procedure, 200 equidistant points within the interval β J = [ 0.01 , 2 ] were applied for system sizes 2 N 20 . Systems with dimensions 21 < N < represent predictions. Colored curves correspond to exact results while black (dashed) lines represent modeling results based on Equations (16b) and (19b), respectively. The black dashed-dotted line in the right graph is shown as guide to the eye and corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8).
Batteries 09 00489 g009
Figure 10. Relative deviation (in percent) between exact and approximated reduced free energy per spin ( a N × N * app . a N × N * ) / | a N × N * | × 100 % as function of inverse temperature for selected N × N -systems (a) and as function of lattice size for specified inverse temperatures (b). a N × N * app . denotes the modeled reduced free energy per spin according Equation (16b) while a N × N * corresponds to the exact reference solution, evaluated via the code of Karandashev et al. [27]. For the fitting procedure, 200 equidistant points within the interval β J = [ 0.01 , 2 ] were applied for system sizes 2 N 20 . Systems with dimensions 21 < N < represent predictions. Shown system sizes in (a): 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 30 × 30 (dark red), 40 × 40 (red). The black dashed-dotted line corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8). Shown isothermes in (b): β J = 0.01 (blue), β J = 0.44 (cyan), β J = 0.50 (green), β J = 0.70 (orange), β J = 1.00 (red), β J = 2.00 (magenta).
Figure 10. Relative deviation (in percent) between exact and approximated reduced free energy per spin ( a N × N * app . a N × N * ) / | a N × N * | × 100 % as function of inverse temperature for selected N × N -systems (a) and as function of lattice size for specified inverse temperatures (b). a N × N * app . denotes the modeled reduced free energy per spin according Equation (16b) while a N × N * corresponds to the exact reference solution, evaluated via the code of Karandashev et al. [27]. For the fitting procedure, 200 equidistant points within the interval β J = [ 0.01 , 2 ] were applied for system sizes 2 N 20 . Systems with dimensions 21 < N < represent predictions. Shown system sizes in (a): 2 × 2 (blue), 5 × 5 (cyan), 10 × 10 (green), 20 × 20 (orange), 30 × 30 (dark red), 40 × 40 (red). The black dashed-dotted line corresponds to the inverse critical temperature in the thermodynamic limit ( β c J = ( k B T c / J ) 1 0.44 ) as given by Equation (8). Shown isothermes in (b): β J = 0.01 (blue), β J = 0.44 (cyan), β J = 0.50 (green), β J = 0.70 (orange), β J = 1.00 (red), β J = 2.00 (magenta).
Batteries 09 00489 g010
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Markthaler, D.; Birke, K.P. Analytic Free-Energy Expression for the 2D-Ising Model and Perspectives for Battery Modeling. Batteries 2023, 9, 489. https://doi.org/10.3390/batteries9100489

AMA Style

Markthaler D, Birke KP. Analytic Free-Energy Expression for the 2D-Ising Model and Perspectives for Battery Modeling. Batteries. 2023; 9(10):489. https://doi.org/10.3390/batteries9100489

Chicago/Turabian Style

Markthaler, Daniel, and Kai Peter Birke. 2023. "Analytic Free-Energy Expression for the 2D-Ising Model and Perspectives for Battery Modeling" Batteries 9, no. 10: 489. https://doi.org/10.3390/batteries9100489

APA Style

Markthaler, D., & Birke, K. P. (2023). Analytic Free-Energy Expression for the 2D-Ising Model and Perspectives for Battery Modeling. Batteries, 9(10), 489. https://doi.org/10.3390/batteries9100489

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop