CONNECTED PHYSICS / STATES OF MATTER
Liquid-state physics
Keep strong local correlations while releasing the assumption of permanent lattice sites. Thermodynamic structure and molecular motion now require distinct but related descriptions.
Matter pathway: atom → solid → liquid → gas → plasma. Quantum mechanics and quantum field theory provide foundations across the pathway; they are not additional phases. This is a connected modeling route, not a universal heating curve. Actual phases depend on pressure, composition, and kinetics.
Follow the lesson from pair counts → scattering and comparison plots → OZ and numerical closures → pressure and energy → a complete hard-sphere example → transport and the gas limit. Each calculation defines its inputs and assumptions. Nine worked examples use illustrative values, not measured material data.
1. Definitions: g(r) counts neighbors; h(r) measures the excess
Definitions & inputs. N is particle count, V volume, n=N/V number density (m⁻³), r a separation (m), and k a wavevector magnitude (m⁻¹). g(r), h(r), c(r), and S(k) are dimensionless. Their three-dimensional Fourier transforms have units of volume. Here g(r) is a pair distribution, not Gibbs energy; h(r) is a total correlation, not enthalpy or Planck’s constant.
The two-particle density n^(2) counts distinct-particle pairs per product of volume elements. Divide by n² to define the radial pair distribution.
Conditional on one tagged particle, dz is the mean number of other particles in a shell. g alone is neither a shell count nor a probability density normalized to one.
Subtract the uncorrelated baseline g=1. Positive h indicates an excess of neighbors at that separation; negative h indicates depletion.
Examples: a peak need not be bounded by one; an excluded hard core has g=0. Since g is nonnegative, h cannot be smaller than −1.
Interpretation. For a uniform ordinary fluid far from criticality, g tends to one and h tends to zero at large separation. The coordination number is an integral of g over a chosen shell, not the peak height.
↑ Return to definitions and contents2. Worked example: count a shell of neighbors
Definitions & inputs. Take n=0.05 Å⁻³ and approximate g(r)=2 throughout the shell 2 Å≤r≤3 Å. z is the mean neighbor count, not an integer for every configuration.
Start with the conditional shell count and integrate over the shell.
The ų from the integral cancels Å⁻³ from density.
With h=1 in the shell, the excess count equals the uncorrelated baseline.
Interpretation. A peak height of two means twice the local density; here the finite shell contains about eight neighbors on average.
↑ Return to definitions and contents3. Derive S(k): real-space correlations become density fluctuations
Definitions & inputs. ρk=Σj exp(−ik·rj) is a microscopic number-density mode, not mass density. δρk=ρk−⟨ρk⟩ removes the mean. Angular brackets denote an ensemble average. S(k) is the static number-number structure factor.
Define the nonnegative fluctuation power per particle. For nonzero k in a uniform bulk fluid, the mean Fourier mode vanishes.
Expand the double particle sum. Terms with the same particle give the self contribution 1; distinct-particle excess correlations give n times the transform of h.
Choose the polar axis parallel to k and substitute μ=cos θ. Here μ is only an angular integration variable, not the chemical potential used later. This step explains the spherical transform kernel.
Perform the angular integral for an isotropic fluid. The factor sin(kr)/(kr) weights different separations with alternating signs; S is not simply g with its axis relabeled.
This inverse uses the stated Fourier convention, with (2π)⁻³ in the inverse three-dimensional transform. Finite measured k ranges introduce resolution and truncation errors.
Take the long-wavelength limit, using sin(kr)/(kr)→1 when the correlation integral converges. It probes large-scale density fluctuations, not just the first shell.
Interpretation. In a fixed-N simulation, the exactly zero connected mode is zero because N cannot fluctuate. Compressibility uses the bulk k→0 limit, not that finite-box k=0 bin. For integrable h, S(k) approaches one at large k. A peak in S identifies a prominent correlation length, not a phase or pressure by itself.
↑ Return to definitions and contents4. Compare gas, liquid, and solid structure
The same colors identify each reference model in all three plots. σ is a reference length: the liquid hard-sphere diameter and the solid nearest-neighbor lattice spacing. All functions are dimensionless; S(k) uses a logarithmic vertical axis so both low-k suppression and sharp peaks remain visible.
Models, parameters, and how the curves were calculated
- Gas: ideal uncorrelated classical particles: g(r)=1, h(r)=0, S(k)=1 at nonzero wavevector.
- Liquid: three-dimensional monodisperse hard spheres at packing fraction φ=0.40, nσ³=6φ/π≈0.76394. The Percus–Yevick direct-correlation polynomial is Fourier-transformed, then S=1/(1−nĉ). The radial inverse of S−1 gives h outside the core. g=0 for r<σ and the exact PY right-contact value g(σ+)=3.33333 are imposed at the discontinuity. Inversion uses kmaxσ=400 and Δkσ=0.05; small truncation oscillations remain near contact.
- Solid: an FCC point lattice with independent isotropic Gaussian displacements of standard deviation 0.045σ per Cartesian coordinate; nσ³=√2. Radial g is the powder average of Gaussian relative-displacement distributions summed over lattice neighbors. h is exactly g−1. This harmonic reference allows arbitrarily close pairs with extremely small probability; it is not a hard-sphere solid.
- Crystal S(k): diffuse scattering 1−exp(−k²s²), plus FCC reciprocal-lattice Bragg shells weighted by exp(−G²s²). Each radial delta peak is replaced by an area-normalized Gaussian of width 0.12 in kσ for display. The intensity includes elastic Bragg scattering; the uniform forward peak at k=0 is excluded. It is not the connected fluctuation spectrum about a fixed periodic mean density.
The curves use different densities and statistical models. They illustrate order, not a single material at one temperature or a simulated phase-change trajectory. The solid is powder-averaged; a single crystal has direction-dependent diffraction. Do not apply the homogeneous-liquid compressibility formula to the displayed crystal Bragg spectrum, or infer pressure from a peak height. The display-broadened crystal S is not an exact inverse transform of the unsmoothed radial g shown here.
SasView: PY hard-sphere reference ↗ · LAMMPS: crystalline diffraction definitions ↗
Reproducible plot data: g(r) and h(r) CSV · S(k) CSV · All data and parameters (JSON)
5. Separate total, direct, and indirect correlations
Definitions & inputs. c(r) is the direct correlation defined through Ornstein-Zernike (OZ). γ(r)=h(r)−c(r) is the indirect correlation. Thus h is total, c direct, and γ indirect. β=1/(kBT); u(r) is a pair interaction energy, not a displacement or flow velocity.
OZ separates a direct part from a convolution representing correlations mediated through other particles. c is not generally equal to the force or pair potential.
A Fourier transform converts the convolution into multiplication. Rearrange to solve algebraically for the total correlation transform.
Move the indirect term to the left and factor out h-hat. To obtain S, put the self contribution one over the same denominator; the two terms containing n c-hat in the numerator cancel.
Substitute into the structure-factor identity. The number-density factor is required for dimensional consistency.
HNC and PY close OZ differently. They are approximations to many-particle structure, not interchangeable definitions of g.
Interpretation. The often useful approximation c≈−βu is a further closure in restricted regimes; it is not the definition of direct correlation. An approximate closure may predict different pressures through different thermodynamic routes.
↑ Return to definitions and contents6. Close OZ and solve it numerically
Definitions & inputs. γ=h−c is the indirect correlation; b(r)=exp[−βu(r)] is the Boltzmann factor; Bbr is the bridge function collecting correlations omitted by HNC. Superscript m labels an iteration, α is a mixing parameter, and ε is a residual tolerance.
The exact formal closure introduces an unknown bridge function. HNC neglects it; OZ alone has two unknown functions and is not closed.
PY uses a different approximation. Replacing e^γ by 1+γ in HNC is a useful algebraic comparison, not an exact derivation of PY at arbitrary density; the full Boltzmann factor is retained.
Specify u,n,T, choose a radial grid and cutoff, then compute c from the current γ. Begin at low density if necessary.
Apply the spherical Fourier transform and use γ-hat=h-hat−c-hat. An ordinary one-dimensional FFT of c is not this transform.
Invert with the matching normalization. Treat r=0 and k=0 with their analytic sinc limits.
Check the unmixed residual Rm, then damp the update, for example α=0.1. Stop only after the residual is below the chosen tolerance; small damping alone must not falsely signal convergence.
For a hard core, enforce the last identities directly and avoid log(g). Check g≥0 and S≥0, refine the mesh and cutoff, and compare pressure routes.
Interpretation. Repeat closure → transform → OZ → inverse transform → mixing. Use density continuation or a more robust nonlinear solver if the iteration fails. This is an algorithm lesson, not a claim that a full liquid solver runs in this page.
↑ Return to definitions and contents7. Worked example: one local closure and mixing step
Definitions & inputs. At one radial grid point outside a core, let βu=0.5, γ=0.2. For a separate iteration illustration let γtrial=0.35 and α=0.1.
Compute the Boltzmann factor and the HNC pair value.
Subtract the uncorrelated baseline and indirect correlation.
Use the same potential and indirect correlation to compare PY with HNC.
Damping changes the iterate by only 0.015, but the unmixed local residual is ten times larger.
Interpretation. The closures agree to first order in small γ, but differ at finite γ. A small update caused by damping is not evidence of a small equation residual.
↑ Return to definitions and contents8. Pressure route A: weight g(r) by the pair force
Definitions & inputs. p is pressure (Pa); u′(r)=du/dr; the central pair force is −u′(r) r-hat. Z=p/(nkBT) is the compressibility factor, distinct from both a partition function and the structure factor S(k).
The mechanical virial adds the interaction contribution to the kinetic ideal-gas pressure.
For a central force, reduce the vector dot product to a radial derivative.
Use pair statistics to replace the distinct unordered-pair sum. The factor one half avoids counting each pair twice.
Insert A=−ru′ and the spherical volume element 4πr²dr. This is the virial pressure route.
Express the same result in terms of excess correlations. Simply knowing a peak in g or h is insufficient: pressure depends on the force-weighted integral over all separations.
Interpretation. Where u′<0, a repulsive pair-force contribution raises pressure; where u′>0, an attractive contribution lowers it. The sum determines the result. Hard spheres have a discontinuous potential and must use a contact relation instead of ordinary differentiation.
↑ Return to definitions and contents9. Pressure route B: use S(0) to obtain the isothermal slope
Definitions & inputs. κT=−(1/V)(∂V/∂p)T,N is isothermal compressibility (Pa⁻¹), measuring how readily density changes under pressure. KT=1/κT is the bulk modulus. S(0+) is the bulk long-wavelength limit, and μ is chemical potential per particle.
Differentiate grand-canonical averages with respect to chemical potential: the number response is proportional to the number variance.
Use Gibbs-Duhem at fixed temperature and the definition of compressibility.
Combine the two responses. Smaller S(0+) means weaker long-wavelength fluctuations and a larger bulk modulus at the same n,T.
Invert the density response. S at one state gives a pressure derivative, not an absolute pressure.
Integrate along a specified single-phase isotherm and supply a reference pressure. Integrating from vacuum with p(0)=0 is only justified if the required branch is valid and connected.
Differentiate p=nkBT Z. In general S(0+) is NOT 1/Z; the density dependence of Z supplies an extra term.
Interpretation. Exact equilibrium correlations and consistent interactions give agreement between pressure routes. Approximate PY/HNC closures may be thermodynamically inconsistent. Finite-size effects, correlation tails, and noisy low-k data can strongly affect compressibility estimates.
↑ Return to definitions and contents10. Worked example: scattering to compressibility and bulk modulus
Definitions & inputs. Use n=2.5×10²⁸ m⁻³, T=300 K, S(0+)=0.050, and kB=1.380649×10⁻²³ J K⁻¹. KT is the isothermal bulk modulus.
Calculate the ideal pressure scale; joules per cubic metre are pascals.
Divide the dimensionless fluctuation level by the pressure scale.
Invert the compressibility to obtain the bulk modulus.
A small isothermal pressure increase of 1 MPa produces approximately a 0.0483% density increase if κ is locally constant.
Interpretation. These inputs determine a local stiffness, not an absolute pressure. Recovering p requires an isothermal density path and reference pressure.
↑ Return to definitions and contents11. Energy route: pair counting and the missing free-energy reference
Definitions & inputs. E is total internal energy, Uex the mean pair interaction energy, Fex the excess Helmholtz free energy, and fex=Fex/N. u is a temperature-independent pair energy.
Equipartition gives the kinetic contribution; unordered pairs contribute interaction energy.
Replace the pair sum by its pair-density integral; the one-half removes double counting.
Integrate energy at fixed density to obtain free energy only after supplying a consistent reference.
Differentiate free energy with respect to density to obtain pressure. An energy at a single state is insufficient.
Allowed hard-sphere configurations have zero potential energy; overlapping configurations are forbidden. Do not assign a value to infinity times zero. The excess free energy is entropic and still density-dependent.
Interpretation. A hard-sphere energy alone cannot recover its nonideal pressure: the density-dependent entropic reference is essential.
↑ Return to definitions and contents12. Worked example: attractive-shell interaction energy
Definitions & inputs. A hard core has diameter σ; outside it u=−ε for σ<r<λσ and zero beyond λσ. Approximate g=g0 in this attractive shell. Choose nσ³=0.1, λ=1.5, g0=1, ε=kBT.
Only the allowed attractive shell contributes potential energy.
Integrate r² to r³/3; dividing by ε makes the result dimensionless.
Insert the specified reduced density and well width.
Add translational kinetic energy, using ε=kBT at the stated temperature.
Interpretation. Attraction lowers energy. This single-state estimate does not supply the temperature dependence or reference needed to derive an equation of state.
↑ Return to definitions and contents13. Hard spheres: derive the two PY pressures and Carnahan–Starling
Definitions & inputs. σ is sphere diameter; φ=πnσ³/6 is packing fraction; g(σ+) is the right-hand contact value. Zv and Zc denote virial and compressibility-route p/(nkBT). y=g/exp(−βu) is the cavity function defined by a smooth-core limit.
Take the steep repulsion limit in the Boltzmann factor. This avoids differentiating an infinite potential or multiplying infinity by zero.
Insert the delta-function limit into the virial integral. The cavity function at contact equals the exterior g.
Use the analytic PY contact value. Multiplying the numerator by 1−φ leaves a −3φ³ term; dropping it incorrectly makes the two routes identical.
The analytic PY hard-sphere solution has a core polynomial. The zero outside the core is specific to this closure, not a general property of c.
These coefficients and the contact value are inputs from the analytic PY solution; the full solution of that integral equation is not derived here.
Integrate the polynomial with the radial volume element x²dx, then use the OZ structure-factor relation.
Convert the isothermal density integration to packing fraction; diameter and temperature stay fixed, with the dilute reference p→0.
Evaluate the antiderivative and subtract its lower-limit value, one. Division by φ gives Zc, with its dilute value defined by the limit.
Two-thirds compressibility plus one-third virial gives Carnahan–Starling. This interpolation is an accurate approximation, not proof that PY routes agree or that CS is exact.
Interpretation. PY route disagreement diagnoses approximate thermodynamics. The displayed hard-sphere comparison plots use PY structure; substituting a CS pressure does not make that structure thermodynamically consistent with CS.
↑ Return to definitions and contents14. Worked example: compare the routes at packing fraction 0.20
Definitions & inputs. Use φ=0.20; all Z values are dimensionless. S(0) below is the PY compressibility result; it is not the reciprocal of any of the listed pressures.
Compute PY contact and its mechanical pressure.
The inverse S is the reduced pressure slope, not the pressure factor.
Use the integrated compressibility equation, which exceeds the virial result.
Combine the routes with the stated weights.
A contact value inferred from CS is different from the PY contact value. Keep the approximation labels attached.
Interpretation. The two PY pressures differ by 0.046875 in Z. CS lies between them; the difference cannot be removed by algebraic simplification.
↑ Return to definitions and contents15. Worked examples and consistency checks
Definitions & inputs. All examples are illustrative idealizations. In example B, B is a positive constant volume at fixed T, not a magnetic field; n is number density. In example C, σ is hard-sphere diameter and φ=πnσ³/6 is packing fraction. In example D, ℓ is a positive correlation length.
With no interactions, positions are uncorrelated in the bulk and there is no excess pair correlation.
The force integral vanishes, and integrating the compressibility route gives the identical ideal-gas pressure.
Insert the assumed long-wavelength structure-factor law into the isothermal pressure derivative.
Integrate explicitly using p(0)=0. This is an assumed density law, not a closure-derived universal liquid EOS.
The numerical values demonstrate why a structure factor is not an inverse compressibility factor.
For hard spheres, use the contact limit of the virial route. The second expression is the Carnahan-Starling contact approximation, not the PY contact value.
Compute the pair-distribution value just outside contact; inside the core g=0.
The contact enhancement and excluded-volume geometry determine the approximate pressure relative to the ideal-gas value.
Specify a smooth depleted pair profile. It has g(0)=0.5 and approaches one at large r; subtracting one isolates the decaying correlation.
Apply the one-dimensional Gaussian Fourier transform independently in x, y, and z. Multiplication produces the volume factor π^(3/2)ℓ³.
Insert the transform in S=1+n h-hat. This is an explicit nontrivial mapping from the separation variable r to the wavevector variable k.
With the stated reduced density, S stays positive and increases toward one. Nonnegative g and S are necessary but not sufficient for a realizable equilibrium fluid; this profile alone does not establish an equation of state.
Interpretation. Three different quantities answer three different questions: g(r) describes neighbors, S(k) describes spatial fluctuation modes, and p describes mechanical thermodynamics. Their connections require normalization, an ensemble/limit, interactions, and sometimes an entire density path.
↑ Return to definitions and contents16. From static structure to transport
- Average the mechanical virial of a three-dimensional pair-potential fluid. Isotropy turns the pair sum into a radial integral involving g.
- Pressure thus combines kinetic motion and correlated interactions. Smooth potentials use the displayed derivative; hard spheres require the contact-value limit.
- Transport adds time correlations: linear response expresses viscosity through the integrated equilibrium shear-pressure autocorrelation, with Pxy intensive.
Connection / worked consequence. Worked example: for correlation C0 exp(−t/τ), η(t)=VC0τ[1−exp(−t/τ)]/(kBT). At 3τ this assumed correlation has contributed 95.02% of its infinite-time integral.
↑ Return to the state pathway17. Continue from liquid to dilute gas
- At vanishing density, a pair becomes isolated from other particles, leaving its two-body Boltzmann weight.
- Insert this limit in the virial pressure expression. Write d[exp(−βu)−1]/dr=−βu′exp(−βu).
- Integrate by parts, assuming the boundary term vanishes, to obtain B2. When |B2 n| and higher density terms are small, pressure approaches nkBT.
Connection / worked consequence. Equilibrium vaporization is instead located by μliquid=μgas. The gas may be reached through coexistence with latent heat; a mathematical density limit does not supply the coexistence temperature.
↑ Return to the state pathwayRelated models & worked graphical examples
These entries come from the existing catalog. Open a formulation here, or follow its link for the complete model and three worked examples.
Classical molecular dynamics (MD)
Integrates atomic motion under specified interaction forces.
Assumptions. rᵢ and mᵢ are atomic positions and masses. Thermostats, constraints and long-range electrostatics modify the practical equations or integration.
Application. Diffusion of a liquid in a nanopore.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Lennard–Jones potential
Combines short-range repulsion with an inverse-sixth-power attraction.
Assumptions. r is pair separation, ε the energy scale and σ the length scale; this pair model is not a general description of chemical bonding.
Application. A simplified simulation of an argon fluid.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Van der Waals equation of state
Adds molecular attraction and excluded volume to an ideal gas model.
Assumptions. v is molar volume; a and b are substance parameters. This is a qualitative equation of state near critical and coexistence regions.
Application. Qualitative liquid-vapor coexistence.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Ornstein-Zernike equation
Relates total and direct pair correlations in a homogeneous liquid, linking microscopic structure to scattering.
Assumptions. Homogeneous isotropic equilibrium fluid; rho is number density, g is radial distribution, k is wavevector. Fourier transform has no prefactor in the forward integral. A closure or supplied c is needed.
Application. Interpreting scattering structure factors of liquid and colloidal samples.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Percus-Yevick closure
Closes the liquid integral equation using an approximate relation between pair correlations and interactions.
Assumptions. beta=1/(k_B T), u is pair energy. Approximate classical pair-potential theory; pressure routes can disagree. Hard cores require g=0 inside the core.
Application. Fitting scattering from approximately neutral, hard-sphere colloidal dispersions.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Hypernetted-chain (HNC) closure
Approximates liquid pair structure by neglecting bridge diagrams in the exact closure.
Assumptions. Classical equilibrium pair-potential fluid; beta=1/(k_B T). Bridge terms are omitted, which can impair dense, strongly correlated liquids. HNC is not an exact general liquid solution.
Application. Estimating pair distributions in simple fluids with a specified pair potential.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Carnahan-Starling hard-sphere equation of state
Approximates the compressibility factor of a monodisperse hard-sphere fluid from its packing fraction.
Assumptions. rho is number density, sigma sphere diameter, T temperature. Monodisperse, nonattracting hard-sphere fluid. This is a highly accurate approximation, not an exact EOS or a model of crystallization.
Application. Estimating excluded-volume pressure contributions in dense-fluid reference models.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Stokes-Einstein diffusion relation
Connects Brownian translational diffusion to temperature, solvent viscosity, and hydrodynamic particle radius.
Assumptions. D is diffusivity, eta dynamic viscosity, R_H hydrodynamic radius. Dilute spherical probes in a Newtonian continuum solvent, low Reynolds number, no-slip boundary. Molecular-scale and concentrated systems may violate it.
Application. Estimating hydrodynamic particle sizes from diffusion measurements in a dilute suspension.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Green-Kubo viscosity relation
Obtains equilibrium shear viscosity from the time integral of microscopic shear-stress fluctuations.
Assumptions. Equilibrium isotropic liquid in volume V at T. P_xy is an intensive pressure (Pa), not a volume-integrated virial. Subtract any nonzero mean. Finite trajectories require convergence and tail-error checks.
Application. Predicting liquid viscosity from an equilibrium molecular-dynamics trajectory.
Full model, derivation, references, numerical techniques & 3 worked graphs ↗Notation used throughout
n: number density (m⁻³); N: particle count; ρ: mass density (kg m⁻³); ρc: charge density; p: pressure; T: temperature (K); kB: Boltzmann constant; h, ℏ: Planck constants; β=1/(kBT); μ: chemical potential; f: phase-space distribution; g(r): pair distribution. In solid displacements u is a displacement; in the liquid closure u(r) is pair energy; in fluid equations u is bulk velocity. Subscripts identify phase or species. Every approximation must use consistent SI units or explicitly stated reduced units.