Semi-grand ensembles
General Features
Semi-grand ensembles are used in Monte Carlo simulation of mixtures.
In this ensembles the total number of molecules is fixed, but the composition can change.
Canonical Ensemble: fixed volume, temperature and number(s) of molecules
We will consider a binary system;. In the Canonical Ensemble, the differential equation energy for the Helmholtz energy function can be written as:
- ,
 
where:
- is the Helmholtz energy function
 - is the Boltzmann constant
 - is the absolute temperature
 - is the internal energy
 - is the pressure
 - is the chemical potential of the species "i"
 - is the number of molecules of the species "i"
 
Semi-grand ensemble at fixed volume and temperature
Consider now that we want to consider a system with fixed total number of particles,
- ;
 
but the composition can change, from the thermodynamics we can apply a Legendre's transform [HAVE TO CHECK ACCURACY] to the differential equation written above in terms of .
- Consider the change i.e.:
 
TO BE CONTINUED