General features
Semi-grand ensembles are used in Monte Carlo simulation of mixtures.
In these ensembles the total number of molecules is fixed, but the composition can change.
Canonical ensemble: fixed volume, temperature and number(s) of molecules
We shall consider a system consisting of c components;.
In the canonical ensemble, the differential
equation energy for the Helmholtz energy function can be written as:
,
where:
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 variable change
i.e.: 


Or:

where
.
- Now considering the thermodynamical potential:

![{\displaystyle d\left[\beta A-\sum _{i=2}^{c}(\beta \mu _{i1}N_{i})\right]=Ed\beta -\left(\beta p\right)dV+\beta \mu _{1}dN-N_{2}d\left(\beta \mu _{21}\right).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1433629d7e037f8d3eeb8aa3a55db3e3a3085707)
Fixed pressure and temperature
In the Isothermal-Isobaric ensemble:
ensemble we can write:
where:
Fixed pressure and temperature: Semi-grand ensemble
Following the procedure described above we can write:
,
where the new thermodynamical Potential
is given by:
Fixed pressure and temperature: Semi-grand ensemble: Partition function
TO BE CONTINUED SOON