Computation of phase equilibria: Difference between revisions

From SklogWiki
Jump to navigation Jump to search
Line 53: Line 53:
conditions <math> \left. N,P,T \right. </math>. Let <math> p_{eq} </math> the pressure at which the phase transition occurs. In such a
conditions <math> \left. N,P,T \right. </math>. Let <math> p_{eq} </math> the pressure at which the phase transition occurs. In such a
case the following scenario is expected for <math> \left. P(V|N,p,T) \right. </math>:
case the following scenario is expected for <math> \left. P(V|N,p,T) \right. </math>:
*<math> \left. P(V|N,p_{eq},T) \right. </math> has two maxima, corresponding to the liquid and vapor pure phases
*<math> \left. P(V|N,p_{eq},T) \right. </math> has two maxima, corresponding to the liquid and vapor pure phases, with
*The probability of a given intermediate volume is estimated to be  
 
:: <math> \left. P(V_v|N,p_{eq}T) = P(V_l|N,p_{eq},T) \right. </math>
 
*The probability of a given intermediate volume, at <math> \left. p_{eq} \right. </math>  is estimated to be  


[Working here]  --Noe 11:52, 28 September 2007 (CEST)
[Working here]  --Noe 11:52, 28 September 2007 (CEST)

Revision as of 10:56, 28 September 2007

Thermodynamic equilibrium implies, for two phases Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \alpha } and :

  • Equal temperature:
  • Equal pressure:

The computation of phase equilibria using computer simulation can follow a number of different strategies. Here we will focus mainly on first order transitions in fluid phases, usually liquid-vapor equilibria.

Independent simulations for each phase at fixed temperature in the canonical ensemble

Simulations can be carried out using either the Monte Carlo or the molecular dynamics technique. Assuming that one has some knowledge on the phase diagram of the system, one can try the following recipe:

  1. Fix a temperature and a number of particles
  2. Perform a limited number of simulations in the low density region (where the gas phase density is expected to be)
  3. Perform a limited number of simulations in the moderate to high density region (where the liquid phase should appear)
  4. In these simulations we can compute for each density (at fixed temperature) the values of the pressure and the chemical potentials (for instance using the Widom test-particle method)
A quick 'first guess' method

Using the previously obtained results the following, somewhat unsophisticated, procedure can be used to obtain a first inspection of the possible phase equilibrium:

  1. Fit the simulation results for each branch by using appropriate functional forms:
  2. Use the fits to build, for each phase, a table with three entries: , then plot for both tables as a function of and check to see if the two lines intersect.
  3. The crossing point provides (to within statistical uncertainty, the errors due to finite size effects, etc.) the coexistence conditions.
Improving the 'first guess' method

It can be useful to take into account classical thermodynamics to improve the previous analysis. This is because is is not unusual have large uncertainties in the results for the properties. The basic idea is to use thermodynamic consistency requirements to improve the analysis.

Methodology in the NpT ensemble

Low temperature:

For temperatures well below the critical point, provided that the calculation of the chemical potential of the liquid phase using Widom test-particle method gives precise results, the following strategy can be used to obtain a 'quick' result:

  1. Perform an simulation of the liquid phase at zero pressure, i.e.
  2. Arrive at an initial estimate, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \mu^{(1)} } for the coexistence value of the chemical potential by computing, in the liquid phase: Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu^{(1)} = \mu_l (N,T,p=0) \right. }
  3. Make a first estimate of the coexistence pressure, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p^{(1)} } , by computing, either via simulation or via the virial coefficients of the gas phase, the pressure at which the gas phase fulfills: Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu_g(N,T, p^{(1)} ) = \mu^{(1)} \right. }
  4. Refine the results, if required, by performing a simulation of the liquid phase at Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. p^{(1)} \right. } , or use estimates of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left( \partial V / \partial p \right)_{N,T,p=0} } (from the initial simulation) and the gas equation of state data to correct the initial estimates of pressure and chemical potential at coexistence.

Note that this method works only if the liquid phase remains metastable at zero pressure.

Weak first order transitions

There are situations where other strategies based on NpT ensemble simulations can be used. Similar approaches have also been applied in the Grand Canonical ensemble. In practice, the free energy barrier between the two phases has to be low enough to allow the simulated system to cross from one phase to the other when it is being simulated. Somehow, the situation is now the opposite to that described in Section 2.1.

