# Interfacial tension:Property Calculations

 Introduction Background Basic Layout Examples Problems Run Simulation References Credits Assessment Etomica Modules

During the course of the simulation, several different system properties are calculated (as a function of the x-dimension). In order to generate the x-dimension profile of these quantities, the simulation cell is subdivided into small bins, and the local value of each quantity is reported as a function of (x) in the corresponding "profile" graphs.

• Density
• Energy (potential energy)
• Orientation (surfactants)
• Virial
• Interfacial Tension
• Chemical potential

## Density

The density profile provides a good representation of the phase behavior of the system. In the first stage of the simulation, when the molecules are at a liquid-phase density in the cubic simulation box, the density profile is relatively consistent along the x-coordinate. However, once the box is expanded during the second stage (and the vapor phase is allowed to form), the density profile can be examined to clearly identify the vapor phase, liquid phase, and interface region (see figure below). Also, when surfactants are present, their preferred locations can be clearly identified. In order to extract quantitative information from the density profile data, the local density bins are dynamically fit to an empirical equation:

${\displaystyle \rho (x)={\frac {1}{2}}(\rho _{L}+\rho _{V})-{\frac {1}{2}}(\rho _{L}-\rho _{V}){\text{tanh}}\left[{\frac {2(x-x_{0})}{d}}\right]}$      (Equation 4)
${\displaystyle \rho (x)}$ = density profile as a function of x position
${\displaystyle \rho _{L}}$ = liquid phase density
${\displaystyle \rho _{V}}$ = vapor phase density
${\displaystyle x_{0}}$ = position of the Gibbs dividing surface
${\displaystyle d}$ = width of the interface

## Energy

The total potential energy of the system is dynamically plotted as a function of the simulation time, according to the equation below. This plot gives a good initial indication of the equilibration status of the system. Although there will always be fluctions in the plot, once equilibration is reached, the fluctionations should be centered around the steady-state potential energy (i.e., there should be no net drift in the potential energy with respect to time).

${\displaystyle u_{\text{total}}=\displaystyle \sum _{i=1}^{N-1}\displaystyle \sum _{j=i+1}^{N}u(r)}$      (Equation 5)
${\displaystyle i}$ and ${\displaystyle j}$ = particle numbers
${\displaystyle N}$ = total number of particles

## Orientation

When surfactants are added to the simulation, it is important to be able to identify and characterize not only the locations of the surfactant molecules (with the density plot), but also the orientations of the surfactant molecules. The orientation plot represents the orientation of the surfactant molecules (only when surfactant molecules are present), and the average orientation of the surfactants are reported as <cos(theta)>, where theta is the orientation of the molecule with respect to the x-axis. Positive values of <cos(theta)> indicate that the "tail" side prefers to be oriented in the +${\displaystyle x}$ direction. In the figure below, taken from a representative simulation, the tail group of the surfactants prefers to be located on the vapor-phase side of the interfaces. Whereas, in the bulk liquid and vapor regions, the average orientation of the surfactants is more evenly distributed.

## Virial

The virial tensor is indicative of the molecular forces present in a system, and it can be used to identify any asymmetry with respect to those forces. Often, the virial tensor (${\displaystyle \Pi }$) is part of the pressure calculation performed during a molecular simulation, as it captures the deviation from ideal gas behavior. For instance, the instantaneous pressure of a system can be calculated as:

${\displaystyle \displaystyle P=\rho k_{B}T+\Pi /V=P^{ideal}+P^{excess}}$           (Equation 6)

${\displaystyle P}$ = total pressure
${\displaystyle P^{ideal}}$ = ideal gas contribution to the pressure
${\displaystyle P^{excess}}$ = non-ideal contribution to the pressure
${\displaystyle k_{B}}$ = Boltzmann's constant
${\displaystyle T}$ = system temperature
${\displaystyle V}$ = system volume

The diagonal components of the virial tensor are defined below, where the alpha index refers to the x, y, or z dimension, and ${\displaystyle f_{ij}}$ and ${\displaystyle r_{ij}}$ represent the force and the distance between sites ${\displaystyle i}$ and ${\displaystyle j}$, repsectively.

${\displaystyle \Pi _{\alpha \alpha }=\displaystyle \sum _{i=1}^{N-1}\displaystyle \sum _{j=i+1}^{N}r_{ij}^{\alpha }f_{ij}^{\alpha }}$           (Equation 7)

