Basic classical density functional theory
Classical density functional theory (cDFT) describes an inhomogeneous fluid using the one-body number-density profile \(\rho(\mathbf{r})\). Instead of tracking the position of every molecule, cDFT determines the most probable equilibrium density by minimizing a thermodynamic potential.
Density profile
For a mixture, the density is a vector containing the density of each species:
where \(s\) is the number of species. The average number of particles of species \(i\) is
For a single-component fluid, the species index can be omitted.
Grand potential
CmmDFT uses the grand-canonical ensemble, in which the temperature, chemical potential, and volume are fixed. The grand-potential functional is
where \(F\) is the intrinsic Helmholtz free-energy functional, \(V_{\mathrm{ext},i}\) is the external potential acting on species \(i\), and \(\mu_i\) is its chemical potential.
For a system without an external potential, this reduces to
The equilibrium density profiles minimize the grand potential:
Euler–Lagrange equation
The equilibrium profiles satisfy the Euler–Lagrange equations
Substitution of the grand-potential functional gives
Equivalently, the chemical potential at equilibrium is
This equation is solved numerically to obtain the equilibrium density profile.
Free-energy decomposition
The intrinsic Helmholtz free-energy functional is decomposed into an ideal and an excess contribution:
The excess contribution describes intermolecular interactions and is discussed in Approximations to the excess functional.
Ideal-gas contribution
The ideal-gas contribution is known exactly:
where \(k_{\mathrm{B}}\) is the Boltzmann constant, \(T\) is the temperature, and \(\Lambda_i\) is the thermal de Broglie wavelength of species \(i\).
Its functional derivative is
Using the ideal and excess contributions, the Euler–Lagrange equation becomes
where
This expression forms the basis of the iterative solvers used by CmmDFT.
External potentials
The external potential represents interactions between the fluid and its surroundings, such as a solid framework, wall, or confining surface. It can also include imposed fields. Regions where the external potential is very large are inaccessible to the fluid, causing the corresponding density to approach zero.
Bulk limit
For a homogeneous system, the density is independent of position:
The external potential is constant or zero, and the functional equations reduce to the bulk thermodynamic relations used by the equation of state. These bulk properties provide the chemical potentials and reference densities required for inhomogeneous calculations.