GranCanonicalEnsemble
The grand canonical ensemble, often abbreviated as the GCE, is a statistical ensemble used to describe a system in thermal and chemical equilibrium with a reservoir that can exchange both energy and particles. The natural variables for the GCE are temperature T, volume V, and chemical potential μ. In this ensemble the particle number N can fluctuate, reflecting exchange of particles with the reservoir.
The grand partition function Ξ(T,V,μ) is defined by Ξ = sum_N Z_N(T,V) e^{β μ N} = sum_s e^{−β (E_s − μ N_s)},
Fluctuations in particle number obey Var(N) = ⟨N^2⟩ − ⟨N⟩^2 = k_B T ∂⟨N⟩/∂μ = k_B T ∂^2 ln Ξ / ∂ μ^2.
Applications include open systems such as adsorption, quantum dots, and nanoscale or electrolyte contexts, and it