The three diagonal components of the virial tensor will typically all be equal in a bulk liquid or gas phase. Additionally, in the gas phase the magnitude of these components should be small, since the interactions among the gas phase molecules should be minimal. These general characteristics are seen in the figure shown below (taken from one of the simulation runs). The vapor phase exists in the left- and right-hand-sides of the simulation box, where the virial components are all approximately zero. In the center of the box, the liquid phase exists, and this phase is accompanied by much larger (negative) values of the virial components. Although there is some scatter in the data, the three component of the virial are equivalent in the center of the box (representative of the bulk liquid), but near the vapor-liquid interfaces (around +/- 4x), there is a distinctive and characteristic deviation among the virial components. The imbalance among the x, y, and z components of the virial tensor gives rise to the interfacial tension.

## Interfacial Tension

One of the primary quantities of interest in these simulations is the interfacial tension. The interfacial tension can be calculated in these simulations according to Equation 1 (Interfacial_tension:Theory). In this equation (repeated below), the interfacial tension is written as a difference of the diagonal components of the pressure tensor (Equation 8).

${\displaystyle \gamma ={\frac {L_{x}}{2}}\left[-0.5(+)\right]}$, where

${\displaystyle P_{\alpha \alpha }=\rho k_{B}T+{\frac {\Pi _{\alpha \alpha }}{V}}=\rho k_{B}T+{\frac {1}{V}}\displaystyle \sum _{i=1}^{N-1}\displaystyle \sum _{j=i+1}^{N}r_{ij}^{\alpha }f_{ij}^{\alpha }}$           (Equation 8)

In the figure below (taken from a representative simulation), the interfacial tension is plotted as a function of the x-coordinate, so that the interfacial tension can be identified along the length of the simulation cell (within the gas, liquid, and interface region). In the figure, it is apparent that the gas-phase contribution (corresponding to the far right- and left-hand-sides of the box) to the interfacial tension is negligible. Likewise, the center of the simulation box, corresponding to the bulk liquid phase, contributes very little to the interfacial tension. However, in the interfacial regions, there is a significant spike in the interfacial tension plot. In fact, the total interfacial tension for the system can be calculated by numerically integrating this interfacial tension profile, and dividing by a factor of two (since two identical interfaces are present in the simulation box). A reasonable criteria for confirming the equilibration of these simulations is by ensuring that the interfacial tension profile is "relatively smooth" and symmetric.

## Chemical Potential

The chemical potential profile of the box gives an indication of the equilibration and phase stability of the system. At equilibrium, it is necessary that the chemical potential (${\displaystyle \mu }$) of each phase must be equal:

${\displaystyle \mu _{\text{liquid}}=\displaystyle \mu _{\text{gas}}}$           (Equation 9)

In order to calculate the chemical potential of the fluid, Widom's test particle insertion method is used [5]. This approach separates the ideal (${\displaystyle \mu ^{\text{ideal}}}$) and excess (${\displaystyle \mu ^{\text{excess}}}$) chemical potential into two terms (Equation 10). During the course of the simulation, periodic sampling is performed to evaluate the excess chemical potential term (Equation 11), where the brackets in Equation 11 denote an ensemble average. The sampling involves performing "ghost" insertions into the fluid, and evaluating the change in potential energy (${\displaystyle dU_{\text{ghost}}}$) associated with these trial moves. These ghost insertions are performed at random locations in the fluid, but since these are ghost insertions, these moves are never accepted. Hence, the total number of particles in the simulations always remains fixed.

${\displaystyle \mu ^{\text{excess}}=\displaystyle \mu -\mu ^{\text{ideal}}}$           (Equation 10)

${\displaystyle \mu ^{\text{excess}}=-k_{B}T{\text{ln}}\langle {\text{exp}}\left({\frac {-dU_{\text{ghost}}}{k_{B}T}}\right)\rangle }$           (Equation 11)

In the figure below (taken from a representative simulation), the chemical potential profile is very smooth throughout the gas phase, while the liquid phase profile shows large fluctuations. Most importantly however, the average chemical potential in the liquid phase is essentially equal to the average chemical potential in the gas phase. The reason for the large fluctuations in the liquid phase value is due to the calculation procedure. As a general rule, since trial particle insertions are used to evaluate the excess chemical potential, more thorough sampling will improve the statistics of the calculated values. In the gas phase, it is relatively easy to perform the sampling, since at low density, the majority of the trial insertions do not overlap with neighboring particles (which would lead to an infinite ${\displaystyle dU_{\text{ghost}}}$ and contribute little to the evaluation of Equation 11). In contrast, the liquid phase has a high density, which leads to a significant number of overlaps during the sampling procedure, and this limits the quality of the data sampling.