Full text
Princeton University Universitat Politècnica de Catalunya Degree in Mathematics - Degree in Engineering Physics Bachelor’s Degree Thesis String method for the study of nucleation events in multicomponent liquid mixtures Josep Bataller i Umbert Supervisor (Princeton): Andrej Košmrlj Supervisor (UPC): Marino Arroyo June 2021
I would like to thank Andrej Košmrlj, Sheng Mao and Mikko Haataja for their support, interest and patience throughout all these months. They have always showed genuine interest in the project, and they have provided the necessary guidelines I needed in every moment. I would especially like to thank Andrej for giving me the opportunity to collaborate with him, despite the circumstances on which this project has been developed. I would also like to thank Marino Arroyo for putting me in contact with Andrej and for his help during all the project. Finally, I would like to thank the CFIS institution for giving me the opportunity to do this project, despite the complications derived from the covid-19 pandemic, and for all their support during these months.
Abstract Nucleation is a very common process by which phase separation takes place in multicomponent liquid mixtures. Phase field models are usually applied to study phase separation, but they are insufficient to study nucleation events, since these transitions are thermally activated and require overcoming an energy barrier. To overcome this difficulty, we combined phase field models with the string method, a numerical scheme capable of finding transition pathways and critical states, to study nucleation in binary and ternary systems. Our model is able to capture homogeneous and heterogeneous nucleation both in binary and ternary systems. We validate our approach by comparing it with classical nucleation theory, valid in a sharp interface limit, and further examine and discuss the discrepancies between these two approaches. In the future this model can be applied to study more complex configurations, some of which are interesting from a biological point of view because they simulate protein separation in the intracellular fluid. Resum La nucleació és un procés molt comú pel qual la separació de fases es dóna en sistemes líquids multicomponents. Els models de camps de fase són habitualment emprats per estudiar la separació de fases, però són insuficients per estudiar els processos de nucleació, degut a què aquestes transicions són activades tèrmicament i requereixen superar una barrera d’energia. Per superar aquesta dificultat, hem combinat els models de camps de fase amb el “string method” (mètode de la corda), un esquema numèric capaç de trobar camins de transició i estats crítics, per estudiar la nucleació en sistemes binaris i ternaris. El nostre model és capaç de capturar la nucleació homogènia i heterogènia tant en sistemes binaris com ternaris. Validem la nostra aproximació comparant-la amb la teoria de nucleació clàssica, vàlida en el límit de interfases abruptes, i examinen i discutim les discrepàncies entre aquestes dues aproximacions. En el futur aquest model pot ser emprat per estudiar configuracions més complexes, algunes de les quals són interessants des d’un punt de vista de la biologia perquè simulen la separació de proteïnes en el fluid intracel·lular. Resumen La nucleación es un proceso muy común por el cual la separación de fases se da en sistemas líquidos multicomponentes. Los modelos de campos de fase son habitualmente empleados para estudiar la separación de fases, pero son insuficientes para estudiar los procesos de nucleación, debido a que estas transiciones son activadas térmicamente y requieren superar una barrera de energía. Para superar esta dificultad, hemos combinado los modelos de campos de fase con el “string method” (método de la cuerda), un esquema numérico capaz de hallar caminos de transición y estados críticos, para estudiar la nucleación en sistemas binarios y ternarios. Nuestro modelo es capaz de capturar la nucleación homogénea y heterogénea tanto en sistemas binarios como ternarios. Validamos nuestra aproximación comparándola con la teoría de nucleación clásica, válida en el límite de interfases abruptas, y examinamos y discutimos las discrepancias entre estas dos aproximaciones. En el futuro este modelo puede ser empleado para estudiar configuraciones más complejas, algunas de las cuales son interesantes desde un punto de vista de la biología porque simulan la separación de proteínas en el fluido intracelular. 1
Nucleation in multicomponent liquid mixtures Keywords string method, phase field models, multicomponent liquid mixtures, classical nucleation theory, finite differences, IMEX methods MSC2020: 65M06 2
Contents 1 Introduction 5 1.1 Related work .......................................... 6 1.2 Structure of the thesis ..................................... 7 2 The string method 8 2.1 Numerical implementation ................................... 8 2.2 Example: The Mueller potential ................................ 10 3 Classical nucleation theory 12 3.1 Homogeneous nucleation ................................... 12 3.2 Heterogeneous nucleation ................................... 14 3.3 Spinodal decomposition .................................... 16 4 Nucleation in binary mixtures 19 4.1 Phase evolution ........................................ 19 4.1.1 Phase field models ................................... 19 4.1.2 The Cahn-Hilliard equation .............................. 20 4.1.3 Model parameters and physical constants ....................... 21 4.2 One dimensional case ..................................... 24 4.2.1 Numerical implementation ............................... 24 4.2.2 Simulations and results ................................ 28 4.3 Two dimensional case: Polar coordinates ........................... 33 4.3.1 Numerical implementation ............................... 33 4.3.2 Simulations and results ................................ 35 4.4 Two dimensional case: Cartesian coordinates ......................... 41 4.4.1 Numerical implementation ............................... 41 4.4.2 Simulations and results ................................ 43 4.5 Three dimensional case: Spherical coordinates ........................ 46 4.5.1 Numerical implementation ............................... 46 4.5.2 Simulations and results ................................ 47 5 Nucleation in ternary mixtures 53 5.1 Free energy density ...................................... 53 5.2 Model implementation ..................................... 56 5.2.1 Spinodal region .................................... 57 5.3 One dimensional case ..................................... 58 5.4 Two dimensions ........................................ 61 3
Nucleation in multicomponent liquid mixtures 5.4.1 Contact angles ..................................... 61 5.4.2 Nucleation events ................................... 64 5.4.3 Improvements ..................................... 72 6 Conclusions 76 6.1 Future work .......................................... 77 A The shape factor in heterogeneous nucleation 79 B Analytical solution to the Cahn-Hilliard equation 85 4
1. Introduction Multicomponent systems are a fundamental part of biology and industry. While systems with two and three components (binary and ternary mixtures) have been widely studied and are well-understood, there is a lot of exploration to be made for systems with more than three components. These systems are very common in biology. For example, the intracellular fluid, which is formed by many droplets containing proteins, constitutes a system with a high number of components where phase separation plays a key role [1–5]. Phase separation is a phenomenon that has been studied for a very long time, from the second half of the XIXth century, back in the days of J. W. Gibbs [6]. The number of coexisting phases for systems with Nccomponents was studied by Mao et. al. in the article in [7]. They developed a new model consisting on taking the convex hull of the free energy landscape and dividing the convex hull in several regions, each of which presents a different number of coexisting phases. This algorithm can be easily checked for binary and ternary systems, but it applies to systems with an arbitrary number of components. In particular, this method was used to determine the number of coexisting phases for systems with 4 and 5 components under different conditions. Although this treatment can predict the number of coexisting phases, it cannot take into account the equilibrium microstructure of each of them. The topology of the coexisting phases can be determined from the surface energies using a graph algorithm developed by Mao et. al. in [8]. Another way to determine the morphology of the coexisting phases is via the phase filed methodology. The phase field method is an approach used to reproduce the evolution of material systems. It has been successfully used to reproduce many phenomena, such as solidification, spinodal decomposition and many others [9]. If combined with the treatment by Cahn and Hilliard to study conservative systems, this method can be used to study phase separation [10]. Material systems with several phases are idealized as containing bulk regions (phases) separated by sharp interfaces. From a mathematical point of view this is quite complex to model because of the abrupt change in concentration at sharp interfaces. In contrast, the phase field methodology considers diffuse interfaces, where order parameters vary smoothly from one phase to the other across interfaces. Interfaces can be considered arbitrarily small, and when the sharp interface limit applies (the width of the interface is small enough compared to the size of the bulk regions) interfaces can be approximated as being sharp. When studying phase separation, the results obtained by phase field theory and the ones from the energy density convexification algorithm developed by Mao et. al. [7] present a very good agreement in most of the cases. However, for some specific conditions, phase field theory does not reproduce correctly the number of coexisting phases predicted by the convexification algorithm. In such cases phase separation does not take place via spinodal decomposition. Instead, nucleation is the process by which the final equilibrium configuration is achieved. The problem comes from the phase field theory, which, in the way it was implemented by Mao et. al. in [7], only reproduces spinodal decomposition. To reproduce nucleation events stochastic thermal effects should be taken into account into the phase field methodology. However, this approximation is insufficient to study nucleation because the dynamics of these methods proceeds by waiting very long periods of time until the system experiences a transition. Hence, these cases must be studied apart using some other techniques which can simulate this mechanism in a reasonable time. From a numerical point of view, the problem of computing energy barriers and transition pathways can be very difficult, especially for high-dimensional systems. Many numerical schemes have been developed to do so [11], like the Nudge Elastic Band method (NEB) or the string method. In this thesis we try to apply the string method to reproduce nucleation in multicomponent systems. This algorithm has been proven to 5
Nucleation in multicomponent liquid mixtures 3. Classical nucleation theory In material science, nucleation is a very common phenomenon which does not only take place in multicomponent liquid mixtures, but also metals and alloys. For instance, in these two last cases it is the responsible of solidification and melting. These phenomena take place between crystallographic and non-crystallographic states. These transformations are crucial in many applications in industry and engineering, and there are still many aspects which are not fully understood, due to the complexity of the process. It also takes place when a liquid is cooled bellow its melting point. One may expect that in this case the liquid starts to solidify spontaneously. However, a more detailed view into the process shows that this is not the case. From a thermodynamical point of view, the solid phase starts to form in small droplets, and these droplets begin to grow until they occupy all the volume, giving rise to the solid phase. These droplets (which are usually called nuclei) are unstable until they reach a certain critical nucleus size. They can form inside the liquid phase, a process called homogeneous nucleation, or in the interfaces or near the walls or impurities of the material, a process called heterogeneous nucleation. All along the thesis we will refer to droplets and nuclei indistinctly, since they refer to the same concept. In this chapter, we discuss both types of nucleation from a thermodynamical point of view. This treatment is usually referred to as Classical Nucleation Theory (CNT) [31], and we will refer to it all along the thesis, since our goal is to compare the results from the string method with the expressions given by CNT. Moreover, a third process by which phase separation can take place is briefly commented, which is spinodal decomposition. 3.1 Homogeneous nucleation When a liquid is cooled bellow its melting point, TM, a driving force for solidification appears, ∆G=GL−GS. This is caused by a balance between enthalpy and entropy of each phase, such that bellow the melting point the solid phase has a lower free energy and hence it is the most stable phase. However, the solid phase does not form homogeneously all over the liquid phase immediately. Instead, small droplets of solid particles start to form inside the liquid phase, and then they grow until they occupy the whole volume of the material system. Figure 3: Homogeneous nucleation of a spherical droplet of radius r. Let’s consider a region in space which contains a liquid with volume V, and free energy G1. If this liquid 12
is at temperature ∆Tbellow TM, some particles may cluster together to form a small sphere of solid, which we call a nucleus. In this case the free energy of the system will be: G2=VSGS V+VLGL V+ASLγSL (4) where VSis the volume of the solid sphere, VLthe volume of the liquid, ASL is the solid/liquid interface area, GSand GLare the free energies per unit volume of solid and liquid, respectively, and γSL is the solid/liquid interface free energy. The free energy at the initial state is G1= (VS+VL)GL V. The difference in free energy is then: ∆Ghom =G2−G1=−VS∆GV+ASLγSL (5) where ∆GV=GS V−GL V. That is, there is a negative term because the solid phase has a lower free energy than the liquid phase, but there is also a positive term due to the creation of an interface between both phases. It can be shown that, for a given volume, the shape which minimizes the surface, and hence the interface free energy, is a sphere. Hence, if we assume that the nucleus has spherical shape with radius r, then the previous expression can also be written as: ∆Ghom =−4 3πr3∆GV+ 4πr2γSL (6) From the previous expression one can deduce that ∆Ghom is negative for large values of rand positive for rclose to zero. More precisely, the previous expression has a minimum at r= 0 and a maximum, which is the critical radius that we are looking for, at: r∗=2γSL ∆GV (7) ∆G∗ hom = ∆Ghom(r∗) = 16π(γSL)3 3(∆GV)2(8) This maximum acts as an energy barrier which does not allow the nucleus to grow. When the nucleus forms it has to grow up to a size which is greater than r∗, otherwise thermodynamical forces coming from the derivatives of the free energy will make it dilute again inside the liquid phase. The previous relations (Eqs. 6,7and 8) will be used to compare heterogeneous nucleation to homogeneous nucleation. If we also use the expression ∆GV=LV∆T TM, where LVis the latent heat of fusion per unit volume, and ∆T=TM−Tis the difference between the temperature of the droplet and the melting temperature, then we can rewrite the previous expressions as: r∗=2γSLTM LV 1 ∆Tand ∆G∗ hom =16π(γSL)3T2 M 3(LV)21 (∆T)2. Hence, if we increase the undercooling, the energy barrier decreases and it shifts to smaller rvalues. That is, if we decrease the temperature far bellow the melting temperature this phenomenon of growing nuclei will not be noticeable, since almost all nuclei will end up reaching the critical radius value and growing until they occupy the whole volume. This is the reason why, if we decrease the temperature far bellow the melting temperature, the liquid will solidify spontaneously, so that we can only have a liquid bellow its melting temperature for relatively small undercoolings. This maximum variations can vary depending on the material, and in some cases we can have very large deviations (for example, under suitable conditions, liquid nickel can be undercooled 250K bellow its melting temperature, which is 1728K, without solidifying). In practice, however, we would never be able to undercool a liquid that far beyond the melting temperature because heterogeneous nucleation would take place. 13
Nucleation in multicomponent liquid mixtures The same results can be derived in two dimensions following the same procedure. In that case the increase in free energy is given by: ∆Ghom =−4πr2∆GV+ 2πrγSL (9) The values for the critical nucleus and the energy barrier, which are the values which maximize the previous expression, are: r∗=γSL 2∆GV (10) ∆G∗ hom =πγ2 SL 2∆GV (11) 3.2 Heterogeneous nucleation Heterogeneous nucleation is a very common phenomenon and it is usually the one responsible for liquids to solidify because it takes place at smaller undercoolings than homogeneous nucleation. Unlike homogeneous nucleation, heterogeneous nucleation only takes place at crevices in mould walls, near impurities in the material or at interfaces between two phases. From the expressions for the critical radius and energy barrier in homogeneous nucleation we can deduce that one way to reduce these values for small undercoolings (∆T) would be reducing the value of the interface energy, γSL. This can be achieved if the embryo forms in contact with a mould wall or at an interface. The derivation of the increase in free energy can be reproduced both in two dimensions and in three dimensions. In our simulations we will study nucleation in two dimensional domains, so we are mostly interested in computing this quantity in these configurations. However, the results in all cases are provided. It can be checked that, both for nuclei forming in contact with a mould wall and at interfaces, the increase in free energy has the same expression as the homogeneous case (Eqs. 6and 9) multiplied by a factor which only depends on the contact angles at triple junctions. This factor is called the shape factor, and it measures the quantity by which heterogeneous nucleation is more favorable than homogeneous nucleation. The complete derivation of the expressions of the shape factors can be found in appendix A. We call ∆G2d hom(r)the expression for the increase in free energy in two dimensions for a droplet of radius r (see Eq. 9). Then, the increase in free energy in two dimensions is given, for nucleation at a mould wall (see Fig. 4) by: ∆G2d het(r,θ)=∆G2d hom(r)S1(θ)(12) S1(θ) = θ−sin θcos θ π(13) For nucleation at an interface the forming droplet consists on two circular caps, with radii r1and r2and contact angles θand φ(see Fig. 4for the definition of the parameters). The expression for the shape factor is: ∆G2d het(r1,θ,φ)=∆G2d hom(r1)S2(θ,φ)(14) 14
Figure 4: Heterogeneous nucleation in two different configurations. Upper figure: droplet in contact with a mould wall. Lower figure: droplet forming at an interface between two phases. S2(θ,φ) = θ+φsin2θ sin2φ−sin θ sin φsin (θ+φ) π(15) In three dimensions we have very similar expressions, but the relation for the shape factors change. The two configurations are the same as in two dimensions, and we can use the same notation (see Fig. 4thinking of spherical caps on planar interfaces. If we call ∆G3d hom(r)the expression for the increase in free energy in three dimensions for a droplet of radius r (see Eq. 6), for nucleation at a mould wall we have the following expressions: ∆G3d het(r,θ)=∆G3d hom(r)S1(θ)(16) S1(θ) = (2 + cosθ)(1 −cosθ)2 4(17) For nucleation at an interface we have: ∆G3d het(r1,θ,φ)=∆G3d hom(r1)S2(θ,φ)(18) S2(θ,φ) = (2 + cos θ)(1 −cos θ)2 4+(2 + cos φ)(1 −cos φ) sin3θ 4(1 + cos φ) sin φ(19) Observe that, with these expressions, we can also express the value of the critical radius and the energy barrier in terms of the corresponding values in homogeneous nucleation. If we name S(θ,φ)the shape factor 15
Nucleation in multicomponent liquid mixtures in each case (that is, S(θ,φ) = S1(θ)for nucleation at a mould wall and S(θ,φ) = S2(θ,φ)for nucleation at an interface), these relations are: r∗ het =r∗ hom (20) ∆G∗ het = ∆G∗ homS(θ,φ)(21) The factor S(θ,φ)is always smaller than one, so the energy barrier for heterogeneous nucleation is always smaller than for homogeneous nucleation. For instance, if we look at S1(θ)for the two dimensional case (see Fig. 5), for a value of the contact angle of θ= 10◦,S1(θ)≈10−4, so that the barrier to heterogeneous nucleation is ten thousand times smaller than in the homogeneous case. This is the reason why, in practice, heterogeneous nucleation is the leading process for solidification to start, and homogeneous nucleation is usually not present. Significantly small values of S1(θ)are obtained for several angles, including θ= 30◦ (S1(θ) = 0.02), and even for θ= 90◦we get S1(θ) = 0.5. It is interesting to notice that we can also recover the mould wall case from nucleation at interfaces if we consider φclose to 0 (this model fails to reproduce the values θ= 0 and φ= 0, but we can consider one of them to be very small). In that case, if the expression of S2(θ,φ)is rewritten in the limit φ= 0, we get: S2(θ,φ)→S1(θ), both in two dimensions and in three dimensions. When one of the angles is 0◦ (corresponding to the total wetting case), the nucleus should be modeled in a different way. Figure 5: S1(θ)in the two dimensional case, θin degrees. In this thesis, we will study homogeneous nucleation and heterogeneous nucleation at interfaces, but we will not consider nucleation on mould walls. However, we have seen that nucleation on the mould wall case is recovered from nucleation at interfaces in the limit where one of the interface energies is very small. 3.3 Spinodal decomposition There are some phase transformations which do not present energy barriers to nucleation, and therefore they are spontaneous processes. One of them is spinodal decomposition [31]. Consider the phase diagram of an alloy which has a miscibility gap (see Fig. 6). The alloy, which initially is at temperature T1and has a volume fraction X0(state αin Fig. 6, outside the miscibility gap), 16
Figure 6: Upper figure: phase diagram of an alloy which presents a miscibility gap. Lower figure: free energy density of the same alloy at temperature T2. Image taken from [31] (page 309). is quenched to a temperature T2, so that it enters the miscibility gap. At this temperature the alloy has a free energy G0. However, since the free energy curve at that point has negative curvature, this new state is unstable because small fluctuations in composition produce a decrease in the free energy. The alloy splits into two distinct phases which end up having specific concentrations which minimize the free energy of the system. We say that the alloy experiences spinodal decomposition. In particular, this happens whenever the free energy curve (or surface if we have a compound with more than two phases) has negative curvature. At temperature T2, the alloy lies between the two points in the free energy curve S1and S2, which correspond to the values of the concentration for which the curvature of the free energy is 0. The locus of these two points is known as the chemical spinodal, or to abbreviate the spinodal, if there is no confusion. Outside the chemical spinodal small fluctuations in concentration lead to an increase in the free energy, so the states there are metastable. The only way to decrease the free energy in these cases is by a process of nucleation and growth, which has associated an energy barrier. This region is also limited by another curve, the binodal. Outside the binodal the two phases cannot coexist, so phase separation cannot take place under any circumstances outside the binodal. There are some concepts which have not been taken into account in this discussion, which are coherency strain effects and interface energy effects. Although during the initial states of spinodal decomposition the interfaces are very diffuse, there is still an interface energy increase. This interface energy is directly linked to the gradient of the concentration at the interface. That’s why it is also called gradient energy. There is a contribution due to coherency strain energy, if the sizes of the atoms making up the solid solution are 17
Nucleation in multicomponent liquid mixtures different. These two terms add up to the total free energy of the alloy. This defines a new concept, which is known as the coherent spinodal. The coherent spinodal is the region where spinodal decomposition takes place taking into account these two effects. It always lies within the chemical spinodal, so its global effect is slightly reducing the spinodal region. Spinodal decomposition is a very common process which does not only take place in alloys with a stable miscibility gap in their phase diagram. It can also happen in systems in which GP zones form, among others. In this thesis, we are interested in these regions, since they are the regions were phase separation takes place spontaneously and no energy barriers are present. Determining whether we are inside the spinodal region is slightly more complex for ternary mixtures, since determining the curvature of the free energy landscape is not direct. This issue will be addressed in Section 5. 18
4. Nucleation in binary mixtures The most simple case of nucleation takes place in binary mixtures, since the only process that takes place in that case, if we do not consider nucleation at mould walls, is homogeneous nucleation. In that case, the two components are initially mixed together, but they split into two separate phases of space. This process can be led by spinodal decomposition or by nucleation, depending on the value of the concentration of the components. These two components evolve following the Cahn-Hilliard equation (also known as model B), which can reproduce phase separation. Moreover, Cahn-Hilliard equation preserves the total concentration of the components. Together with the Cahn-Hilliard equation we use the string method to calculate the critical states of nucleation and some related magnitudes, like the energy barrier or the radius of the critical droplets. In terms of solving the PDE, we iterate the Cahn-Hilliard equation following a finite differences approximation, together with an IMEX method for time integration. 4.1 Phase evolution 4.1.1 Phase field models Modeling material systems with several phases can be a quite challenging problem. From a mathematical perspective, these systems are ideally divided in bulk regions, each of which represents a certain phase, separated by sharp interfaces. The evolution of these phases and the separating interfaces is not an easy problem, since the geometry of each region changes with time. This situation is of special interest in mathematical physics (one example of this is the well-known Stefan’s problem [32]). Many models have been presented to study these systems, and their classification is out of the scope of this thesis [10]. In general, there are two types of models, which distinguish in the way they treat interfaces. The first ones are front-tracking approaches to interface motion [33,34]. In these models, the interface is represented explicitly using a Lagrangian mesh. These methods have the advantage that they can describe sharp interfaces and have a very high resolution and excellent accuracy. However, they are quite complex, especially when one is interested in remeshing the interface. That’s the reason why we do not use these methods in this thesis. The second type of models are the phase field models [10,35]. These models treat interfaces as being diffuse, and they are described using order parameters. The main advantage of these methods is their robustness, compared to front-tracking methods. The loss of sharp interfaces translates to significant boosts in the simplicity and robustness of the models. However, they have one disadvantage, and it is that the mesh has to be fine enough to resolve the interface (this issue is discussed more in detail along this section). When studying phase separation using phase field models, order parameters are defined. An order parameter is a measure of the structural order that distinguishes between phases. In a system with several components there is usually one order parameter for each of them. An order parameter is a variable, φifor component i, which takes values from 0 to 1 (or from -1 to 1), being 1 inside phase i and 0 outside. The interfaces vary smoothly between 0 and 1, and they are usually the most complex part to model. Consider a system with Nccomponents. We define one order parameter for each of them. Each order parameter is equal to 1 inside the region where the corresponding phase lies, and 0 outside. Hence, order parameters are a measure of the concentration of each component at each point in space. If we think of these order parameters as the percentage of component i at a given point, then the following condition 19
Nucleation in multicomponent liquid mixtures holds: Nc X i φi= 1 (22) If we use this condition we can eliminate one order parameter and express it as a function of the other Nc−1order parameters. This is especially useful for binary mixtures, since this is the simplest case and in that way we can just study one order parameter, φ(the other order parameter is 1−φ). Classically, two equations were presented to model phase separation [35]. The first one is the Allen-Cahn equation, also known as model A, which has the following expression: ∂φi ∂t=−Li δF δφi (23) In the above equation, φiare the order parameters for each phase and Liare related to the atomic mobilities. The derivative at the right hand side is the functional derivative of the total free energy with respect to φi, which is also the definition of the chemical potential for phase i, µi. This equation is non-conservative, that is, the average value of each order parameter is not conserved. The second equation is the Cahn-Hilliard equation, also known as model B, which has the following expression: ∂φi ∂t=∇·Mi∇δF δφi(24) In the above equation, Miis related to the atomic mobility and the derivative at the right hand side is the functional derivative of the total free energy with respect to the i’th order parameter. In that case the equation is conservative, so that the total concentration is preserved for each component. This is the evolution equation considered in this thesis. 4.1.2 The Cahn-Hilliard equation One of the advantages of the Cahn-Hilliard equation is that it preserves the total concentration of each of the species. To maintain the conservative property of the equation, it is usually combined with periodic boundary conditions or Neumann boundary conditions. All along the thesis these two boundary conditions are considered. Neumann boundary conditions are considered in one dimension and when polar or spherical coordinates are considered. Periodic boundary conditions are considered in cartesian coordinates in two dimensions, since in that way we can solve the Cahn-Hilliard equation in the Fourier space. Although we consider different boundary conditions, we expect to get similar results in both cases. For binary mixtures we assume that each of our order parameters takes values in (−1, 1). In that case, Eq. 22 is rewritten as: 2 X i φi= 0 (25) However, although the Cahn-Hilliard equation is conservative, the sum of the values of the order parameters at each point is not kept to 0. That is, the Cahn-Hilliard equation does not assure that Eq. 25 is satisfied at each point in the general case. To fulfill this condition an appropriate choice of the mobilities must be made. Otherwise, one of the order parameters must be computed from the other one. Since we are in a binary mixture, this means that we just need to evolve one order parameter, φ, which represents the 20
concentration of one of the components (the other one is simply −φ). Hence, we only have one equation for one of the components. The term at the right of the Cahn-Hilliard equation (Eq. 24) is the functional derivative of the total free energy with respect to the order parameter. The free energy is a Ginzburg-Landau type energy functional [13], which has the following expression: F(φ) = ZΩf0(φ) + W2 2|∇φ|2dΩ(26) where Ωis our domain. The gradient term takes into account the energy due to the interface (sharper interfaces have a greater energy), and the first term is the bulk free energy, which is related to the potential energy. The bulk free energy is often simplified to a double well potential. We consider that our order parameter takes values in (−1, 1), and it represents the surrounding phase (so the nucleating phase is represented by −φ). Hence, φ= 1 outside the nucleus and φ=−1inside it. We consider a bulk free energy with the following expression: f0(φ) = A(φ2−1)2 4, for some constant A which is determined by prescribing the value of the interface energy (see section 4.1.3). The division by 4 is left in the expression to simplify some expressions which appear later. Finally, the constant Wtakes into account the interaction strength between the two phases, and it is related to the interface width. We could also consider the bulk free energy for a regular solution, but for numerical purposes this simpler double well potential is enough. If the functional derivative is computed, assumin the mobility coefficient M= 1, we obtain the Cahn- Hilliard equation for this free energy functional: ∂φ ∂t= ∆ −W2∆φ+A(φ3−φ)(27) Observe that this is a fourth order PDE which also contains nonlinear terms. Hence, the equation will be very stiff and some appropriate numerical method will have to be considered to treat these issues. 4.1.3 Model parameters and physical constants An important goal in the study of binary mixtures is being able to reproduce the value of physical constants from the simulations. To do so, the model parameters cannot take arbitrary values, but they have to fulfill certain relations with respect to physical constants. Two magnitudes are of special interest: the interface energy and the interface width. To find the relation between model parameters and physical parameters we will use the derivation performed by Ryan Davis in his thesis [10], and we will apply it to our case. From a physical point of view, the interface energy between two phases, a and b, is the difference in free energy per unit area between the phase at one side of an interface (phase a) and the phase at the other side (phase b), assuming no other phase is present. In our model, the interface energy is obtained by considering two semi-infinite phases separated by an interface, and integrating the free energy of this configuration along an axis orthogonal to the surface. That is, if γis the interface energy (in the binary case there is only one interface energy, which corresponds to an interface separating the two phases), then: γ=Z+∞ −∞ f0(φ(x)) + W2 2|∇φ(x)|2dx (28) Observe that the previous expression only works when the bulk free energy is null at the bulk regions 21
Nucleation in multicomponent liquid mixtures 4.2.2 Simulations and results The main goal in these 1d simulations is to check that the method developed until now works well and in accordance to what we expect from classical nucleation theory. Observe that, according to classical nucleation theory, in one dimension there should be no energy barrier to phase separation for any value of the concentration. However, in our model, the bulk free energy density has a negative second derivative for concentrations under ¯ φ∗=√3 3≈0.577, which is the condition for which we enter the spinodal region. Hence, we expect the method to find that there is no barrier to nucleation for concentrations under this limit, but we may find energy barriers for concentrations over the limit concentration. These energy barriers do not have any physical meaning. They appear because classical nucleation theory assumes, in one dimension, that the contribution of interfaces to the energy is a constant and does not depend on the radius of the droplet (in two dimensions, for example, the interface term depends linearly on the radius because the greater the radius of the droplet the greater the length of the interface). However, in simulations interfaces are diffuse, so the contribution of the interface depends on the width of the interface and its position, so it is not a constant term. That’s the reason why critical radii should be comparable to the interface width. We want to check, then, that when we are in the spinodal region there is no barrier to nucleation, and that the physical parameters, which will be the inputs, are the ones obtained numerically from the results of the simulations. An observation before analyzing the results is that, although the Cahn-Hilliard equation does not have an analytical solution in the general case, we can find an analytical stationary solution in the one dimensional case. This solution is obtained by solving the Beltrami identity. This solution extends from −∞ to +∞, but it is also a good solution if we consider Neumann boundary conditions on a finite domain (in our case (0, 1)), and we can use it to compare our results. For the details of this solution see appendix B. We use this solution as a way to check that the string converged correctly. First of all a comparison between the forward Euler method and the implicit-explicit method (which from now on will be referred to as EM and IMEX for simplicity) is done. To do so, the same simulation is performed using each of the methods and the results are compared, as well as the number of iterations the program took to reach the stable string. The string is initialized by considering an initial constant profile of value ¯ φand a final profile consisting of a two phase system, the first of which has a value φ=−1 and the second one φ= 1, separated by a sharp interface. The intermediate images are declared as two phase regions as well, simulating the growth of the nucleus: the transition shifts to the right, and the value of the order parameter is always equal to −1inside the droplet. The concentration outside the droplet is determined by imposing that the total concentration at each image is the same. Table 1shows the results obtained considering Neumann boundary conditions for different values of the mean concentration both for the EM and the IMEX method. m= 50 images were considered along the string, the spatial coordinate was discretized in N= 100 nodes, values of δ= 0.05 and γ=δ/3were considered and different values of hand tol were considered for each of the methods. In all cases we get pretty similar results for the energy barriers (the largest difference happens for ¯ φ= 0.60, but it is because the energy barrier is very small, so more images on the string should be considered to resolve it better). However, there is a crucial difference: the IMEX method is faster than the EM by approximately one order of magnitude. If we check the total CPU time, we see that in all cases the EM ran for approximately 20 times the total CPU time for the IMEX method. We can also observe that the IMEX method can perform more iterations per second than the EM, although the results fluctuate a lot and no definitive conclusions can be derived from it. In principle both methods are comparable in terms of efficiency, since the matrix cin the IMEX method can be computed beforehand and is constant with time, 28
Mean concentration Time integration method Energy barrier Number of iterations Total CPU time (seconds) Iterations per second 0.55 EM 0.00 432039 1649.77 261.88 IMEX 0.00 18604 57.88 278.01 0.60 EM 1.33 ·10−5357021 1328.15 268.81 IMEX 1.09 ·10−518054 57.88 278.01 0.65 EM 1.59 ·10−4277762 969.96 286.36 IMEX 1.55 ·10−411919 39.10 298.35 0.70 EM 5.86 ·10−4224842 794.22 283.10 IMEX 5.80 ·10−417367 58.21 298.95 0.75 EM 1.40 ·10−3166724 598.49 278.57 IMEX 1.40 ·10−38795 29.42 296.28 0.80 EM 2.76 ·10−3126394 486.46 259.82 IMEX 2.75 ·10−317842 60.22 321.42 Table 1: Comparison between the Euler method and implicit-explicit method for Neumann boundary conditions. Figure 8: Final string concentration profiles and energy along the string for the two time integration methods and a mean concentration of ¯ φ= 0.70, for Neumann boundary conditions. Left: EM. Right: IMEX. so we only compute it at the beginning of the method. Hence, in both cases each iteration consists basically on performing a matrix multiplication. 29
Nucleation in multicomponent liquid mixtures These results are not very precise due to two factors. The first one is that a time step of h= 10−5 was considered for the IMEX method, but for the EM a time step of h= 10−7was taken for the method to converge (as discussed before), since for larger time steps the method diverged. The second one is that the tolerance considered in both cases is different. That is because, since the EM requires a smaller time step, the error at each iteration is always smaller than in the IMEX method. Moreover, the error does not scale linearly with h, so defining the error normalized by hdoes not solve this issue. Hence, a tolerance was qualitatively chosen such that the final concentration profile was close to the theoretical one (the one coming from solving the Beltrami identity, see appendix B). We chose tol = 10−9for the EM and tol = 10−8for the IMEX method. The final concentration profiles and the energy along the string for a concentration of ¯ φ= 0.70 are plotted in Fig. 8. In both cases the final states are really similar to the analytical solution of the Cahn-Hilliard equation, although the IMEX is apparently a bit better. We can also check that even when we find a critical nucleus its radius is comparable to the interface width, as expected. The conclusion is that, since the time step for the EM is smaller, the program needs to run for longer periods of time, so the IMEX method is the best option for computational efficiency. Moreover, the IMEX method is better to treat the stiffness of the problem. With respect to the spinodal region, Table 1shows a result which we wanted to check: the string method only finds an energy barrier outside the spinodal region, which is the region with a value of the mean concentration greater than ¯ φ∗=1 √3≈0.577. This is consistent with the fact that for a concentration of ¯ φ= 0.55 there is no energy barrier. Moreover, the energy barrier is very small for values close to the spinodal, something we already expected, since as we approach the spinodal the energy barrier tends to disappear. Another important aspect which has to be taken into account when studying convergence is the initial string we choose. Depending on how far away from the final solution our initial string is the program requires a different number of iterations to converge, and sometimes it may not converge at all, if the initial string is poorly chosen. In particular, we are interested in reducing as much as possible the total number of iterations, so the initial string is desired to be close to the final one. This issue will be especially important in higher dimensions. Figure 9: Two possible initial strings. Left: Linear interpolation. Right: The nucleus forms and grows. In one dimension we already know the shape of the initial and final states at equilibrium, corresponding to the mixed state and separated state, respectively. The problem comes when defining the intermediate 30
images of the string. One way to do it is by simply linearly interpolating between the initial and the final state (see Fig. 9, left plot). This initialization, although quite simple, is not very realistic from a physical point of view. When a phase nucleates, first of all the nucleus is formed and then it grows. Hence, the second option is to consider that the intermediate images have a sharp interface which shifts from left to right, but in all of them the concentration near x= 0 is -1 (see Fig. 9, right plot). The concentration outside the droplet in the second case is fixed imposing that the mean concentration of each profile has a prescribed value (¯ φ). As an example of the problems which can take place for different initial strings consider a concentration profile with ¯ φ= 0.7,N= 100,m= 50,δ= 0.05 and a time step of h= 10−6(with a tolerance of tol = 10−8). We run the program with the two initial strings described above using the IMEX method (see Fig. 9). In the second case (nucleus forms and grows), the program converges after 22484 iterations, reaching the expected profile according to nucleation theory (formation of the nucleus and growth). However, in the first case (linear interpolation), the program requires 77788 iterations. Moreover, the error starts decreasing, but after over 10000 iterations it starts to oscillate until the string is close enough to the final one. Only then the error starts to decrease monotonously. This is a very important issue to take into account, especially in higher dimensions, because this bad behaviour of the error can imply that we consider that we have reached a solution which actually is not. Figure 10: Initial and final concentration profiles when some noise is added to the initial constant concentration profile. One more test can be performed related to the spinodal region. Since for concentrations bellow ¯ φ∗ there is no energy barrier, the constant concentration profile is an unstable equilibrium state. That is, if a small perturbation is added to the initial constant profile of the string, the initial state should converge to the separated state instead of the mixed state. This can be checked considering a concentration profile with average concentration ¯ φ= 0.5, with random gaussian noise with a variance of 10−3added to the initial state. This state was evolved using the Cahn-Hilliard equation (here we do not use the whole string method, since we are only interested in analyzing the behaviour of the initial state). The convergence was quite slow, but we observed that the initial state converged to the separated state. Both the initial and the final states are plotted in Fig. 10. Observe that the final profile has a different shape than in Fig. 8, since phase separation can occur in any part of the domain. Consider now periodic boundary conditions at both ends. In that case phase separation can take part anywhere in the domain, and we consider that it occurs at x= 0.5. Hence, the initial state of the string at 31
Nucleation in multicomponent liquid mixtures equilibrium has the same shape as in the Neumann boundary case (constant profile), and the final one has a well at x= 0.5 with value -1 inside the well and value 1 outside. The intermediate images on the string are initially defined as in the Neumann case: the droplet forms and then it grows, all of them with sharp interfaces which are smoothed by the string method. With respect to the spinodal region, we expect to observe the same behaviour of the solution as in the Neumann case. We simulate phase separation using both the EM and the IMEX method. Table 2shows the results we got for several values of the mean concentration. The rest of the parameters were: m= 50, N= 100,δ= 0.05,γ=δ/3and different values of hand tol for each of the methods. Mean concentration Time integration method Energy barrier Number of iterations Total CPU time (seconds) Iterations per second 0.55 EM 0.00 300471 753.24 297.16 IMEX 0.00 9490 39.95 308.94 0.60 EM 4.39 ·10−5223830 531.15 320.69 IMEX 3.77 ·10−512342 22.64 297.48 0.65 EM 4.53 ·10−4170336 616.26 301.22 IMEX 4.40 ·10−46735 32.24 252.70 0.70 EM 1.51 ·10−3185631 652.35 266.00 IMEX 1.50 ·10−38147 26.93 347.01 0.75 EM 3.53 ·10−3173526 541.88 266.78 IMEX 3.53 ·10−39345 38.99 344.22 0.80 EM 6.93 ·10−3144565 1130.9 265.69 IMEX 6.93 ·10−313421 36.17 262.37 Table 2: Comparison between EM and IMEX method for periodic boundary conditions. Figure 11: Final string concentration profiles and energy along the string for the two time integration methods and a mean concentration of ¯ φ= 0.70, for periodic boundary conditions. Left: EM. Right: IMEX. We get similar results to the Neumann boundary conditions in terms of convergence (same order of magnitude in the number of iterations and the total CPU time). We also observe that the number of iterations per second oscillates a lot, and in some cases the IMEX method performs more iterations per second than the EM, while in some cases it is the opposite. This is not rare, since the CPU time can fluctuate a lot when running the same program several times, but we cannot make any conclusion on whether the IMEX method is less expensive (in terms of the time it requires to perform one iteration). We also find that bellow the critical value of the concentration ¯ φ∗=1 √3we enter the spinodal region and there is no barrier to nucleation, as expected. The final concentration profiles along the string and the 32
energy along the string for a value of ¯ φ= 0.7 are plotted in Fig. 11. Hence, the IMEX method performs better than the EM both for Neumann and periodic boundary conditions, as expected. The conclusions are that the string method performs well when finding transition pathways, from a qualitative point of view. Moreover, the IMEX method is quite efficient to solve the ODEs. Hence, from now on we will only use the IMEX method, since it performs better to iterate the Cahn-Hilliard equation, and it is quite faster than the EM. 4.3 Two dimensional case: Polar coordinates The two dimensional case is of much more interest than the one dimensional, since classical nucleation theory predicts that critical nuclei appear during phase separation. Hence, we can compare the results we get from simulations with classical results to check with a greater accuracy the behaviour of the string method. The main disadvantage is that in this case we do not have an analytical expression for the solution to the Cahn-Hilliard equation. Since in binary mixtures nuclei have roughly circular shape we can simplify the problem very much. In particular, we can simply simulate the radial profile of the critical nucleus, working with polar coordinates, since the angular component is expected to be constant. To check that this is true, two types of simulations are performed: one in two dimensions in cartesian coordinates and another one in one dimension using polar coordinates. In this section, Neumann boundary conditions will be assumed in all the boundary. We have seen that the method performs well in one dimension for both Neumann and periodic boundary conditions, so the first case will be enough to compare to classical nucleation theory. 4.3.1 Numerical implementation First of all we simulate phase separation in polar coordinates. Our coordinate is the radial component of the nucleus (we assume cylindrical symmetry), and it takes the values r∈(0, 1) (we simulate a circular domain of radius 1). We consider Neumann boundary conditions at both r= 0 and r= 1 (in the first case, this is a common assumption to avoid problems when computing the Laplacian at r= 0). The expression of the Laplacian of a two dimensional function φ(r,θ)in polar coordinates is the following: ∆φ=1 r ∂ ∂rr∂φ ∂r+1 r2 ∂2φ ∂θ2=1 r ∂φ ∂r+∂2φ ∂r2+1 r2 ∂2φ ∂θ2(52) Since in our case we are assuming we have cylindrical symmetry, the last term is zero because the second derivative with respect to the angle is zero. With this definition of the Laplacian, the Cahn-Hilliard equation in two dimensions (see Eq. 27) is: ∂φ ∂t= ∆ −W2∆φ+A(φ3−φ)(53) The equation is discretized in the same way as the one dimensional equation, using finite differences. The first order derivative has the same expression as in one dimension and the Laplacian has the following expression: ∆φi=1 ri ∂φi ∂r+∂2φi ∂r2≈1 ri φi+1 −φi−1 2dr +φi+1 −2φi+φi−1 dr2 33
Nucleation in multicomponent liquid mixtures However, we must take special care for the r= 0 value. In the previous expression, if we take r= 0 we have a division by zero, which leads to values tending to infinity near the origin unless Neumann boundary conditions are considered at r= 0, in which case we have an indetermination. The simplest way to solve this problem is considering the central node at each interval. That is, instead of considering the spatial discretization nodes r∈ {r0= 0, r1=dr,r2= 2dr, ..., rN−2= 1 −dr,rN−1= 1}, where dr = 1/(N−1), considering r∈ {r0=dr/2, r1= 3dr/2...., rN−1= 1 −dr/2}. and dr = 1/N. In that way we avoid computing the solution at r= 0, which is a source of problems. To impose Neumann boundary conditions we create two artificial nodes, r−1=−dr/2and rN= 1+dr/2. If we want to compute the derivative of a function φat r= 0 we use: ∂φ ∂r(r= 0) = φ(r0)−φ(r−1) dr = 0 Hence, we must impose φ−1=φ0, and similarly φN=φN−1. These are the same expressions we used in one dimension, although in one dimension it is not necessary to consider centered nodes because the Laplacian does not present any problem at x= 0. However, for cohesion in the notation, we use the same discretization in both cases. We can thus write the spatial first order derivative with respect to r and the Laplacian in matricial forms in the same way we did it in one dimension. If we use the same notation, it can be showed that the expressions are: D=N 2 −1 1 0 0 ... 0 0 0 −1 0 1 0 ... 0 0 0 0−1 0 1 ... 0 0 0 . . .. . .. . .. . ..... . .. . .. . . 0 0 0 0 ... −101 0 0 0 0 ... 0 −1 1 (54) L=N2 −2 2 0 0 ... 0 0 0 2/3−2 4/3 0 ... 0 0 0 0 4/5−2 6/5 ... 0 0 0 . . .. . .. . .. . ..... . .. . .. . . 0 0 0 0 ... 1−2dr 1−3dr/2−21−dr 1−3dr/2 0 0 0 0 ... 0 1−dr 1−dr/2−1+dr 1−dr/2 (55) We can write the Cahn-Hilliard equation discretized in space. Considering φ= (φ0,φ1...., φN−1)the vector solution, the equation has the following expression: ∂φ ∂t=L−W2Lφ+A(φ3−φ)(56) To solve the time derivatives we use the IMEX method. As in one dimension the final expression for φn+1 is: φn+1 = (I+hW 2L2)−1(φn+hAL((φn)3−φn)) (57) This expression is the same as in the one dimensional case, but with a different expression for the Laplacian. Moreover, the values of the constants Aand W=λ2Aare the same as in one dimension. This 34
happens because the definition of the interface energy and interface width are the same, they only depend on the energy functional, which is the same in both cases. Hence, the relation between model parameters and physical magnitudes is the same, and we can use the same expressions discussed in Section 4.1.3. 4.3.2 Simulations and results The first thing we are interested in testing is whether the energy barrier disappears inside the spinodal region or not, as in one dimension. The limit value of the concentration under which we do not expect nucleation to take place is ¯ φ∗=1 √3≈0.577. Table 3shows the results of simulating phase separation for several values of the mean concentration. The values of the rest of the parameters are: N= 100,m= 50,δ= 0.05, γ=δ/3,h= 10−5and a tolerance of tol = 10−8. Mean concentration Energy barrier 0.55 0.00 0.56 0.00 0.57 0.00 0.58 0.00 0.59 2.49 ·10−6 0.60 8.41 ·10−6 0.61 1.44 ·10−5 0.62 2.12 ·10−5 0.63 3.06 ·10−5 Table 3: Energy barrier for different values of the mean concentration We see that the energy barrier appears for a value of the mean concentration ¯ φ= 0.59. We expected the energy barrier to appear at ¯ φ= 0.58, but that’s not the case. The reason why this happens is that the energy barrier for ¯ φ= 0.58 is very small, since the energy barrier tends to zero as we approach the spinodal region. Considering more images on the string or smaller tolerances are possible solutions to get the exact results. However, neglecting this fact, the results are consistent with what we expected. Moreover, the energy barrier increases with the mean concentration, a result also according to classical nucleation theory. Our next goal is to compare the results from simulations to classical nucleation theory. The first thing we need to consider is under which assumptions phase field dynamics are good approximations of classical nucleation theory. The main problem comes from the diffuse interface approximation of the phase field method. Classical nucleation theory considers interfaces to be sharp, so to get comparable results we must be in this regime. We only get this when the critical nucleus size is much larger than the interface width (a reasonable approximation is that the interface width is around ten times smaller than the critical nucleus radius). However, this poses a problem in implementation, since the interface width is determined by the mesh resolution. If we want to decrease its value to very small values we have to discretize using more nodes, which in turn increases the complexity of the problem quadratically (since we compute matrices of size N·N). There is a second problem. In classical nucleation theory, the order parameter takes a value of -1 inside the critical nucleus and 1 outside. However, experimentally we found that this only happens for very high values of the mean concentration. If the concentration is not high enough the critical nucleus profile does not reach the value -1 at r= 0, it only reaches some intermediate value. For example, for a range of values of the mean concentration from ¯ φ= 0.7 to ¯ φ= 0.85 and δ= 0.05,γ=δ/3,N= 100,m= 50, 35
Nucleation in multicomponent liquid mixtures h= 10−5and tol = 10−7, we get the concentration profiles in Fig. 12. The minimum value of the critical concentration profile (r= 0) is higher than −1in all cases, so the profile is not the one predicted by classical nucleation theory. Hence, we need to consider very large values of the concentration, to be closer to the binodal. This is an additional problem because for high mean concentrations the final state has a small radius, and so we will need to consider more nodes again to resolve properly the string. Figure 12: Final string profile for several mean concentrations. Upper left: ¯ φ= 0.7. Upper right: ¯ φ= 0.75. Lower left: ¯ φ= 0.8. Lower right: ¯ φ= 0.85. To compute classical nucleation results we use the equations derived in Section 3.1 (Eqs. 7and 8): r∗=γSL 2∆GV ∆G∗ hom =πγ2 SL 2∆GV In these two expressions, the value of γSL is known (it is an input for our model), and we just have to determine the relation between ∆GVand the model parameters. We calculate ∆GVas the difference in chemical potential between the mixed phase and the separated phase. The definition of the chemical potential is quite ambiguous and still under debate [38]. For our purposes, we define the chemical potential as the functional derivative of the free energy with respect to the mean concentration. With this definition 36
∆GVhas the correct dependency on ¯ φ, as we will see in our results. However, numerical results may not be comparable directly with theoretical results because they will differ by some factor. If we write f0as the bulk free energy and fIas the interface free energy, we get the following expression: µ=δf δφ =µ0+µI=∂f0 ∂φ −∇·∂fI ∂(∇φ)=A(φ3−φ)−λ2A∇2φ(58) The term ∆GVis then: ∆GV=µf−µ0, where µ0is the chemical potential of the liquid phase (in the mixed state) and µfis the chemical potential of the nucleated phase. Since we consider that both the liquid and the nucleated phase are bulk regions with constant concentrations, the gradient term does not contribute to the computation of the chemical potential. Moreover, in the nucleated phase the value of the order parameter is φ=−1, so the chemical potential of this region is null. Hence, the chemical potential difference for a system with mean concentration ¯ φis equal to: ∆GV=A(¯ φ−¯ φ3). Observe that this term evolves linearly with the mean concentration when we are close to the binodal (¯ φ→1), so we can predict the theoretical dependence of the energy barrier and critical radius with respect to the concentration. Experimentally we found that the critical nucleus only reaches the -1 value for concentrations above ¯ φ= 0.9 (although this quantity also depends on the value of the interface width). However, for this value we are still not in the sharp interface approximation. To get to the sharp interface limit we must consider concentrations above ¯ φ= 0.985, and in these cases consider very small interface widths. We need to decrease the interface width because the critical radius scales with δ. If we go too close to the binodal the critical radius may become so large that it may be larger than the final droplet radius. The way to avoid that is considering small interface widths. More precisely, an interface width of δ= 1.5·10−3was considered, and the mesh was discretized using N= 2000 nodes, to have enough resolution (the mesh size must be at least 3 times smaller than the interface width so as to resolve well the interfaces). There is a strong limitation in the possible values of the mean concentration. On one hand, we cannot go bellow the limit ¯ φ= 0.985, or otherwise the sharp interface approximation is not satisfied. However, for concentrations too close to ¯ φ= 1 the final droplet radius becomes smaller than the critical radius and the final state end up converging to the mixed state. Table 4shows the results obtained for a range of values of the mean concentration for which the energy barrier was achieved. The rest of the values of the simulations are m= 50,h= 10−7 and a constant interface energy of γ= 10−2. To make the program more efficient, an improvement was added and the string was reparametrized every ns= 10 steps. When the string is reparametrized every ns steps the error is defined as the difference between the string after reparametrization and the string after the previous reparametrization step. To make the error consistent with the one we had been computing up to now the error is also normalized by ns(since nsiterations are performed between the previous string and the current one). Mean concentration Critical image Energy barrier Critical radius Theoretical energy barrier Theoretical critical radius 0.988 7 2.96 ·10−41.07 ·10−23.33 ·10−41.06 ·10−2 0.989 8 3.24 ·10−41.18 ·10−23.63 ·10−41.16 ·10−2 0.990 9 3.56 ·10−41.26 ·10−23.99 ·10−41.27 ·10−2 0.991 10 3.99 ·10−41.33 ·10−24.42 ·10−41.41 ·10−2 0.992 13 4.53 ·10−41.63 ·10−24.97 ·10−41.58 ·10−2 0.993 16 5.27 ·10−41.87 ·10−25.67 ·10−41.80 ·10−2 Table 4: Energy barrier and critical nucleus radius for different values of the mean concentration. In Table 4the critical radius was obtained by interpolating the critical nucleus profile to the radial value for which the order parameter is 0. The value of the critical image is the image on the string corresponding 37
Nucleation in multicomponent liquid mixtures Mean concentration Critical image Energy barrier Critical radius Energy barrier polar Critical radius polar 0.920 6 4.13 ·10−42.64 ·10−24.16 ·10−42.25 ·10−2 0.925 7 4.45 ·10−42.77 ·10−24.47 ·10−42.51 ·10−2 0.930 9 4.84 ·10−43.11 ·10−24.82 ·10−42.42 ·10−2 0.935 11 5.28 ·10−43.33 ·10−25.22 ·10−42.64 ·10−2 0.940 14 5.83 ·10−43.62 ·10−25.70 ·10−42.83 ·10−2 0.945 19 6.51 ·10−44.04 ·10−26.25 ·10−43.29 ·10−2 Table 6: Energy barrier and critical nucleus radius for different values of the mean concentration, compared to the values obtained in the polar case. state we see that the value of the radius changes considerably. For example, for ¯ φ= 0.92, the droplet radius at image 5 is r= 2.34·10−2and the radius at image 7 is r= 2.91 ·10−2. Hence, the real critical radius lies within the interval r∈(2.34 ·10−2, 2.91 ·10−2). If the same test is done in polar coordinates we get that the droplet lies within the interval r∈(1.9 ·10−2, 2.63 ·10−2). Observe that both intervals are quite large and they superpose, which means that the value of the critical radius does not have a lot of precision, and that perhaps with more accuracy the values would actually match. One way to solve this issue would be to increase the value of m, but this is quite complicated in the cartesian case, since the program is already quite slow. Another way to determine the critical radius would be to interpolate its value (for instance using splines). Fig. 18 shows the radial profiles both in cartesian coordinates and in polar coordinates. We see that the profiles are very close to each other, although the cartesian case has a slightly larger radius. Figure 17: Concentration profiles for a droplet in 2d cartesian coordinates. Left: Initial state. Center: Critical state. Right: Final state. In the cartesian case we could only increase the mean concentration up to a value of ¯ φ= 0.945, in contrast to the polar case, where we could consider mean concentrations of ¯ φ= 0.96 for the same value of the interface width. This happens because for larger concentrations the final droplet size is smaller than the critical nucleus, so the final state at the begging of the string method tends to dilute again, returning to the mixed state, instead of converging to the separated state. This can be analyzed in the following way: for a given value of the mean concentration, the radius of the final droplet is fixed and has the following expression: r=q1−¯ φ 2π. For a value of the mean concentration of ¯ φ= 0.95 we already have r= 8.92·10−2, which is quite close to the critical radius. For a value of ¯ φ= 0.96,r= 7.98 ·10−2, and the theoretical critical radius is r∗= 4.04 ·10−2. However, as we can see in Table 6, the critical radius end up being larger in simulations, so most likely the final droplet has a smaller radius than the critical one. Observe that the domain is different in polar coordinates than in cartesian coordinates. In polar co- 44
Figure 18: Critical profiles for cartesian and polar coordinates, ¯ φ= 0.93. ordinates it is a circular domain of radius 1, while in cartesian coordinates it is a rectangular domain of size 1×1. This does not affect the value of the critical radius, which only depends on the value of the mean concentration and the interface width. The energy barrier is only slightly affected by this, since the difference in the size of the domain affects the term of the free energy coming from the bulk surrounding phase. However, as we commented before, this effect is very small when computing the energy barrier, since the initial state and the critical state have roughly the same concentration outside the droplet. A more exhaustive analysis leads us to the relation between the free energy in polar and cartesian coordinates. For images close to the mixed state, the total energy in the cartesian case will be smaller than the one in polar coordinates by a factor of π, which is the size of the domain. However, for states close to the separated state, this factor will be of the order of √π, since the only term which contributes to the energy is the interface, and the length of the interface evolves linearly with the radius of the droplet (and, for a fixed mean concentration, the radius of the droplet in cartesian coordinates is smaller than the radius of the droplet in polar coordinates by a factor of √π). These relations can be checked in Fig. 19. The initial state in cartesian coordinates has an energy of 4.563 ·10−3, while the initial state in polar coordinates has an energy of 1.435 ·10−2. The ratio between these two energies (the polar divided by the cartesian) is 3.145 ≈π, as expected. For the final states, the cartesian state has an energy of 3.97 ·10−3, while the polar final state has an energy of 7.341 ·10−3. The ratio between these two energies is 1.849, while √π≈1.772. Hence, in both cases the results are consistent. The final effect is that the energy curve in cartesian coordinates will look shifted form the one in polar coordinates, and hence the maximum of the curve will shift to the right as well. This is why the critical images along the string in the cartesian case are greater than the ones in the polar case. The way to avoid having droplets with a size smaller than the critical size is to decrease the interface width. In that way the critical radii are reduced, since they scale with δ(see Eq. 4.3.2), and one can consider higher concentrations. However, in practice, this is very complicated to achieve, since the mesh cannot be discretized using much more nodes, and we are already considering the smallest possible value 45
Nucleation in multicomponent liquid mixtures Figure 19: Energy along the string for a concentration of ¯ φ= 0.93. Left: cartesian coordinates. Right: polar coordinates. for the interface width for a fixed value of N. The conclusion is that the approximation of evolving simply the radial profile is correct, despite the differences in the energy barriers and critical nuclei obtained. It would also be interesting to consider more images along the string if possible, to obtain more accurate values, especially for the critical radius. 4.5 Three dimensional case: Spherical coordinates The last case we consider for binary mixtures is the three dimensional case assuming spherical symmetry. This assumption is reasonable, since nuclei forming inside phases have roughly spherical shape. In this case, we simply consider the radial profiles to simplify the simulations. The general cartesian case can also be performed to compare results. However, due to the complexity of implementation, it is not considered in this thesis. 4.5.1 Numerical implementation The only difference of the three dimensional spherical case with respect to the two dimensional polar case is the expression of the Laplacian. In spherical coordinates, the Laplacian of a function φ(r,θ,ϕ)has the following expression (assuming that φonly depends on the radius, φ=φ(r)): ∆φ=1 r2 ∂ ∂rr2∂φ ∂r+1 r2sin θ ∂ ∂θ sin θ∂φ ∂θ +1 r2sin2θ ∂2φ ∂ϕ2=1 r2 ∂ ∂rr2∂φ ∂r(64) Since we have the same problem for r= 0 as in polar coordinates, we consider our spatial nodes to range from dr/2to 1−dr/2, where dr = 1/N. In this case, the discretized Laplacian at an interior node i is: ∆φi=2 ri φi+1 −φi−1 2dr +φi+1 −2φi+φi−1 dr2(65) 46
We get a very similar expression to the two dimensional case, except for a factor 2 in the first term. As for the boundary conditions, we consider Neumann boundary conditions both at r= 0 and r= 1. This translates into the creation of two fictitious nodes which satisfy: φ0=φ−1and φN=φN−1(with these two nodes Eq. 65 can be used for all the nodes). We can write the Laplacian in matricial form: L=N2 −3 3 0 0 ... 0 0 0 1/3−2 5/3 0 ... 0 0 0 0 3/5−2 7/5 ... 0 0 0 . . .. . .. . .. . ..... . .. . .. . . 0 0 0 0 ... 3−2dr 1−2dr −21−2dr 1−2dr 0 0 0 0 ... 0 2−3dr 2−dr −2+3dr 2−dr (66) Finally, the rest of the parameters of the model are defined in the same way as in the polar case. Moreover, the relation between model parameters and physical magnitudes is the same as in the one dimensional case and two dimensional case. 4.5.2 Simulations and results The goal of the simulations is to check whether the phase field method reproduces correctly classical nucleation theory results or not. To do so, we have to get to the sharp interface limit and compare the relation between energy barriers and critical radii with the values given by their classical expressions. The expressions for the energy barrier and critical nucleus in spherical coordinates in classical nucleation theory are given in Section 4(Eqs. 7and 8). These two expressions have a term, ∆GV, which has to be calculated from our parameters. In the same way as in the polar case, we compute it as the difference in chemical potential between the mixed state and the separated state (Eq. 58). From this expression, we can already deduce that, since the chemical potential will evolve linearly with 1/(1 −¯ φ), the energy barrier will depend quadratically on this quantity and the critical radius will depend linearly on it. As in the polar case, we have to reach very high values of the concentration and very small values of the interface width to reach the sharp interface limit. However, the values can be a bit smaller than in the polar case. More precisely, we considered mean concentrations ranging from ¯ φ= 0.98 to ¯ φ= 0.99. We performed the simulations using the IMEX method and reparametrizing the string every ns= 10 steps. Table 7shows the results for the energy barriers and the critical radii for the following parameters: N= 1000,m= 50, δ= 4 ·10−3,γ= 0.01,h= 10−5and tol = 2 ·10−8. Mean concentration Critical image Energy barrier Critical radius Theoretical energy barrier Theoretical critical radius 0.980 8 4.54 ·10−53.44 ·10−21.98 ·10−46.87 ·10−2 0.981 8 5.27 ·10−53.38 ·10−22.18 ·10−47.22 ·10−2 0.982 9 5.63 ·10−53.73 ·10−22.43 ·10−47.61 ·10−2 0.983 9 6.32 ·10−53.68 ·10−22.71 ·10−48.05 ·10−2 0.984 10 6.94 ·10−54.00 ·10−23.05 ·10−48.54 ·10−2 0.985 11 7.86 ·10−54.29 ·10−23.46 ·10−49.09 ·10−2 0.986 13 9.17 ·10−54.97 ·10−23.96 ·10−49.73 ·10−2 0.987 14 1.05 ·10−45.21 ·10−24.58 ·10−41.05 ·10−1 0.988 16 1.25 ·10−45.81 ·10−25.36 ·10−41.13 ·10−1 0.989 17 1.53 ·10−45.97 ·10−26.36 ·10−41.23 ·10−1 Table 7: Energy barrier and critical nucleus radius for different values of the mean concentration. 47
Nucleation in multicomponent liquid mixtures Figure 20: Concentration profiles and energy along the string Fig. 20 shows the concentration profiles and energy along the string for a value of the mean concentration of ¯ φ= 0.985. Observe that the final state of the string has not converged to the correct solution, since that state should be the one with the lowest energy (the metastable state). This happens because convergence is very slow, and smaller tolerances should be considered for the final state to converge. Another option is to take as the final state the image on the string with the minimum energy, instead of the last image of the string. However, we do not care about the final state, since we only need to know the initial state and the critical one. The results we obtained for the energy barrier are already good enough to be compared to classical nucleation theory. With respect to the comparison between numerical values, observe in the first place that both the energy barriers and critical radii increase when we get closer to the binodal, as we expected. However, in that case the numerical results do not directly match the theoretical ones. In particular, numerical energy barriers are roughly 4 times smaller than theoretical ones, and numerical critical radii are roughly 2 times smaller than the theoretical ones. The same reasons as in the two dimensional polar case can explain these mismatches (see Section 4.4.2). On the one hand, is that the formula we derived for the interface energy in relation to the model parameters assumes that we have flat interfaces separating two phases. However, in that case we have curved surfaces, so the actual value of the interface width is different. Another possible explanation are the Neumann boundary conditions, which differ from the assumptions of classical nucleation theory, and the contribution in the computation of the energy of the surrounding phase. Finally, differences can be caused by numerical errors, or by considering too few images on the string. Although all the previous comments can be responsible for the difference between theoretical values and numerical ones, none of them seem to explain the large factors that relate numerical values to theoretical ones. What is more surprising is that results in two dimensions match very well, but in three dimensions they don’t. None of the previous arguments is restricted to the three dimensional case, all of them apply both to two dimensions and three dimensions. Some of them may have a larger impact in three dimensions than in two dimensions, but it is unlikely that they are responsible for this large deviation between theory and simulations. A more exhaustive analysis should be performed to determine what is the source of these errors. To compare numerical results to theoretical results, in the same way that we did in the polar case, we 48
assume that the relation both for the energy barrier and the critical radius is of the form: ∆G∗=K1(1−¯ φ)a1 and r∗=K2(1 −¯ φ)a2, where K1,K2,a1and a2are constants to be determined . The way to determine these constants is via a log-log plot. Figure 21: Energy barrier and critical radius comparison between numerical results and theoretical results for several values of the mean concentration. Fig. 21 shows the log-log plots for the energy barrier and critical radius. From these plots we can calculate the slope of the trend line, obtained from the data using least squares approximation. We get the following values for our parameters: a1=−1.9685 ≈ −2and a2=−1.0523 ≈ −1, which are in agreement with the theoretical values. Especially for the critical radius we see that there are some oscillations with respect to the ideal linear behaviour. However, this happens for the lowest values of mean concentrations, which may mean that the critical radius size is still comparable to the interface width, or that more images on the string should be considered to determine the value of the critical radius with more precision. In a similar way as in the polar case, we are able to reproduce the correct dependence even if we are not in the sharp interface limit. We can consider smaller values of the mean concentration and still get the linear dependence in the critical radius and quadratic dependence in the energy barrier. The following table shows some the values obtained for these magnitudes when we consider mean concentrations ranging from ¯ φ= 0.85 to ¯ φ= 0.93. The rest of the parameters are: N= 100,m= 50,δ= 0.05,γ=δ/3,h= 10−5 and different values for the tolerance (we found that we had to decrease the value of the tolerance for higher values of ¯ φto achieve convergence). Mean concentration Critical image Energy barrier Critical radius Theoretical energy barrier Theoretical critical radius 0.85 8 2.09 ·10−46.56 ·10−21.39 ·10−31.41 ·10−1 0.86 8 2.47 ·10−46.34 ·10−21.55 ·10−31.49 ·10−1 0.87 9 2.94 ·10−46.90 ·10−21.73 ·10−31.58 ·10−1 0.88 10 3.51 ·10−47.38 ·10−21.97 ·10−31.68 ·10−1 0.89 12 4.25 ·10−48.54 ·10−22.27 ·10−31.80 ·10−1 0.90 13 5.20 ·10−48.83 ·10−22.65 ·10−31.95 ·10−1 0.91 16 6.53 ·10−41.03 ·10−13.17 ·10−32.13 ·10−1 0.92 19 8.39 ·10−41.15 ·10−13.88 ·10−32.36 ·10−1 0.93 25 1.13 ·10−31.38 ·10−14.91 ·10−32.65 ·10−1 Table 8: Energy barrier and critical nucleus radius for different values of the mean concentration. 49
Nucleation in multicomponent liquid mixtures Fig. 22 shows the values of the energy barriers and critical radii with respect to 1−¯ φin a log-log plot. We observe that the energy barrier evolves roughly as (1 −¯ φ)−2and the critical radius as (1 −¯ φ)−1, as expected. The values of the critical radii are quite disperse, especially for low concentrations. Besides not being in the sharp interface limit, this happens because for low values of the mean concentration the critical nucleus does not reach the value -1 near r= 0. In that case the phase field model is no longer useful to study classical nucleation results because the assumptions in classical nucleation theory are no longer valid. As in the two dimensional case, since we are not close to the binodal any more even the theoretical values deviate from the desired behaviour (slope -2 for the energy barrier and slope -1 for the critical radius). Figure 22: Energy barrier and critical radius comparison between numerical results and theoretical results for several values of the mean concentration. The values of the critical radii have been compared directly because the interface width was the same in all simulations. However, if different interface widths are considered, the profiles of the critical nuclei changes. The value of the critical radius should scale with δ. One way to check that this is true is running the same simulation with different values of the interface width and scaling the critical profiles obtained with respect to the interface width. We call reduced critical radius the critical radius divided by the interface width. We should observe that the reduced critical radius does not depend on the value of the interface width. To check this, we run some simulations under the same conditions except for the value of δ. Table 9 shows the results obtained for the following parameters: N= 100,m= 50,γ= 10−2,h= 10−5and ¯ φ= 0.85. For these conditions, the minimum possible value for the interface width was δ= 0.03 (it has to be at least 3dx, where dx = 1/N= 0.01), and the maximum possible value is determined by convergence issues. We considered δ∈(0.3.0.7). The results agree with the predictions: the reduced critical radii have roughly a constant value. Not only that, but Fig. 23 shows the critical nucleus profiles for the reduced radial component, that is, r/δ. We only plot the values near the center of the critical nucleus (r=0). We see that all profiles match very well. The worst case happens for δ= 0.03, which the smallest value. This is not rare, since the value of the interface width in that case is the minimum possible value, so the program may not be able to resolve properly this case. There is one last test that can be performed for binary mixtures. The string method does not require to reparametrize the string at each iteration, it can be reparametrized every nsiterations. The advantage of reparametrizing at each step is that we get more precise results, and numerical noise has a less relevant 50
Figure 23: Critical nucleus profiles for reduced radial component, for ¯ φ= 0.85. Interface width Critical image Critical radius Reduced critical radius 0.07 11 8.79 ·10−21.26 0.06 9 7.30 ·10−21.22 0.05 8 6.59 ·10−21.32 0.04 6 5.03 ·10−21.26 0.03 4 3.43 ·10−21.14 Table 9: Energy barrier and critical nucleus radius for different values of the mean concentration. effect. However, taking a large value of nsmakes the program faster, which is an issue we are concerned about, especially for cartesian coordinates, where the program is much slower. To find the most efficient value of nswe performed 10000 iterations of the string method for several values of nsand computed the total CPU time the program takes to run. We computed the values for the energy barrier and critical radius, as well as the error after the last iteration (the error is computed in the following way: the two last reparametrized strings before convergence are considered, and the norm of the difference is computed, divided by N,mand nsto get results which can be directly compared). Table 10 shows the results for the following parameters: ¯ φ= 0.85,N= 100,m= 50,δ= 0.05,γ= 0.01 and h= 10−5. If we consider the total CPU time of execution, the only conclusion we can derive is that for small values of ns(5 or less) the time is significantly larger than in the rest of the cases. Since there a lot of fluctuations on the exact time of execution (many tests were performed for each case, since the time of execution under the same conditions can change), we see that for a value of ns= 10 the fluctuations are already larger than the actual difference in time between different values of ns, and hence there is no need to increase the value of nsin terms of speed of the program. If we consider the values of the energy barriers and critical radii, we 51
Nucleation in multicomponent liquid mixtures nsFinal error Total CPU time (seconds) Critical image Energy barrier Critical radius 11.24 ·10−829.87 81.25 ·10−46.61 ·10−2 21.24 ·10−821.84 81.25 ·10−46.61 ·10−2 51.24 ·10−814.44 81.25 ·10−46.61 ·10−2 10 1.24 ·10−812.61 81.25 ·10−46.61 ·10−2 20 1.24 ·10−812.24 81.25 ·10−46.61 ·10−2 50 1.24 ·10−811.93 81.25 ·10−46.60 ·10−2 100 1.25 ·10−812.00 81.25 ·10−46.59 ·10−2 200 1.25 ·10−810.76 81.25 ·10−46.59 ·10−2 500 1.25 ·10−812.55 81.25 ·10−46.60 ·10−2 1000 1.26 ·10−816.69 81.25 ·10−46.63 ·10−2 2000 1.34 ·10−814.58 71.27 ·10−45.94 ·10−2 5000 1.04 ·10−712.39 61.27 ·10−46.10 ·10−2 10000 1.89 ·10−711.45 5 2.97 ·10−41.01 ·10−1 Table 10: Time of execution, energy barrier and critical nucleus for different values of ns. see that there are no significant discrepancies until the value ns= 2000 is considered. For values larger than this one the program does not converge properly and more iterations would be required. Hence in Section 5 a value of ns= 10 will be considered to reach an equilibrium between time efficiency and accurate results. 52
5. Nucleation in ternary mixtures Ternary mixtures are a situation of much more interest than binary mixtures. To start with, we have different possibilities of how a droplet can nucleate. We can have homogeneous nucleation (droplets forming inside one of the phases) or heterogeneous nucleation (droplets forming at the interface between two phases). Moreover, especially in the second case, the spherical symmetry is broken and the only way to reproduce these phenomena is using cartesian coordinates, which are by themselves a computational challenge. The aim of this section is to compare numerical results with classical nucleation results related to homogeneous and heterogeneous nucleation. More precisely, we study whether heterogeneous nucleation is always more favorable than homogeneous nucleation (the energy barrier in the first case is smaller than in the other one), and under which conditions this difference is more relevant. We also check that the values of the contact angles at triple junctions satisfy the relations found in Section 3. As in the binary case, we iterate the Cahn-Hilliard equation using an IMEX method for time integration. In this case, since practically all configurations we will consider are on a square two dimensional domain, we will work in the Fourier space to treat all spatial derivatives. 5.1 Free energy density We focus our study on the two dimensional configuration. The three dimensional case is too computationally expensive to be simulated in the way we have been doing it until now, since we have to reproduce it in cartesian coordinates, and our vector of solutions would become extremely large. However, the two dimensional case already allows us to verify most of the relations we discussed in Section 3. To start with, we have to define a new free energy density, since now we have three components instead of two. From now on, consider we have three components a, b and c, and their respective order parameters φa,φband φc. In this case, we consider that the order parameters take a range of values on φ∈(0, 1), instead of φ∈(−1, 1) (this is because when we define the free energy density we will use some derivations from Ryan’s Davis thesis [10]). We will study nucleation of phase c in several conditions. There is a restriction on the values of φa,φband φc, which is: X i=a,b,c φi= 1 (67) This expression allows us to work with only two order parameters and compute the third one from these two. Hence, when evolving each phase, we just need to consider the evolution of two of the phases, and then calculate the third one using Eq. 67. However, the free energy is defined in terms of the three order parameters for simplicity. As in the binary case, we consider a free energy density which has two components: the bulk free energy density and the interface free energy density. The expression for the interface free energy density is easy to generalise from the binary case: fI(φa,φb,φc) = Wa 2|∇φa|2+Wb 2|∇φb|2+Wc 2|∇φc|2 The values of Wa,Wband Wchave to be determined from the definition of the interface width and interface energies. 53
Nucleation in multicomponent liquid mixtures is also the case in which we are closer to the total wetting condition (one of the interface energies is larger than the sum of the other two). Interface energy γab State after convergence 1.00 ·10−2Mixed state 1.20 ·10−2Mixed state 1.40 ·10−2Mixed state 1.60 ·10−2Mixed state 1.80 ·10−2Separated state Table 12: State to which the mixed state converges after running the Cahn-Hilliard evolution equation. The two possibilities are the mixed state or the separated state, in which phase c nucleates at the interface between phases a and b. Figure 25: Final concentration profiles for initial mixed phase c. Left: γab = 1.2e−2. Right: γab = 1.8e−2. One interesting observation is derived from these results. When computing the interface energy we assumed that the interface separated two phases and that the third component had a null concentration in all the region. However, in our initial states component c has a constant concentration, although not null, and we have seen that as long as we have a bit of component c it tends to accumulate at interfaces. This may be a source of error in future results, since the actual interface energy is slightly different from the theoretical one due to this fact. The conclusion is that we have to be very careful when studying nucleation with the string method, since the initial state may spontaneously separate and then our results will not be coherent. The way to avoid that consists on checking that the initial profile after convergence has the shape it should, evolving the initial state with the Cahn-Hilliard equation before applying the string method. 60
5.4 Two dimensions Our goal in this section is to compare classical nucleation theory results to numerical results. In particular we want to compare heterogeneous nucleation with homogeneous nucleation. We expect to observe that energy barriers are lower in heterogeneous nucleation, and in many cases we can predict that this relation is given by the shape factor, defined in Section 3.2. For this reason we consider phase c nucleating inside phase a and b. Three different cases are considered: a circular droplet of phase c nucleating inside phase a, a circular droplet of phase c nucleating inside phase b and a droplet (which will not be circular due to the interface energy balance at triple junctions) of phase c nucleating at the interface between phases a and b. In all cases the initial state will be the same: we assume phase a and b are separated by two interfaces (since the domain has periodic boundary conditions), and phase c is diluted over all the domain. In the final state all three phases are separated, with phase c forming a droplet in each of the three situations. 5.4.1 Contact angles Before studying nucleation events in two dimensions we are interested in checking whether the contact angles at triple junctions are the ones obtained from imposing force balance (see Section 3.2). To do so, we study some geometries which present triple junctions and determine the contact angles obtained from simulations. We expect to get good results when the interface energies have similar values, but discrepancies between simulations and classical results may appear for more extreme cases (very small angles or very big angles). We consider a matrix of phase a and a circular droplet of phase b and c, with radius r= 1/3. The upper part of the droplet is phase c and the lower part phase b (see Fig. 26). This configuration presents two triple junctions, which are symmetric with respect to the y axis. Since we will consider symmetric cases both contact angles at triple junctions will be the same. We compute the contact angle at one of the triple junctions (the left one, for example). These angles are defined as the angle formed by the ac and the bc interface and the angles formed by the ab and bc interface (see Fig. 27). This definition gives us the suplementary anlge to the one we derived in Section 5.1, but we define it in that way for convinience. The difficulty of measuring the angle lies in the fact that the contact angle is not very well defined in our simulations, since our interfaces are diffuse. To determine it we need two tangent directions at the triple junction, which translates in computing two tangent vectors. We compute an approximate value for the contact angle using the following algorithm (see Fig. 27): 1. The triple junction (which we call P1) is defined as the node which maximizes the product φa·φb·φc (it can be shown that the values of the concentration which maximize this product satisfying Eq. 67 are all of them equal to 1/3, condition which only happens at triple junctions). 2. Once we have P1, we need to compute the direction of the interfaces at this node. Since the interfaces are diffuse, there is some uncertainty in the tangent direction which is proportional to the interface width. The first direction is simply the horizontal one (bc interface), so the second node, P2has the same x coordinate as P1and an arbitrary y coordinate (for example 10 nodes to the left of P1, according to the definition of the angle we are considering). 3. There are several techniques to find the direction of the ac interface. One of them consists on finding an auxiliary node which maximizes the product xa·xcin the x direction slightly above the triple junction, which is the third node, P3, we were looking for. This "slightly above" is chosen arbitrarily. 61
Nucleation in multicomponent liquid mixtures Figure 26: Final concentration profiles for three coexisting phases. The value of the contact angle at triple junctions varies with the value of γbc . Left: γbc = 4 ·10−3. Right: γbc = 1.8 ·10−2. We call nrthe number of rows in the mesh between P1and P3. If nris very large, since the interfaces are curved, we will measure a contact angle which is larger than the actual one. However, if we consider small values of nrthere is very few resolution to determine angles. Moreover, in that case the uncertainty in the interface width plays a very important role and the angle has a very large margin of error. Hence, an intermediate value for nrmust be chosen arbitrarily. 4. Once we have these three nodes, we can determine the angle they form using some simple geometry (angle formed by two vectors). We consider symmetric cases in which γab =γac = 10−2(non-symmetric cases will be considered in further sections). We expect both angles to be the same, and their value should be given by Eq. 81. We chose a range of values for γbc from 4·10−3to 1.8 ·10−2, to study angles close to 90◦and close to 0◦. When computing the angle a confidence interval is provided, where the limits of the interval are computed assuming P3is δ/2to the right or to the left of the computed value. Table 13 shows the measurements of the angles between the ac interface and the horizontal direction at the left triple junction. The following parameters were used in simulations: N= 256,h= 10−5and a tolerance of tol = 10−8. A value of nr= 5 was determined experimentally to be the most appropriate, by studying the results obtained for several values of nr. We observe in the first place that there is a lot of uncertainty in the measurement of the angles, since the confidence intervals are very large. For the first cases the agreement between theoretical and numerical contact angles is very good. However, for angles close to 65◦results start to deviate quite a bit, since the theoretical angle is not even inside the confidence interval. This value of 65◦for which results start to deviate is larger than expected, since phase field models are generally capable of resolving smaller angles. We observe that the measured angle is always greater than the theoretical one for small angles. There are some reasons that explain this mismatch. One of them is that it is difficult to resolve small angles in a finite mesh, so we should increase the number of nodes in the domain to resolve angles with more precision, something which ends up being impossible for very small angles. Another difficulty is that for large values for γbc the interface energies are close to the total wetting condition, and Ryan’s model [10] does not work in the total wetting case. Hence, the program does not converge to the correct solution in these cases. 62
Figure 27: Contact angle calculation in a discrete mesh, in the general case where the two contact angles are different. The shaded regions around the interfaces represent diffuse interfaces. In this case the computed angles are θ= 75.96◦and φ= 71.57◦, which are larger than the real ones due to the high value of nrin terms of the radius of curvature of the interface. Interface energy γbc Theoretical contact angle Experimental contact angle Lower limit Upper limit 4.00 ·10−378.46 76.10 70,34 79.28 6.00 ·10−372.54 72.31 65.28 76.29 8.00 ·10−366.42 70,18 62.52 74.59 9.00 ·10−363.26 74.76 68.53 78.23 1.00 ·10−260,00 69.12 61.16 73.73 1.10 ·10−256.63 64.47 55.42 69.93 1.20 ·10−253.13 68.22 60,02 73.00 1.40 ·10−245.57 61.97 52.46 67.82 1.60 ·10−236.87 51.94 41.50 59.08 1.80 ·10−225.84 38.82 27.41 44.38 Table 13: Contact angles comparison for different values of γbc . Despite these discrepancies, the results follow the same tendency as the theoretical ones (the angles decrease with increasing γbc ). Hence, our model does not properly reproduce angles bellow 65◦, and converges to configurations where the contact angle is always a bit larger than the theoretical one, although it is complicated to determine the angles with precision. 63
Nucleation in multicomponent liquid mixtures Figure 28: Numerical contact angles vs theoretical contact angles at triple junctions for several values of γbc . The orange curve are the theoretical values, the blue one are the numerical values and the blue region is the confidence interval for the numerical values. 5.4.2 Nucleation events We now focus on comparing results from simulations to classical nucleation theory. More precisely, the procedure is the following: under the same conditions (interface energies, interface width, number of spatial nodes...) we nucleate phase c inside phase a or at the interface between phase a and b. We can compute the shape factor S2(θ,φ)for these conditions (see Section 3.2) and compute the energy barrier for heterogeneous nucleation with respect to homogeneous nucleation. Ideally, we expect this ratio to be S2(θ,φ). However, a thorough study is made to see under which conditions this agreement is satisfied. We define our initial string as the string connecting two metastable states. The first state consists of phase a and phase b separated by two interfaces (since we consider periodic boundary conditions we always have at least two planar interfaces). Component c is initially constant in the whole region, mixed inside both phases. The mean concentration of c is computed from the final radius of the droplet of phase c (for homogeneous nucleation), since we are using a conservative method (the total concentration of each component at each time step and image on the string must be equal). In that way, if we nucleate a droplet of radius rcinside phase a, the mean concentration of component c will be πr2 c. This poses a limitation in the value of rc, since if it is too large we enter the spinodal region. The intermediate images on the string are defined in such a way that first a droplet is formed and then its radius grows linearly until the final state. As a first test we can study the range of values for which rcis small enough so that we do not enter the spinodal region and such that the final droplet does not dilute in phases a and b (if rcis smaller than the critical radius the droplet dilutes inside phase a and b, giving rise to the mixed state). We consider phase b to be [0, 1]x[0, 0.5] and phase a to be [0, 1]x[0.5, 1]. Since we iterate the Cahn-Hilliard equation in the Fourier space we consider the space discretized into N2= 2562nodes, to optimize the FFT (the FFT 64
Figure 29: Final concentration profiles for homogeneous nucleation with rc= 0.1. Left: Initial state. Center: Critical state. Right: Final state. Figure 30: Final concentration profiles for heterogeneous nucleation with rc= 0.1. Left: Initial state. Center: Critical state. Right: Final state. is more efficient when we discretize the space into 2nnodes with n∈N, although we can also consider Nnot to be a power of two). Table 14 shows the energy barriers measures both for homogeneous and heterogeneous nucleation for several values of rc, and whether the final state converged to the mixed state (two phases) or to the separated state (three phases). The rest of the parameters are m= 50,h= 10−5, γab =γac =γbc = 10−2,δ= 0.012 and a tolerance of tol = 5 ·10−8(defined in the usual way). If we consider too small droplets the final state ends up diluting (for rc<0.1) because the final droplet size is smaller than the critical radius. We also observe that for rc= 0.08 the final state in homogeneous nucleation does not converge to the final droplet, but it does in heterogeneous nucleation. This can indicate that the critical radius for heterogeneous nucleation is smaller, something which is consistent with the fact that heterogeneous nucleation is more favorable than homogeneous nucleation. The way to solve the diluting final droplet for rc= 0.08 would be considering more nodes on the mesh and thinner interface widths. However, we can consider rc= 0.1 for the rest of the simulations, since the method converges both for homogeneous and heterogeneous nucleation, which is what we wanted. The final concentration profiles for rc= 0.1 are shown in Figs. 29 and 30. 65
Nucleation in multicomponent liquid mixtures Radius rcType of nucleation Energy barrier Convergence of the final state 0.12 Homogeneous 6.41 ·10−4Separated state Heterogeneous 1.68 ·10−4Separated state 0.10 Homogeneous 8.38 ·10−4Separated state Heterogeneous 3.06 ·10−4Separated state 0.08 Homogeneous 0.00 Mixed state Heterogeneous 4.76 ·10−4Separated state 0.06 Homogeneous 0.00 Mixed state Heterogeneous 0.00 Mixed state 0.04 Homogeneous 0.00 Mixed state Heterogeneous 0.00 Mixed state Table 14: Energy barrier and convergence for several final droplet radii. For the first two cases we can even compute the shape factor S2(θ,φ)(see Section 3.2) as the ratio between heterogeneous and homogeneous nucleation and compare it to the theoretical one. The theoretical one has a value of 3.91 ·10−2in both cases (it only depends on the interface energies). For rc= 0.12, S2= 2.61 ·10−1, and for rc= 0.1 S2= 3.65 ·10−1. This is what we expected, since for a smaller value of the final droplet radius we approach the binodal and, as in the binary case, we become closer to the sharp interface limit. Only then our results can be compared to classical nucleation theory. However, there is a limit in the final size of the droplet, given by the condition that the final radius has to be larger than the critical radius. For rc= 0.1 the relative error is bellow 10% (we compute the relative error as the absolute value of the difference between the theoretical and the numerical value of the shape factor divided by the theoretical value), so from now on we will consider rc= 0.1 unless the opposite is said. A more thorough analysis on the shape factor for several conditions will be performed later. An interesting observation is that, in the way we have defined our domain, divided in two identical regions, there is no difference between phase a and phase b (unless interface energies are different). This leads us to a second test: checking whether we get the same results when we study nucleation inside phase a or inside phase b. We do not expect great discrepancies to appear, only the ones due to numerical errors. We consider a circular droplet nucleating inside phase a and the same droplet nucleating inside phase b. For the same parameters as in the previous case, we obtained, when nucleating phase c inside phase a, an energy barrier of E= 8.38 ·10−4, while, when nucleating phase c inside phase phase b, we got an energy barrier of E= 8.34 ·10−4. The relative error between these two quantities is 0.55%, which means that our implementation of the method is consistent with the symmetry of the problem. The difference is mostly due to numerical errors. In the same line we can check what happens if we consider heterogeneous nucleation and switch the values of γac and γbc . That is, in one case we consider γac = 8 ·10−3and γbc = 10−2and in the other γac = 10−2and γbc = 8·10−3. The energy should be the same, since again the configuration of the system is symmetric. We nucleate a droplet of phase c at the interface between phases a and b. All the parameters are the same than in the previous case, except for γac and γbc . If we set γac = 8 ·10−3and γbc = 10−2we get an energy barrier of E= 2.37 ·10−4, while setting γac = 10−2and γbc = 8 ·10−3gives us an energy barrier of E= 2.34 ·10−4. The relative error in that case is 1.24%, which is again very small, and caused by numerical errors. Moreover, both in the homogeneous nucleation case and heterogeneous nucleation, the program did slightly more iterations in one case than in the other. That is another reason why the results in one case are slightly different than in the other. 66
Now that we have checked some symmetry issues we can investigate under which circumstances the string method and classical nucleation theory are in agreement. To do so we compute the energy barriers for homogeneous nucleation and heterogeneous nucleation, and from them we compute the shape factor and compare it to the classical one. In the first place we consider the cases where θ=φ, that is, when γac =γbc . In that case the shape factor can be simplified and its expression as a function of θis: S2(θ) = (2θ−sin 2θ)/π (75) This expression is twice the shape factor for heterogeneous nucleation on a mould wall, since in this case two circular caps are formed instead of one. We consider γac =γbc = 10−2and vary γab from 2·10−3to 1.8 ·10−2. These are close to the extreme cases, γab = 0 and γab = 2 ·10−2, in which we would have total wetting. The phase field model is not able to reproduce total wetting, so our free energies have to satisfy the triangular inequality (each of them is smaller than the sum of the other two). Table 15 shows the results obtained for the energy barriers in both cases (homogeneous and heterogeneous nucleation), as well as the theoretical and the numerical shape factor, which is computed as the ratio between the homogeneous and the heterogeneous energy barriers. The following parameters were considered: m= 50,N= 256,δ= 0.012,h= 10−5and a tolerance of tol = 5 ·10−8. Interface energy γab Type of nucleation Energy barrier Critical image Numerical shape factor Theoretical shape factor 2·10−3Homogeneous 6.73 ·10−438.64 ·10−18.73 ·10−1 Heterogeneous 5.82 ·10−43 4·10−3Homogeneous 7.10 ·10−437.45 ·10−17.47 ·10−1 Heterogeneous 5.28 ·10−43 6·10−3Homogeneous 7.43 ·10−446.32 ·10−16.24 ·10−1 Heterogeneous 4.69 ·10−43 8·10−3Homogeneous 7.83 ·10−465.11 ·10−15.05 ·10−1 Heterogeneous 4.00 ·10−43 10−2Homogeneous 8.38 ·10−473.83 ·10−13.91 ·10−1 Heterogeneous 3.21 ·10−43 1.2 ·10−2Homogeneous 9.10 ·10−492.59 ·10−12.85 ·10−1 Heterogeneous 2.36 ·10−43 1.4 ·10−2Homogeneous 1.01 ·10−311 1.50 ·10−11.88 ·10−1 Heterogeneous 1.51 ·10−42 1.6 ·10−2Homogeneous 1.16 ·10−314 5.76 ·10−21.04 ·10−1 Heterogeneous 6.67 ·10−52 1.8 ·10−2Homogeneous 1.95 ·10−349 0.00 3.74 ·10−2 Heterogeneous 0.00 0 Table 15: Energy barriers and shape factor for several values of γab. We see that the numerical shape factor is very close to its theoretical value in most cases, especially for low values of γab. In fact, in the first four cases the relative error is bellow 2%, which is a very good result. Fig. 31 shows the numerical values obtained for the shape factor versus its theoretical value. It is interesting to discuss the origin of the mismatches between theoretical values and numerical ones. In the first place, as we discussed in the previous section, the method is not able to reproduce correctly small angles (smaller than 65◦). Hence, the most extreme cases fail to reproduce correctly the equilibrium concentrations. Moreover, as we increase the interface energy between phases a and b, the energy barrier for heterogeneous nucleation decreases, until it would reach a value of 0 for the total wetting case (this case 67
Nucleation in multicomponent liquid mixtures Figure 31: Shape factor comparison. The blue curve is the theoretical shape factor, and the orange samples are the values obtained from simulations. fails also in classical nucleation theory, so it is not of much interest). This is also spotted in the value of the critical image on the string, which decreases until for γab = 1.8 ·10−2it reaches the end of the string and the energy barrier vanishes. This could be solved considering more images on the string, since our value of m= 50 does not allow us to determine energy barriers with a high precision if the energy barrier is very small. There is another source of error when computing the shape factor. In most of the cases, the shape factor obtained from simulations is smaller than the theoretical one (this is especially appreciable for high values of the interface energy). This is due to the way we compute the energy barrier. Classical nucleation theory only takes into account the variation in energy due to the creation of the droplet. However, in our case there is also a contribution from the rest of the domain. In particular, there are two interfaces which also contribute to the energy we measure. In principle, especially if the critical image is close to the initial image of the string, these contributions should cancel each other and the only relevant contribution would be the one given by the droplet. However, in practice, since we are considering periodic boundary conditions, there is a small change in the interfaces and the value of the order parameters inside phase a and phase b, to keep the total concentration constant. This variation adds some error to the energy barriers computed. In particular, we expect the interfaces at the critical state to contribute more to the energy than in the initial state, so the energy barrier is always a bit bigger than we would expect. Finally, we find that the values of the critical radii (which we did not compute explicitly, but could observe from the concentration profiles) are very small. In particular, they are comparable to the interface width. Hence, we are not in the sharp interface limit, which is the most relevant source of error. We are now interested in checking whether the string method reproduces correctly all cases, even when both contact angles are different. In the following simulations phases a and b are not equal. Instead, phase a occupies two thirds of the domain and phase b the resting third. We compare nucleation inside phase a with nucleation at the interface between phases a and b. 68
Table 16 shows some results obtained for several values of the interface energies γac and γbc . In all cases γab = 10−2. The rest of the parameters are m= 50,N= 256,δ= 0.012,h= 10−5and a tolerance of tol = 5 ·10−8. Interface energy γac Interface energy γbc Type of nucleation Energy barrier Critical image Numerical shape factor Theoretical shape factor 8·10−31·10−2Homogeneous 6.31 ·10−463.94 ·10−14.14 ·10−1 Heterogeneous 2.49 ·10−43 1·10−28·10−3Homogeneous 9.95 ·10−410 2.31 ·10−12.65 ·10−1 Heterogeneous 2.30 ·10−43 6·10−38·10−3Homogeneous 5.28 ·10−481.98 ·10−12.35 ·10−1 Heterogeneous 1.05 ·10−42 8·10−36·10−3Homogeneous 1.13 ·10−349 8.07 ·10−21.32 ·10−1 Heterogeneous 9.07 ·10−52 8·10−31.2 ·10−2Homogeneous 5.80 ·10−435.21 ·10−15.83 ·10−1 Heterogeneous 3.02 ·10−43 1.2 ·10−28·10−3Homogeneous 1.29 ·10−312 2.32 ·10−12.59 ·10−1 Heterogeneous 2.99 ·10−43 Table 16: Energy barriers and shape factor for several values of γac and γbc . For the non symmetric cases the results are not as good as in the symmetric case. However, all the numerical shape factors are rather close to the theoretical ones (relative error smaller than 20%) except for the fourth case (γac = 8 ·10−3and γbc = 6 ·10−3), in which case the relative error in the shape factor is almost 40%. Moreover, for that configuration, the critical state was the ending state, something which should not happen. This may mean that the program did not converge to the right solution. Besides from that, we get some similar results as in the symmetric case. For example, the numerical shape factor is always greater than the theoretical one. As in the previous case this is partially caused by the way we compute the energy (we are computing the contribution of all interfaces, so all energy barriers are a bit greater than they should), and also because we do not resolve properly all contact angles, as discussed in Section 5.4.1. Figs. 32 and 33 show the concentration profiles obtained both for homogeneous and heterogeneous nucleation for the values γac = 1.2 ·10−2and γbc = 8 ·10−3. An interesting situation is trying to reach an extreme case, corresponding to the semicircular cap. This is achieved by considering one of the interface free energies very small (for example, γac ). If we make γac tend to zero (keeping the other two interface energies equal to maintain force balance) it can be checked that φ→0◦and θ→90◦. Hence, we get a semicircular cap, which also corresponds to the heterogeneous nucleation on a mould wall. We can try to consider a very extreme case, like γac = 10−3, in which case the contact angles should be 87.13◦and 5.73◦. The program diverges for these conditions, both for homogeneous and heterogeneous nucleation, since we are too close to the total wetting condition. Hence, we have to gradually approach the semicircular cap and study the shape factor obtained in each case. Table 17 shows the results obtained for different values of γab, both for homogeneous and heterogeneous nucleation. In that case we considered both phases a and b to be equal (50% of the domain each). The rest of the parameters are m= 50,N= 256,δ= 0.012,γac = 10−2,γbc = 10−2,h= 10−5and a tolerance of tol = 5 ·10−8. We can see that the results do not match very well to classical nucleation theory, since in all cases the shape factor is quite smaller than its theoretical value (the relative error is in all cases around 20%). This is not a very surprising result, since even for γac = 6 ·10−2φ= 34.92◦, which is too small to be resolved properly. Moreover, in all cases the critical image on the string was the third one. Hence, the energy barrier may not be determined properly and may have some numerical error. One way to solve this would be increasing the number of images on the string. Figs. 34 and 35 show the concentration profiles with 69
Nucleation in multicomponent liquid mixtures 6. Conclusions The string method has proven to be very efficient to study nucleation events in binary and ternary systems. It reproduced correctly classical nucleation results, although some limitations were found, especially for ternary systems. The algorithm performed very well for binary mixtures. On the first place, from a qualitative point of view, droplets were observed to form via a quick increase in concentration followed by the growth of the droplet. We were able to obtain results in agreement with classical nucleation theory both for systems in two and three dimensions. Moreover, classical nucleation results were obtained even when the sharp interface limit was not obtained. However, the string method is especially appropriate to study nucleation when we are close to the binodal region. In the three dimensional case energy barriers and critical radii evolved following the same relation as theoretical results, but there was a factor of proportionality between numerical and theoretical results. We ere not able to fully determine the origin of this mismatch, and a more exhaustive investigation should be performed to determine the cause of these errors. Limitations appear when we approach the spinodal region. In these cases the critical state in phase separation does not present the shape given by classical nucleation theory. Instead, the critical state corresponds to a state where the droplet has not reached its maximum concentration yet. In these cases the results cannot be compared to classical nucleation theory. However, nucleation theory does some approximations which are not realistic, like that the nucleus forms instantaneously with the maximum concentration, growing until it reaches the critical radius. Numerical results indicate that for configurations close to the spinodal this is not the case. Instead, the droplet formation consists of a process of enrichment, in which the concentration inside the droplet increases keeping a fixed size until it reaches the maximum concentration, followed by a process of growth, in which the size of the nucleus increases, keeping the concentration constant inside the nucleus. We also observed that the critical nucleus presented a value of the concentration at the center of the droplet slightly smaller than expected. This is due to the Gibbs-Thomson effect, which introduces a change in chemical potential across interfaces which translates into a deviation from the theoretical profiles. Another important achievement was checking that in the two dimensional case the simplified radial dynamics in polar coordinates correctly reproduced the same results as in the cartesian case, where both space components are considered. This allows us to consider the simplified dynamics in any symmetric case, which is always the case for homogeneous nucleation, if restricted to a neighbourhood of the droplet. We could also observe from these cases that we can resolve with high accuracy the energy barriers and critical radii from the string method, but only when we are close to the binodal. For ternary mixtures results were also quite good, although some more issues appeared. The number of possibilities increases exponentially, and some cases fail to reproduce classical nucleation results. For the symmetric cases very good results were obtained. The shape factor was found to agree with the classical one for intermediate values of the interface energies. For more extreme cases, close to the total wetting condition, results started to separate from classical ones. However, in most cases it was mostly due to numerical issues, since energy barriers become very small, especially for heterogeneous nucleation. Moreover, the phase field method fails to reproduce very large or very small contact angles, so the method is especially efficient for intermediate values of the interface energies. The non-symmetric cases did not perform as well as the symmetric one. The shape factors did not adjust with a very high precision the classical ones. However, they follow the correct trends in terms of dependency with the values of the interface energies, and they are still close enough to the theoretical values to claim that the results are satisfactory. However, a deeper look at the results makes us consider that classical 76
results should be reviewed, since curved interfaces appeared for high values of the interface energies, and the classical nucleation results we proposed did not exhibit that behaviour. The balance between Laplace pressures should be considered and new theoretical shape factors for the non-symmetric cases should be computed. The part where results deviated more to the classical ones was the contact angles at triple junctions. We were only able to get coherent results for a very limited interval of contact angles, smaller than the expected one, according to [10], and in all cases there was a lot of uncertainty. The method was already expected to fail for small angles, but it also failed for intermediate angles. However, this did not affect the calculation of the energy barriers and shape factors, which matched quite well with classical results. From a numerical point of view, we were able to take a lot of advantage of the string method. It is a very simple method which allows to make some efficient enhancements, like changing the number of images along the string on the fly. We found that for such complex systems it is very sensitive to initial conditions, so a first approximation of the final string had to be known beforehand. In terms of computational efficiency the programs turned out to be computationally quite expensive. In cartesian coordinates for two dimensions this poses a very strong limitation on the accuracy that can be achieved, since there is a maximum number of spatial nodes that can be considered. This in turn limited the resolution of the critical state and made it impossible to reach the sharp interface limit for ternary mixtures. Moreover, since the only efficient way to iterate the method was in the Fourier space, this also imposed periodic boundary conditions, something which can be quite limiting in some situations as well. With this formalism it would be impossible to perform simulations in three dimensions using cartesian coordinates, and alternative ways to make the program faster should be considered. 6.1 Future work Many interesting results were found during the research which can lead to future investigation. We comment some of them. To start with, the string method can be used to study nucleation events in multicomponent liquid mixtures for more than three components. In that way some interesting situations can be studied, since the possible phase morphologies for systems with more than three phases are very diverse. In that line, heterogeneous nucleation plays a much more interesting role in those systems. Nucleation can take place inside bulk regions (homogeneous nucleation), at interfaces or even at triple junctions. Depending on the value of the interface energies some processes may be more favorable than others. Some other cases which can be studied are nucleation of more than one droplet at the same time. When nucleation takes place on a material system, several nuclei form at the same time. Some of these end up reaching the critical state and growing until complete phase separation is achieved, while others do not grow enough and end up collapsing. Nucleating several droplets at the same time can be numerically very complex due to the limitations of the program, so another option would be to study how to make the program accurate enough to be able to resolve several nuclei at the same time. We could also consider some situations which are relevant in their applications. For example, considering a spherical system with three components where one of them acts as a catalyst (situation which can model protein diffusion in cells). In particular, there are two phases: one of them contains one of the components, which acts as the catalyst, while the other two are mixed in the surrounding phase. It would be interesting to study phase separation in this situation in different conditions, where the catalyst has different interaction parameters with the other two components. 77
Nucleation in multicomponent liquid mixtures Another important issue which can be handled are curved interfaces in non-symmetric heterogeneous nucleation. A new derivation of the shape factors should be performed, taking into consideration the Laplace pressure, and it could be compared to numerical results. We can also consider improving the method by considering irregular meshes. Since our main limitation was the computational efficiency, it is desirable to reduce the complexity of the program. One way to do it consists on changing the mesh we used, which was regular in all cases, for a non-regular one which has more resolution near the interfaces. This would imply changing the finite difference scheme we have used for a finite element method, which can support irregular meshes. This would make the mathematical treatment of the problem much more complicated, but probably much more efficient from a numerical point of view. This approximation would be especially useful if we considered a droplet forming near an interface, for ternary systems, since most of the domain in that configuration consists of a bulk region where we do not need a great resolution. Finally, due to the high computational cost of the string method for systems modeled using the phase field dynamics, some ways to improve the string method could be studied. In particular the improvement of changing the number of images along the string on the fly was particularly useful, since it allows to resolve quite well energy barriers in a reasonable time. Another option would be to parametrize the string using an energy-weighted arc length parametrization, since in that way we could resolve better the energy barriers with the same number of images on the string. This would be especially useful for the cases where the critical image was very close to the initial one. The same method could be optimized from a computational point of view, perhaps taking advantage of preexisting libraries or using other programming languages which are more efficient for these kind of problems. 78
A. The shape factor in heterogeneous nucleation As discussed in section 3.2, heterogeneous nucleation can take place in contact with a mould wall or at interfaces between two phases, for ternary systems. The expression for the free energy density has the same aspect for homogeneous nucleation and for heterogeneous nucleation except for a factor which only depends on the geometry of the configuration. This factor is usually referred to as the shape factor, and it can be computed using some simple geometry in each of the configurations. In this appendix we present the derivation for the expression of the shape factor in each of these configurations. Let us consider in the first place the two dimensional case. Assume that we have a nucleus forming in contact with the mould wall (see Fig. 38). In this configuration, assuming γSL is isotropic, for a fixed volume, the shape that minimizes the interface energy of the nucleus is a circular cap. This cap forms an angle θwith the mould wall that satisfies the balance relation between the interface energies at triple junctions [41]. That is: γSM +γSLcos(θ) = γML (76) where γSM ,γSL and γML are the solid/mould wall, solid/liquid and liquid/mould wall interface free energies, respectively. This equation comes from imposing that the interface tensions are balanced in the x direction at the triple junction (we do not impose balance in the y direction in that case, since we assume that the mould wall is fixed and cannot deform). We can thus derive the expression for the contact angle if we are given the interface free energies, something which will be useful when comparing our results from simulations with classical nucleation theory. Figure 38: Nucleus forming in contact with a mould wall. As in homogeneous nucleation, the formation of the embryo is associated with an increase in free energy, given by the expression: ∆Ghet =−AV∆GV+lSLγSL +lSM γSM −lSM γML (77) where AVis the area of the circular cap and lSL and lSM are the solid/liquid and solid/mould wall interface lengths. Using some simple geometry and combining it with Eq. 76, we can write all these terms as a function of the contact angle. If we call rthe radius of the circular cap (see Fig. 38), then we have the following expressions for the areas and lengths: 79
Nucleation in multicomponent liquid mixtures AV=θr2−sin θcos θr2 lSL = 2θr lSM = 2 sin θr Hence, the expression for the increase of free energy is given by: ∆Ghet =−(θr2−sin θcos θr2)∆GV+ 2θrγSL + 2 sin θrγSM −2 sin θrγML Using Eq. 76 we can rewrite this as: ∆Ghet =−(θr2−sin θcos θr2)∆GV+ 2θrγSL −2 sin θrcos θγSL = (θ−sin θcos θ)·(−r2∆GV+ 2rγSL) Finally, this expression can be written in the following way: ∆Ghet = (−πr2∆GV+ 2πrγSL)S1(θ)(78) where: S1(θ)=(θ−sin θcos θ)/π (79) Observe that we get an expression which is almost identical to the homogeneous nucleation case (see Eq. 9in Section 3.1), except for the factor S1(θ), which only depends on the contact angle. This factor is called the shape factor [31]. The second case we can consider is the formation of a droplet at an interface between two other phases. This case can take place when two phases are present and a third phase is formed (a situation studied in ternary mixtures). In that case, the nucleus will have a shape consisting on two circular caps, so that the nucleus will have kind of almond shape (see Fig. 39). Consider that we have phase c nucleating at the interface between phases a and b. In that case, the increase in free energy is computed as: ∆Ghet =−AV∆GV+lac γac +lbc γbc −labγab (80) Figure 39: Nucleus forming at an interface between two phases. 80
We can define two contact angles, θand φ, defined as the angles formed by the ac and bc interfaces with the ab interface, respectively (see Fig. 39). The interface tensions balance at the triple junctions, in that case both in the x and the y direction, since all interfaces are deformable [41]. We have the following relations: (γab =γac cos θ+γbc cos φ γac sin θ=γbc sin φ(81) The previous equations allow us to express γab and γbc as a function of γac and the two contact angles (we use γac as our independent variable to keep a similar formalism as in the mould wall case). After some algebra the expressions we get are: (γbc =sin θ sin φγac γab =sin (θ+φ) sin φγac (82) If we name r1and r2the two radii of the circular caps, we can relate all areas and lengths with r1,r2,θ and φ. In particular, there is a relation between the values of r1and r2, which is derived by imposing that both circular caps match exactly at the interface (lab has the same value if computed via the upper circular cap or the lower one). This relation is the following: r1 r2 =sin φ sin θ(83) Hence, we can write all the expressions as a function of just one of the radii (for example r1) and the two contact angles. The expressions for these magnitudes in that case are (naming AIand AII the areas of the upper and lower circular caps, respectively): AV=AI+AII = (θ−sin θcos θ)r2 1+φsin2θ sin2φ−sin2θ tan φr2 1 lac = 2θr1 lbc = 22= 2φsin θ sin φr1 lab = 2 sin θr1 With these relations we can rewrite Eq. 80 as: ∆Ghet =−θ+φsin2θ sin2φ−sin θ sin φsin (θ+φ)r2 1∆GV+ 2θr1γac + 2φsin θ sin φr1γbc −2 sin θrγab From Eq. 82 we can rewrite this expression as: ∆Ghet =−θ+φsin2θ sin2φ−sin θ sin φsin (θ+φ)r2 1∆GV+ 2 θ+φsin2θ sin2φ−sin θ sin φsin (θ+φ)r1γac 81
Nucleation in multicomponent liquid mixtures Finally, we can write this expression in the following way: ∆Ghet = (−πr2 1∆GV+ 2πr1γac )S2(θ,φ)(84) where: S2(θ,φ) = θ+φsin2θ sin2φ−sin θ sin φsin (θ+φ)/π (85) Hence, the expression of the shape factor for nucleation at an interface in two dimensions is given by S2(θ,φ). Observe that, in this case, it depends on two contact angles instead of one. Consider now nucleation in the three dimensional case. First of all we consider nucleation at a mould wall. It can be checked that the forming nucleus will have the shape of a spherical cap. We call θthe contact angle between the wall and the spherical cap (we can use Fig. 38 again, where now we think of the droplet as being spherical), and rthe radius of the sphere. In that case, the variation in free energy after the formation of this nucleus is: ∆Ghet =−VS∆GV+ASLγSL +ASM γSM −ASM γML (86) Similarly to the two dimensional case, the interface energies satisfy a balance equation at triple junctions in the x direction, which is: γSM +γSLcos(θ) = γML (87) We can express all volumes and areas in Eq. 86 in terms of rand θin the following way: VS=2π 3(1 −cos θ)r3−π 3sin2θcos θr3 ASL = 2π(1 −cos θ)r2 ASM =πsin2θr2 For computing the volume of the spherical cap first of all we integrated a surface differential for a constant value of the radius equal to r, and where the azimutal angle varies from π/2to π/2−θ. Then we subtracted the volume of the cone formed by the surface ASM and the center of the sphere. If we put these expressions together in Eq. 86 we get: ∆Ghet =−(2π 3(1 −cos θ)−π 3sin2θcos θ)r3∆GV+ 2π(1 −cos θ)r2γSL +πsin2θr2γSM −πsin2θr2γML ∆Ghet =−π 3((2 + cos θ)(1 −cos θ)2)r3∆GV+ 2π(1 −cos θ)r2γSL +πsin2θr2(γSM −γML) If we use the interface energy balance (Eq. 87) we can express all interface energies in term of γSL, and we finally get: ∆Ghet =−π 3((2 + cos θ)(1 −cos θ)2)r3∆GV+πr2γSL(2(1 −cos θ)−sin2θcos θ) 82
∆Ghet =−π 3((2 + cos θ)(1 −cos θ)2)r3∆GV+πr2γSL((2 + cos θ)(1 −cos θ)2) Hence, we obtain the expression for the shape factor, S1(θ), for heterogeneous nucleation on a mould wall in three dimensions: ∆Ghet =−4π 3r3∆GV+ 4πr2γSLS1(θ) S1(θ) = (2 + cos θ)(1 −cos θ)2 4(88) The same procedure can be made for heterogeneous nucleation at an interface, where three phases are present. We consider we have a nucleus of phase c forming at the interface between phases a and b. In this case, we have two spherical caps matched at the interface, with radii r1and r2, and contact angles θand φ(again, we can use Fig. 39 thinking that the droplet is three dimensional, and it consists of two spherical caps forming at a planar interface). These four quantities cannot take arbitrary values, since the matching of the two spherical caps at the interface poses a restriction in the values these quantities can take. As in the two dimensional case, this restriction has the expression: r1 r2 =sin φ sin θ(89) Hence, we can write all expressions in term of only one radius, for instance r1. Similarly to the mould wall case, the free energy increase has the following expression: ∆Ghet =−VS∆GV+Aac γac +Abc γbc −Aabγab (90) The interface energies satisfy the same balance equations at triple junctions as in the two dimensional case: (γab =γac cos θ+γbc cos φ γac sin θ=γbc sin φ(91) This allows us to determine all interface energies in terms of one of them, for example γab. Then: (γbc =sin θ sin φγac γab =sin (θ+φ) sin φγac (92) As for the volumes and areas in Eq. 90, we can compute them in the exact same way as in the mould wall case, taking into consideration that r2=r1sin θ sin φ: VS=VS,I+VS,II =2π 3(1 −cos θ)r3 1−π 3sin2θcos θr3 1+2π 3(1 −cos φ)r3 1−π 3sin2φcos φr3 1sin3θ sin3φ Aab =πsin2θr2 1 Aac = 2π(1 −cos θ)r2 1 83
Nucleation in multicomponent liquid mixtures Abc = 2π(1 −cos φ)r2 1 sin2θ sin2φ The volume of the droplet has two contributions, VS,I+VS,II , which are the two semispherical caps, the upper one and the lower one, respectively. The total free energy increase is hence computed as: ∆Ghet =−2π 3(1 −cos θ)r3 1−π 3sin2θcos θr3 1+2π 3(1 −cos φ)sin3θ sin3φr3 1−π 3 cos φ sin φsin3θr3 1∆GV +2π(1 −cos θ)r2 1γac + 2π(1 −cos φ)r2 1 sin2θ sin2φγbc −πsin2θr2 1γab With the same procedure as in the mould wall case we can write this expression only in terms of one interface energy, γab, and, after grouping terms, in the end we get the final expression for the shape factor, S2(θ,φ): ∆Ghet =−4π 3r3 1∆GV+ 4πr2 1γabS2(θ,φ) S2(θ,φ) = (2 + cos θ)(1 −cos θ)2 4+(2 + cos φ)(1 −cos φ) sin3θ 4(1 + cos φ) sin φ(93) 84
B. Analytical solution to the Cahn-Hilliard equation The Cahn-Hilliard equation is PDE which has been widely studied from a mathematical point of view, since it is a very important equation in physics. Its study is interesting by itself from a mathematical point of view, and many results have been found regarding the existence and regularity of its solutions [42]. As most PDEs, it has no analytical solution in the general case. However, in the one dimensional case for binary mixtures, there is an analytical solution in some cases. In particular, the solution of the equation when Neumann boundary conditions are considered at both ends has an analytical expression [43]. However, the derivation of this solution is quite complex, and out of the scope of this thesis. However, we can compute the solution of the Cahn-Hilliard equation in an infinite domain, which is much easier, and use it as an approximation of the solution in the finite domain. The validity of this approximation depends on the value of some parameters. When considered the spatial coordinate to range from −∞ to +∞, the boundary conditions we must impose are: lim x→−∞φ(x) = −1 lim x→+∞φ(x) = 1 lim x→±∞ ∂φ ∂x= 0 To obtain the analytical solution, we have to go back to the Beltrami identity (Eq. 31), which states: A 4(1 −φ2)2−λ2A 2 ∂φ ∂x 2 = 0 (94) This is actually an ODE (φonly depends on the spatial coordinate, we are considering stationary solutions) which can be solved analytically. Since we already expect the solution to increase from -1 to 1, the derivative will always be positive, so the absolute value can be omitted. Also, since φ∈(−1, 1),φ2<1 and therefore p(1 −φ2)2= 1 −φ2. If we name α=√2 λ, the ODE is: dφ dx =α 2(1 −φ2) dφ 1−φ2=α 2dx Zdφ 1−φ2=−1 2Zdφ 1−φ+1 2Zdφ 1 + φ=−1 2ln |φ−1|+1 2ln |φ+ 1|=α 2x+K ln 1 + φ 1−φ=αx+C 1 + φ 1−φ=e2(α 2x+C)=Meαx φ(x) = Meαx−1 Meαx+ 1 Using Beltrami’s identity, the derivative of the order parameter is: 85