
 . In air
. In air  and in water
 and in water  . The level set function can thus be thought of as the volume fraction of water. The transport of the fluid interface separating the two phases is given by
. The level set function can thus be thought of as the volume fraction of water. The transport of the fluid interface separating the two phases is given by goes from −1 to 1. When solved in COMSOL Multiphysics, the Cahn-Hilliard equation is split up into two equations
 goes from −1 to 1. When solved in COMSOL Multiphysics, the Cahn-Hilliard equation is split up into two equations is the curvature, and δ equals a Dirac delta function that is nonzero only at the fluid interface.
 is the curvature, and δ equals a Dirac delta function that is nonzero only at the fluid interface. 



| 
                1	
               | 
| 
                2	
               | In the Select Physics tree, select Fluid Flow>Multiphase Flow>Two-Phase Flow, Level Set>Laminar Flow. | 
| 
                3	
               | Click Add. | 
| 
                4	
               | Click   Study. | 
| 
                5	
               | In the Select Study tree, select Preset Studies for Selected Multiphysics>Time Dependent with Phase Initialization. | 
| 
                6	
               | Click   Done. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | In the tree, select Built-in>Air. | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | Locate the Surface Tension section. Select the Include surface tension force in momentum equation check box. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | From the list, choose Pressure. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | In the Model Builder window, expand the Volume Fraction of Fluid 1 (ls) node, then click Volume Fraction of Fluid 1.1. | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | 
| 
                2	
               | Click Yes to confirm. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | Click Yes to confirm. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                1	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | In the Model Builder window, expand the Results>Volume Fraction of Fluid 1 (ls) 1 node, then click Volume Fraction of Fluid 1 (ls) 1. | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | Click Yes to confirm. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                6	
               | 
| 
                7	
               | 
| 
                1	
               | 
| 
                3	
               | In the Settings window for Line Integration, click Replace Expression in the upper-right corner of the Expressions section. From the menu, choose Component 1 (comp1)>Level Set>phils - Level set variable. | 
| 
                4	
               | Locate the Expressions section. In the table, enter the following settings: | 
| 
                5	
               | 
| 
                6	
               | Click   Evaluate. | 
| 
                1	
               | Go to the Table window. | 
| 
                2	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | Click OK. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                5	
               | 
| 
                1	
               | 
| 
                2	
               | In the Settings window for Color Expression, click Replace Expression in the upper-right corner of the Expression section. From the menu, choose Component 1 (comp1)>Definitions>Variables>theta - Contact angle expression. | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | 
| 
                4	
               | 
| 
                1	
               | 
| 
                2	
               | 
| 
                3	
               | Click OK. |