Initializing the Level Set Function
If the study type Transient with Phase Initialization is used in the model, the level set variable is first initialized so that it varies smoothly between zero and one over the interface. For that study, two study steps are created, Phase Initialization and Time Dependent. The Phase Initialization step solves for the distance to the initial interface, Dwi. The Time Dependent step then uses the initial condition for the level set function according to the following expression:
in domains initially outside the interface and
in domains initially inside the interface. Here, inside refers to domains where and outside refers to domains where .
For the initialization to work it is crucial that there are two Initial Values nodes and one Initial Interface node. One of the Initial Values nodes should use Specify phase: Fluid 1 () and the other Specify phase: Fluid 2 (). The Initial Interface node should have all interior boundaries where the interface is initially present as selection. If the selection of the Initial interface node is empty, the initialization fails.
Studies and Solvers and Time Dependent with Initialization in the COMSOL Multiphysics Reference Manual