Introduction
Multiphase free surface flows are prevalent in a wide range of applications, including the following:
- Wave impact on offshore structures (marine engineering)
- River flows and contaminant spreading (environmental engineering)
- Sloshing in tanks (aerospace engineering)
- Coolant/lubricant behavior (automotive industry)
The VOF method is an effective tool for simulating these types of flows. It tracks the
free surface location within the computational domain by solving an advection equation for
the volume fraction. When coupled with advanced numerical schemes like High-Resolution
Interface Capturing (HRIC), the VOF method can accurately and sharply predict the interface.
This topic discusses key aspects of using the VOF method, including interface sharpness,
time step selection, and best practices. In particular, the discussion addresses
considerations for time incrementation, solver settings, and output monitoring.
Interface Sharpness and Time Step Considerations
One of the challenges of the VOF method is maintaining a sharp interface between the
fluids. The app tracks the
interface using the High-Resolution Interface Capturing (HRIC) method, which is designed for
high-resolution interface capturing without introducing excessive numerical diffusion.
However, one limitation of HRIC is its stability requirement: you can apply it only in cells
with a very low local Courant-Friedrichs-Lewy (CFL) number, typically below 0.3-0.5. Running
simulations with such low CFL numbers in all cells is computationally expensive and often
impractical. In cells where the CFL number exceeds this limit, the app
automatically switches to the Upwind scheme. While this approach ensures stability, it
introduces numerical diffusion, resulting in interface smearing. This smearing becomes more
pronounced as the CFL number increases. This blending approach lets you apply the method
across a wider range of CFL numbers. However, selecting an appropriate time step is crucial
and depends on the specific application.
For applications requiring precise interface calculations, such as bubble dynamics studies,
a small time step is required to maintain the CFL number within the HRIC range. In other
applications, moderate interface smearing might not affect the results significantly. In
these cases, a larger time step can provide a sufficiently accurate solution at a much lower
computational cost. For example, in a dam break problem, the force of the water impacting a
downstream structure is less dependent on resolving the fine details of the air-water
interface during the bulk water's advance. In fact, using a larger time step in such cases
offers performance gains beyond reducing the number of time steps. A moderately smeared
interface reduces gradients (such as velocity, pressure, and density) near the interface,
leading to a better-conditioned linear system of equations that solves faster.
Fixed Time Increment Versus CFL-based Time Stepping
You can specify the time step of a simulation either as a constant time step or a
variable time step based on the Courant-Friedrichs-Lewy (CFL) number. The CFL-based
approach initially appears ideal for VOF because a low CFL number (for example, 0.3)
ensures HRIC usage in all cells, which produces a sharp, detailed interface. However, this
approach can be prohibitively expensive to compute. The CFL method calculates the time
step based on the most restrictive cell in the domain. This cell could be a poorly shaped
cell (perhaps in a corner) with isolated, nonphysical velocity spikes, or it could be a
cell in a region of locally accelerated flow away from the interface. Such localized
restrictions often lead to unnecessarily small time steps. Therefore, a constant time step
is often preferred.
The goal is to balance performance and accuracy. Excessively small time steps make the
simulation unnecessarily expensive, while excessively large time steps can lead to
inaccurate solutions because of overly diffused interfaces, convergence issues, or even
simulation failure. Finding the optimal value often requires some experimentation. A good
strategy is to start with a larger time step, which takes less time to test. If the number
of iterations required for convergence consistently reaches a limit after several time
steps, the simulation likely is not converging, which indicates that the time step is too
large. If the simulation completes with reasonable convergence, a quick visual inspection
of the results reveals whether the interface is sufficiently resolved, indicating whether
you might want to define a smaller time step. For VOF simulations, enabling automatic time
incrementation with a target CFL number of 0.5 is a good starting point to reduce
diffusion errors.
Consider the following recommendations as well:
- Using a low constant CFL might be overly restrictive.
- Start with a reasonably large constant time increment and look for good convergence
(fix point iterations not reaching the limit). If convergence is reasonable, assess the
interface sharpness of the results. Reduce the increment when seeing poor convergence or
when the results have excessively diffused interfaces.
VOF Method Applicability
The VOF method uses the segregated solver; you cannot use this method with the coupled
solver. You can solve using the VOF method if your simulation includes a VOF section in
which all fluids are incompressible or if one of the fluids is a compressible ideal gas. If
one of the fluids is compressible, use the VOF method only for flows with a low Mach number
and select the compressible fluid as the reference material.
Sharpening Factor
The sharpening factor, found in the VOF tab of the physics menu, introduces a controlled
amount of negative diffusion into the phase fraction transport equation. Applied normal to
the interface, this negative diffusion counteracts the numerical diffusion inherent in the
numerical scheme, effectively sharpening the interface and leading to more accurate
solutions over time. A sharp interface is crucial for accurate surface tension modeling. The
surface tension model relies on calculating interface curvature, and a sharper interface
leads to more accurate curvature calculations and, consequently, more accurate surface
tension forces.
The sharpening factor is useful in two main scenarios:
- When small time steps alone are insufficient to maintain interface sharpness. For
example, in a tank filling application with high-speed top injection, intense mixing can
over-diffuse the interface, even with low CFL numbers. Combining the sharpening factor
with a small time step maximizes interface sharpness in such cases.
- When using larger time steps for performance gains, the sharpening factor can mitigate
the resulting interface diffusion.
Negative diffusion can destabilize simulations. While a small amount helps minimize
interface smearing, excessive negative diffusion can cause instability. A coefficient
between 0.5 and 0.9 is generally considered safe.
CFL Specification with Sharpness Coefficient
The CFL number that you specify depends on your goals for the simulation:
- For optimal accuracy, use a low CFL in combination with the sharpness
coefficient.
- For obtaining performance gains, try combining larger CFL number with the sharpness
coefficient.
- For stability purposes, use a value between 0.5 and 0.9.
VOF Subcycling
For subcycling purposes, consider these three simulation configurations:
- No subcycling, constant CFL of 2.
- No subcycling, constant CFL of 0.5.
- Subcycling enabled, VOF CFL of 0.5, overall CFL of 2.
Option 2 is likely the most computationally expensive but also the most accurate. Option 1
is the fastest but might exhibit moderate interface smearing. Option 3 offers accuracy close
to option 2 but with slightly faster computation.
A limitation of subcycling is the decoupling of the volume fraction equation from the other
equations. This approach can reduce robustness compared to a fully implicit approach. In
challenging applications (such as complex fluid-fluid interfaces, mesh motion, or closed
containers at moderate to high pressures), convergence can already be difficult to achieve
without subcycling, so it is generally recommended not to use subcycling.
Subcycling the phase transport equation is another technique for achieving sharp interfaces
in multiphase simulations. When active, subcycling matches the phase fraction equation with
a smaller time step than other transport equations (such as momentum, pressure correction,
and turbulence). This approach lets the app solve the
VOF equation to be solved with the low CFL number required by HRIC, which minimizes
numerical dissipation while permitting the other solvers to use a larger CFL number (CFL >
1) that is more typical of implicit codes. This technique captures fine interface details at
a slightly reduced computational cost compared to using a globally low CFL number.
Monitoring VOF Simulations
When you run a VOF simulation, you can request output for several multiphase output
variables. You can also monitor the Relative Mass Error Rate output for a VOF simulation as
it progresses. The relative mass error rate describes the VOF phase mass conservation at
each interval, and is computed as:
where
is the sum of the phase mass imbalance in the simulation and
is the total phase mass.
Additional Considerations
Several additional factors can have an impact on a simulation that uses the VOF method:
Under-relaxation Factors
When running a simulation with a low CFL number (< 1), under-relaxation might not be
required and could slow convergence. In such cases, you can set the under-relaxation
factors to 1 to deactivate relaxation. With larger CFL numbers, applying some relaxation
(as suggested by default settings) can improve convergence.
Compressibility
When you enable compressible flow for the reference fluid (defined as an ideal gas), you
should tighten the pressure solver tolerance to at least 0.001.
Pressure Term Assembly
When you define a step, you can specify its pressure term assembly method as conservative
or nonconservative. In VOF simulations, the nonconservative approach often yields better
convergence.
Body Forces and Pressure Boundaries
When you apply a body force or an acceleration (such as gravity), the app
automatically applies a correction to pressure boundaries to impose the hydrostatic
pressure profile. In non-VOF simulations, this correction uses a reference elevation
defined in the physics defaults options. In VOF simulations, the correction altitude
should match the free surface elevation. Therefore, in VOF simulations, the code
automatically computes the actual free surface elevation.
Transient Flow
When you use the VOF method, you should also perform the following configurations to the
transient step parameters:
- Enable automatic time incrementation for
the step, and specify a CFL number of 0.5. These two settings reduce the diffusion
errors in the predicted multiphase interface.
- Set the under-relaxation factors to the
same values that you would use in a steady-state analysis. For example, set the
under-relaxation factors for momentum, turbulence and energy to 0.8, the pressure
under-relaxation factor to 0.2, and the volume fraction under-relaxation factor to 0.8
(the default value).
|