Once you have initialized the flow (as described in Initializing the Solution), you can define the initial
distribution of the phases. For a transient simulation, this distribution
will serve as the initial condition at ; for a steady-state
simulation, setting an initial distribution can provide added stability
in the early stages of the calculation.
You can patch an initial volume fraction for each secondary phase using the Patch Dialog Box.
Solution → Initialization
Patch...
If the region in which you want to patch the volume fraction is defined as a separate cell zone, you can simply patch the value there. Otherwise, you can create a cell “register” that contains the appropriate cells and patch the value in the register. See Patching Values in Selected Cells for details.
If you are using the VOF model or the Eulerian model with Multi-Fluid VOF enabled, you have additional options for how the volume fraction is patched in a user-defined register. By default the patching procedure will initialize all of the cells in the register with the specified volume fraction, without any special treatment for cells that are intersected by the fluid-fluid interface.

This option uses piecewise-linear interface reconstruction to identify the fluid-fluid interface and patches the actual volume fraction field in the cells that intersect the interface.

Important: The Patch Reconstructed Interface algorithm requires that the register coordinates in the dialog box be well-ordered. That is: X Min < X Max; Y Min < Y Max; Z Min < Z Max. In particular, if you use the Select Points with Mouse feature to specify the coordinates, be sure that this condition is met.
The Patch Reconstructed Interface will be applied only on the last register that was defined, even if multiple registers are selected in the Patch dialog box. Therefore, it is recommended that you create and patch registers one at a time.
This option smooths the volume fraction field on-demand
by taking the volumetric average over the cell neighbors. This can
help provide better solution stability at startup. After enabling Volumetric Smoothing, you can click Smooth to apply the smoothing. Note that the smoothing is applied to the
volume fraction field for all phases in the full domain. The Smoothing Relaxation Factor controls the degree of smoothing
applied. You can specify a value between 0 (no smoothing) and 1 (maximum smoothing).
For most cases, the default value is recommended. For fine meshes
you may choose to try a larger value to aid solution startup. However,
excessively large values can have an undesirable effect during the
solution as interface sharpening discretization schemes may deteriorate
the initial field.
The Smooth command can be used at any time after the solution has been initialized. It can therefore also be used after reading a data file for postprocessing. However, note that the smoothed field will overwrite the original volume fraction field in this case. Also note that you must select a secondary phase variable from the drop-down list in the Patch dialog box to expose the Volumetric Smoothing option.