Taking into the account the classical partition function in the NpT ensemble it can be written:

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. P(V|N,p,T) \propto \exp \left[ - \frac{ p V}{k_B T} \right] \exp \left[ - \frac{A(N,V,T)}{k_B T} \right] \right. } ,

where Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. P(V|N,p,T) \right. } stands for the probability of the volume Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. V \right. } at given conditions Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. N,P,T \right. } . Let Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p_{eq} } the pressure at which the phase transition occurs. In such a case the following scenario is expected for Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. P(V|N,p,T) \right. } :

  • Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. P(V|N,p_{eq},T) \right. } has two maxima, corresponding to the liquid and vapor pure phases, with
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. P(V_v|N,p_{eq}T) = P(V_l|N,p_{eq},T) \right. }
  • The probability of a given intermediate volume, at Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. p_{eq} \right. } is estimated to be

[Working here] --Noe 11:52, 28 September 2007 (CEST)

See also

Surface tension

Van der Waals loops in the canonical ensemble

It is possible to compute the liquid-vapor equilibrium without explicit calculations of the chemical potential (or the pressure) by performing a number of simulations sampling appropriately the vapor, liquid, and intermediate regions.

As an example, consider a simple fluid at a given subcritical temperature (Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. T < T_c \right. } ). We can perform a number of simulations for a given number of particles, Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. N \right. } and different densities:

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \rho_i = i \times \Delta \rho; \; \; \; \; i=1, 2, \cdots, m }

In these simulations, we can compute the pressure (or the chemical potential) and fit the result to an appropriate equation. With such an equation of state the phase equilbria can be estimated.

If two phase equilibria exists, a loop in the representation of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. p = p (\rho) \right. } (or Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu = \mu (\rho) \right. } ) should appear.

  • Computing Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu(\rho) \right. } from the equation of state given as Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. p(\rho) \right. } :

For fixed temperature and number of particles:

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. d A = - p d V \right. }
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. d A = \frac{ p N }{\rho^2} d \rho ; \; \; \; \; d a = \frac{ p }{\rho^2} d \rho \right. }

where Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. A \right. } is the Helmholtz energy function and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. a = A/N \right. } , integrating:

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. a(\rho) = a(\rho_0) + \int_{\rho_0}^{\rho} \frac{ p(\rho') }{(\rho')^2} d \rho' \right. }

On the other hand

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. A = - p V + \mu N ; \; \; \; a = - p/ \rho + \mu \right. }


therefore: [I have to check the equations]--Noe 13:03, 26 September 2007 (CEST)


Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu(\rho) - p(\rho)/\rho = \mu(\rho_0) - p(\rho_0)/\rho_0 + \int_{\rho_0}^{\rho} \frac{ p(\rho') }{(\rho')^2} d \rho' \right. }

A similar procedure can be built up to compute Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. p(\rho) \right. } from Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu(\rho) \right. } .

Once Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. p(\rho) \right. } and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left. \mu(\rho) \right. } are known it is straighforward to compute the coexistence point.

Practical details

Some precautions should be taken if this procedure is used:

  • The precision of the simulation results in the two phase region will be poor (so, large simulations are required to have a good estimation of the equation of state)
  • The simulation results in the two phase region will depend dramatically on the system size (calculations with different number of particles become convenient to check the quality of the phase equilibria results)

Direct simulation of the two phase system in the canonical ensemble

Gibbs ensemble Monte Carlo for one component systems

The Gibbs ensemble Monte Carlo method is often considered as a 'smart' variation of the standard canonical ensemble procedure (See Ref. 1). The simulation is, therefore, carried out at constant volume, temperature and number of particles. The whole system is divided into two non-interacting parts, each one has its own simulation box with its own periodic boundary conditions. This separation of the two phases into different boxes is in order to suppress any influence due to interfacial effects. The two subsystems can interchange volume and particles. The rules for these interchanges are built up so as to guarantee conditions of both chemical and mechanical equilibrium between the two phases. If the overall conditions are of phase separation, it is expected that two phases will appear in different simulation boxes.

External links

Mixtures

Symmetric mixtures

See also

References

  1. Athanassios Panagiotopoulos "Direct determination of phase coexistence properties of fluids by Monte Carlo simulation in a new ensemble", Molecular Physics 61 pp. 813-826 (1987)