The Level Set Method
The level set method is a technique to represent moving interfaces or boundaries using a fixed mesh. It is useful for problems where the computational domain can be divided into two domains separated by an interface. Each of the two domains can consist of several parts. Figure 11-2 shows an example where one of the domains consists of two separated parts. The interface is represented by a certain level set or isocontour of a globally defined function, the level set function . In COMSOL Multiphysics, is a smooth step function that equals zero (0) in one domain and one (1) in the other. Across the interface, there is a smooth transition from zero to one. The interface is defined by the 0.5 isocontour, or level set, of . Figure 11-3 shows the level set representation of the interface in Figure 11-2.
Figure 11-2: An example of two domains divided by an interface. In this case, one of the domains consists of two parts. Figure 11-3 shows the corresponding level set representation.
Figure 11-3: A surface plot of the level set function corresponding to Figure 11-2.
The physics interface solves Equation 11-3 in order to move the interface with the velocity field u:
(11-3)
The terms on the left-hand side give the correct motion of the interface, while those on the right-hand side are necessary for numerical stability. The parameter, ε, determines the thickness of the region where varies smoothly from zero to one and is typically of the same order as the size of the elements of the mesh. By default, ε is constant within each domain and equals the largest value of the mesh size, h, within the domain. The parameter γ determines the amount of reinitialization or stabilization of the level set function. It needs to be tuned for each specific problem. If γ is too small, the thickness of the interface might not remain constant and oscillations in can appear because of numerical instabilities. On the other hand, if γ is too large the interface moves incorrectly. A suitable value for γ is the maximum magnitude of the velocity field u.