The classical XY model (sometimes also called classical rotor (rotator) model or O(2) model) is a lattice model of statistical mechanics. In general, the XY model can be seen as a specialization of Stanley's n-vector model for n = 2. In two-dimensions, the model has a phase transition, known as the Berezinskii–Kosterlitz–Thouless transition.
Definition Given a D-dimensional lattice Λ, at each lattice site j ∈ Λ there is a two-dimensional, unit-length vector sj = (cos θj, sin θj). A spin configuration, s = (sj)j ∈ Λ is an assignment of the angle −π < θj ≤ π for each j ∈ Λ. Given an interaction Jij (often assumed to be translation-invariant, so Jij = J(i − j)) and a point-dependent external field 𝐡j=(hj,0), the configuration energy of a given spin configuration is
H(𝐬)=−∑i≠jJij𝐬i⋅𝐬j−∑j𝐡j⋅𝐬j=−∑i≠jJijcos(θi−θj)−∑jhjcosθj. Often one considers the nearest neighbor case, in which Jij = 0 except when i and j are nearest neighbors. The configuration probability is given by the Boltzmann distribution with inverse temperature β ≥ 0:
P(𝐬)=e−βH(𝐬)ZZ=∫[−π,π]Λ∏j∈Λdθje−βH(𝐬). where Z is the normalization, or partition function. The notation ⟨A(𝐬)⟩ indicates the expectation of the random variable A(s) in the infinite volume limit, after periodic boundary conditions have been imposed. The classical XY model is the semiclassical limit of the spin-s quantum XY model in the limit as s becomes large.
Rigorous results The existence of the thermodynamic limit for the free energy and spin correlations were proved by Ginibre, extending to this case the Griffiths inequality. Using the Griffiths inequality in the formulation of Ginibre, Aizenman and Simon proved that the two point spin correlation of the ferromagnetics XY model in dimension D, coupling J > 0 and inverse temperature β is dominated by (i.e. has an upper bound given by) the two point correlation of the ferromagnetic Ising model in dimension D, coupling J > 0 and inverse temperature β/2 ⟨𝐬i⋅𝐬j⟩J,2β≤⟨σiσj⟩J,β Hence the critical β of the XY model cannot be smaller than the double of the critical β of the Ising model βcXY≥2βcIs
One dimension As in any 'nearest-neighbor' n-vector model with free (non-periodic) boundary conditions, if the external field is zero, there exists a simple exact solution. In the free boundary conditions case, the Hamiltonian is H(𝐬)=−J[cos(θ1−θ2)+⋯+cos(θL−1−θL)] therefore the partition function factorizes under the change of coordinates θj=θj′+θj−1j≥2 This gives Z=∫−ππdθ1⋯dθLeβJcos(θ1−θ2)⋯eβJcos(θL−1−θL)=2π∏j=2L∫−ππdθ'jeβJcosθ'j=(2π)[∫−ππdθ'jeβJcosθ'j]L−1=(2π)L(I0(βJ))L−1 where I0 is the modified Bessel function of the first kind. The partition function can be used to find several important thermodynamic quantities. For example, in the thermodynamic limit (L→∞), the free energy per spin is f(β,h=0)=−limL→∞1βLlnZ=−1βln[2πI0(βJ)] Using the properties of the modified Bessel functions, the specific heat (per spin) can be expressed as ckB=limL→∞1L(kBT)2∂2∂β2(lnZ)=K2(1−μK−μ2) where K=J/kBT, and μ is the short-range correlation function,
μ(K)=⟨cos(θ−θ′)⟩=I1(K)I0(K) Even in the thermodynamic limit, there is no divergence in the specific heat. Indeed, like the one-dimensional Ising model, the one-dimensional XY model has no phase transitions at finite temperature.
The same computation for periodic boundary condition (and still h = 0) requires the transfer matrix formalism, though the result is the same. This transfer matrix approach is also required when using free boundary conditions, but with an applied field h≠0. If the applied field h is small enough that it can be treated as a perturbation to the system in zero-field, then the magnetic susceptibility χ≡∂M/∂h can be estimated. This is done by using the eigenstates computed by the transfer matrix approach and computing the energy shift with second-order perturbation theory, then comparing with the free-energy expansion F=F0−12χh2. One finds χ(h→0)=CT1+μ1−μ where C is the Curie constant (a value typically associated with the susceptibility in magnetic materials). This expression is also true for the one-dimensional Ising model, with the replacement μ=tanhK.
Two dimensions
… excerpt ends here. Continue reading the full article.

![Classical XY model: Mean-square magnetization for a 25x25 lattice (Ota:[8] 30x30), suggesting an increase in magnetic moment that is not present in the thermodynamic limit](https://thumb.wikimedia.org/wikipedia/commons/thumb/c/c3/XY_Magnetisation.svg/330px-XY_Magnetisation.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)
![Classical XY model: Specific heat of the two-dimensional XY model, computed by Monte Carlo simulation on square lattices of size up to 4096 x 4096 (Nguyen:[11]), showing a feature at kBT/J≈1.167 Tc, above the K-T transition. Inset shows the position of the peak as a function of lattice size.](https://thumb.wikimedia.org/wikipedia/commons/thumb/5/5e/XY_Specifc_Heat_2D.png/1280px-XY_Specifc_Heat_2D.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)
![Classical XY model: Color map of the (discrete) two-dimensional XY model in a 250x250 lattice at kBT/J=0.4. Each spin is represented by a color that corresponds to an angle between (−π,π]. Note the periodic boundary conditions.](https://thumb.wikimedia.org/wikipedia/commons/thumb/f/f4/XY_Color_Map.svg/330px-XY_Color_Map.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)
