betaFeedback

WorksPhysics and Astronomy

A consistent coupled level-set and volume-of-fluid solver for two-phase flow in OpenFOAM

Abstract

Coupled level-set and volume-of-fluid methods combine the mass conservation of a transported volume fraction with the smooth interface description of a signed-distance function. In the simple coupled variant, the level set is rebuilt from the volume fraction during every time step rather than transported, and it supplies the interface curvature and the fluid properties. This paper presents an implementation of the simple coupled method in OpenFOAM and sets out four conditions that such an implementation must satisfy to stay consistent. The density in the time derivative and in the convective mass flux of the momentum equation must be the same field, the curvature in the surface tension force must come from the level set, the blended kinematic viscosity must reproduce the blended dynamic viscosity, and the smoothed fields must be evaluated on boundary and processor patches as well as in the cells. The solver is tested on the second two-dimensional rising-bubble case of Hysing et al. on two meshes. Up to t= 1.75 s, while the three reference codes of that benchmark agree, the rise velocity differs from the reference by at most 0.0064 and 0.0073 m/s on the two meshes, and its first maximum is 1.3% and 2.0% below the reference. These differences grow slightly with refinement. The same happens when the curvature and the properties are taken from the volume fraction, which reproduces the standard OpenFOAM solver, so their cause lies outside the coupling. Over the same interval the level-set coupling stays closer to the reference than this volume-fraction coupling, with a largest velocity difference of 0.0073 against 0.0094 m/s on the finer mesh. The bubble volume is conserved to the printed precision, and a run on four processors matches the serial run. The solver is released under the GNU General Public License.

Introduction

Bubbles, drops, and free surfaces are usually simulated on a fixed mesh with an interface-capturing method, in which a scalar field marks which fluid occupies each cell. The volume-of-fluid (VOF) method of Hirt and Nichols [1] transports the volume fraction of one fluid, so the mass of each phase is conserved by the discrete transport. However, the volume fraction changes sharply across the interface, and the normal and curvature computed from its gradient are noisy. In the continuum surface force model of Brackbill et al. [2], that curvature sets the surface tension force, so curvature errors drive spurious currents near the interface [3, 4]. The level-set method [5, 6] instead represents the interface as the zero contour of a signed-distance function. The function is smooth, so its normal and curvature are well defined, but it is not conserved under advection and reinitialisation, and the enclosed volume drifts over time.

Coupled level-set and volume-of-fluid methods use both fields. Sussman and Puckett [7] advected the level set and the volume fraction together and reinitialised the level set from the interface reconstructed from the volume fraction. Ménard et al. [8] combined a similar coupling with a ghost-fluid treatment of the pressure jump and applied it to the primary break-up of a liquid jet. Albadawi et al. [9] proposed a simpler coupling for the OpenFOAM VOF solver, in which only the volume fraction is transported and the level set is rebuilt from it at every time step. They used it to study how the implementation of surface tension influences the predicted growth and detachment of bubbles. Yamamoto et al. [10] later combined this simple coupled method with a density-scaled balanced surface force model and validated it for multiphase systems with thermocapillary flows.

The simple coupled method is attractive because it leaves the volume-fraction transport untouched and changes only how the curvature and the fluid properties are computed. It also introduces a second description of the same interface, and every quantity that enters the momentum equation must then be taken consistently from one of the two. An implementation can conserve mass in the transport step and still assemble a momentum equation whose terms see two different interfaces. This paper sets out four consistency conditions for the simple coupled method and implements them in an OpenFOAM solver, interLevelSetFoam, built on the interFoam VOF solver [11, 12]. The solver is assessed on the two-dimensional rising-bubble benchmark of Hysing et al. [13], against the reference solutions of that benchmark on two meshes, against the volume-fraction coupling on the same meshes, and in parallel.

Method

Governing equations

Two incompressible, isothermal, immiscible fluids are described as a single fluid with variable properties. The volume fraction α\alpha of fluid 1 is transported by

∂α∂t+∇⋅(Uα)+∇⋅[Urα(1−α)]=0,(1)\frac{\partial\alpha}{\partial t} + \nabla\cdot(\mathrm{U}\alpha) + \nabla\cdot[\mathrm{U}_{r}\alpha(1-\alpha)] = 0, \tag*{(1)}

where U\mathrm{U} is the mixture velocity and Ur=cα∣U∣n\mathrm{U}_{r}=c_{\alpha}|\mathrm{U}|\mathbf{n} is an artificial compression velocity normal to the interface, scaled by the coefficient cαc_{\alpha}. Equation (1) is solved with the MULES limiter of interFoam, which keeps α\alpha between 0 and 1 [12]. The velocity satisfies ∇⋅U=0\nabla\cdot\mathrm{U}=0 and the momentum equation

∂(ρU)∂t+∇⋅(m˙U)−U(∂ρ∂t+∇⋅m˙)=−∇prgh−(g⋅x)∇ρ+∇⋅[μ(∇U+∇UT)]+fσ,(2)\frac{\partial(\rho\mathrm{U})}{\partial t}+\nabla\cdot(\dot{\mathrm{m}}\mathrm{U})-\mathrm{U}\left(\frac{\partial\rho}{\partial t}+\nabla\cdot\dot{\mathrm{m}}\right)=-\nabla p_{rgh}-(\mathbf{g}\cdot\mathbf{x})\nabla\rho+\nabla\cdot[\mu(\nabla\mathrm{U}+\nabla\mathrm{U}^{\mathsf{T}})]+\mathbf{f}_{\sigma}, \tag*{(2)}

where ρ\rho is the density, m˙\dot{\mathrm{m}} is the mass flux, μ\mu is the dynamic viscosity, prgh=p−ρg⋅xp_{rgh}=p-\rho\mathbf{g}\cdot\mathbf{x} is the pressure without its hydrostatic part, g\mathbf{g} is the gravitational acceleration, and fσ\mathbf{f}_{\sigma} is the surface tension force per unit volume. The bracketed term on the left is zero when ρ\rho and m˙\dot{\mathrm{m}} satisfy the continuity equation of the mixture. Its discrete value is the mass imbalance of the two fields. Subtracting it removes the spurious source U(∂ρ/∂t+∇⋅m˙)\mathrm{U}(\partial\rho/\partial t+\nabla\cdot\dot{\mathrm{m}}) from the conservative form, so that for m˙≈ρU\dot{\mathrm{m}}\approx\rho\mathrm{U} the left-hand side reduces to ρDU/Dt\rho D\mathrm{U}/Dt whatever the size of the imbalance. The term is new relative to interFoam, and the reason for it is given in § 1.3.

Rebuilding the level set

Following Albadawi et al. [9], the level set ϕ\phi is rebuilt from the current volume fraction at every outer corrector of the time step. The lengths that control the rebuild are set as multiples of a reference cell size hh. First, an initial distance is assigned from the volume fraction as

ϕ0=(2α−1)Γ,Γ=0.75h,(3)\phi_0 = (2\alpha- 1)\Gamma, \qquad\Gamma= 0.75h, \tag*{(3)}

which is positive in fluid 1 and negative in fluid 2. Second, ϕ0\phi_0 is moved towards a signed distance by the reinitialisation equation of Sussman et al. [6],

∂ϕ∂τ=S(ϕ0)(1−∣∇ϕ∣),ϕ(τ=0)=ϕ0,(4)\frac{\partial\phi}{\partial\tau} = S(\phi_0)(1 - \lvert\nabla\phi\rvert), \qquad\phi(\tau= 0) = \phi_0, \tag*{(4)}

in the pseudo-time τ\tau, with S(ϕ0)=ϕ0/∣ϕ0∣S(\phi_0) = \phi_0/\lvert\phi_0\rvert and S(0)=0S(0) = 0. The interface is given a half-width ϵ=1.5h\epsilon= 1.5h. Equation (4) is advanced with explicit Euler steps of Δτ=0.1h\Delta\tau= 0.1h, with ∇ϕ\nabla\phi evaluated by the central Gauss linear scheme, for Nτ=⌈ϵ/Δτ⌉=15N_\tau= \lceil\epsilon/\Delta\tau\rceil= 15 steps. The distance is therefore corrected over a band of half-width ϵ\epsilon around the interface. The central gradient does not make ϕ\phi an exact distance, and the solver reports the mean of ∣1−∣∇ϕ∣∣\lvert1-\lvert\nabla\phi\rvert\rvert in the band at every rebuild. In the runs of § 2 it is between 0.1 and 0.2. Third, the smoothed Heaviside function and the interface curvature are evaluated from ϕ\phi as

H(ϕ)={0,ϕ<−ϵ,12[1+ϕϵ+1πsin⁡(πϕϵ)],∣ϕ∣≤ϵ,1,ϕ>ϵ,(5)H(\phi) = \begin{cases} 0, & \phi< -\epsilon,\\ \frac{1}{2}\left[1+\frac{\phi}{\epsilon}+\frac{1}{\pi}\sin\left(\frac{\pi\phi}{\epsilon}\right)\right], & \lvert\phi\rvert\le\epsilon,\\ 1, & \phi> \epsilon, \end{cases} \tag*{(5)}

and

κ=−∇⋅(∇ϕ∣∇ϕ∣).(6)\kappa= -\nabla\cdot\left(\frac{\nabla\phi}{\lvert\nabla\phi\rvert}\right). \tag*{(6)}

The curvature is computed from the face-interpolated gradient of ϕ\phi, normalised on each face and summed over the faces of each cell. The surface tension force is

fσ=σκ∇H=σκδ(ϕ)∇ϕ,(7)\mathbf{f}_{\sigma} = \sigma\kappa\nabla H = \sigma\kappa\delta(\phi)\nabla\phi, \tag*{(7)}

where σ\sigma is the surface tension coefficient and δ=dH/dϕ\delta= \mathrm{d}H/\mathrm{d}\phi is the smoothed Dirac delta. As in interFoam, Equation (7) is evaluated on the cell faces, as σκf\sigma\kappa_f times the face-normal gradient of HH, so that it enters the pressure equation in the same discrete form as the pressure gradient [3]. The density and the dynamic viscosity are blended with the same Heaviside function,

ρ=ρ1H+ρ2(1−H),μ=μ1H+μ2(1−H),(8)\rho= \rho_1H + \rho_2(1-H), \qquad\mu= \mu_1H + \mu_2(1-H), \tag*{(8)}

where the subscripts 1 and 2 denote the two fluids.

Consistency conditions

The volume fraction and the level set describe the same interface, but they are not identical, because HH changes smoothly over a band of width 2ϵ2\epsilon around the interface while α\alpha is transported as a separate field. Each term of Equation (2) must therefore take its interface from one of the two fields consistently, which leads to the conditions (C1) to (C4) below.

(C1) The density in the time derivative and in the mass flux must be the same field. In interFoam, the face mass flux is built inside the MULES step from the limited volume-fraction flux, so that it satisfies the discrete continuity equation together with ρ=ρ1α+ρ2(1−α)\rho= \rho_1\alpha+\rho_2(1-\alpha). Once ρ\rho is taken from Equation (8), that mass flux no longer matches it, and ∂(ρU)/∂t\partial(\rho\mathbf{U})/\partial t and ∇⋅(m˙U)\nabla\cdot(\dot{m}\mathbf{U}) see two different interfaces. The present solver builds the face mass flux from the same Heaviside function, m˙f=[ρ2+(ρ1−ρ2)Hf]Ff\dot{m}_f = [\rho_2+(\rho_1-\rho_2)H_f]F_f, where FfF_f is the volumetric face flux and HfH_f is the face-interpolated Heaviside function. Because HH is rebuilt rather than transported, the pair still does not satisfy the continuity equation exactly, and the remaining imbalance is removed by the bracketed term of Equation (2).

(C2) The curvature in the surface tension force must be the level-set curvature. The VOF mixture model in OpenFOAM computes its own curvature from α\alpha. If the level set is rebuilt but the force is still taken from that model, the surface tension is the same as in the VOF method and the level set has no effect on it. The same force must also be used in the momentum predictor and in the pressure equation.

(C3) The blended kinematic viscosity must reproduce the blended dynamic viscosity. The OpenFOAM viscous stress models take the kinematic viscosity ν\nu and form μ=ρν\mu= \rho\nu. Blending ν\nu linearly with HH while ρ\rho is also blended does not give the μ\mu of Eq. (8). For the fluids of § 2.1 at H=1/2H = 1/2, the product of the two linear blends is 27.5 Pa s, whereas the blended dynamic viscosity is 5.05 Pa s. The present solver sets ν=μ/ρ\nu= \mu/\rho with both taken from Eq. (8).

(C4) The smoothed fields must be evaluated on boundary and processor patches. Face interpolation of ρ\rho and the face-normal gradient of HH use the patch values at walls and at the boundaries between subdomains of a parallel run. If HH is computed only in the cells and its patch values keep their initial value, a wall in contact with fluid 1 carries the density of fluid 2. The hydrostatic term (g⋅x)∇ρ(\mathbf{g} \cdot\mathbf{x})\nabla\rho then acts on the wall faces as if a density jump sat on the wall, and the same error at processor boundaries makes the solution depend on the domain decomposition.

Implementation

The solver interLevelSetFoam is built on interFoam and has been compiled with OpenFOAM v2306, v2312, v2512, and v2606. The level-set steps are contained in one class that extends the immiscible two-phase mixture model of OpenFOAM, so the volume-fraction transport, the turbulence models, and the dynamic-mesh support of interFoam are used unchanged. Within each outer corrector of the PIMPLE loop, the volume fraction is first advanced by Eq. (1), including all of its MULES corrections. The level set is then rebuilt once from the new α\alpha, after which the Heaviside function, the curvature, and the viscosity are updated and ρ\rho and m˙f\dot{m}_f are set from HH. The momentum and pressure equations follow as in interFoam, with the surface tension force of Eq. (7). The Heaviside function is evaluated as 12[1+x+sin⁡(πx)/π]\frac{1}{2}[1+x+\sin(\pi x)/\pi] with x=ϕ/ϵx=\phi/\epsilon limited to [−1,1][-1,1]. This expression equals Eq. (5) everywhere and is applied to cells and patches alike. All parameters are read from an optional dictionary with the defaults given above, and hh defaults to the smallest distance between neighbouring cell centres. The curvature and the fluid properties can each be switched back to the volume fraction, which gives the volume-fraction coupling used for comparison in § 2.

Results

Rising-bubble benchmark

The test case is the second rising-bubble case of Hysing et al. [13], chosen because its density ratio of 1000 makes it sensitive to how the density enters the momentum equation. A circular bubble of fluid 2 with a radius of 0.25 m starts at rest at (0.5, 0.5) m in a closed 1 × 2 m box filled with fluid 1. The initial volume fraction is set with the setAlphaField utility of OpenFOAM, which computes the fraction of each cell cut by the circle. Table 1 lists the fluid properties, which give a Reynolds number of 35 and an Eötvös number of 125. The top and bottom walls are no-slip and the side walls are free-slip. The pressure prghp_{rgh} has a fixed-flux condition on all walls, so that no fluid crosses them. Two uniform meshes are used, with 1/h=801/h = 80 and 1/h=1601/h = 160 cells per metre, and the time step is fixed at the values in Table 1. The time derivatives use the Euler scheme, the momentum convection uses linear-upwind interpolation, and α\alpha is convected with the van Leer limiter and the compression coefficient cα=1c_\alpha= 1. Each time step has one PIMPLE outer corrector with three pressure correctors and no momentum predictor, and the MULES step uses two volume-fraction correctors. The level-set parameters are those of § 1.2. All runs use OpenFOAM v2606. The 1/h=1601/h = 160 runs use four processors, and the 1/h=801/h = 80 runs are serial unless stated otherwise.

QuantitySymbolValue
Density of fluid 1, fluid 2ρ1\rho_1, ρ2\rho_21000, 1 kg/m3^3
Dynamic viscosity of fluid 1, fluid 2μ1\mu_1, μ2\mu_210, 0.1 Pa s
Surface tension coefficientσ\sigma1.96 N/m
Gravitational acceleration∣g∣\lvert\mathbf{g}\rvert0.98 m/s2^2
Initial bubble radiusr0r_00.25 m
Mesh spacinghh1/80, 1/160 m
Time stepΔt\Delta t7.8125×10−47.8125 \times10^{-4}, 3.90625×10−43.90625 \times10^{-4} s

Table 1. Parameters of the rising-bubble benchmark, test case 2 of Hysing et al. [13]. Fluid 1 surrounds the bubble and fluid 2 fills it.

The centre of mass ycy_c and the rise velocity VcV_c of the bubble are defined by Hysing et al. [13] as averages of the vertical position and the vertical velocity over the region occupied by fluid 2. In the solver they are evaluated at every time step as averages weighted by 1−α1-\alpha. The first maximum of VcV_c is the largest value before t=1.3t = 1.3 s and the second is the largest value between t=1.5t = 1.5 and 2.62.6 s. Hysing et al. [13] solved this case with three codes, TP2D, FreeLIFE, and MooNMD, and their solutions are available from the benchmark website [14]. The TP2D solution on its finest mesh, 1/h=6401/h = 640, is used as the reference, and the spread of the three codes on their finest meshes indicates how well the reference itself is known. Hysing et al. reported that the three codes agree closely up to t=1.75t = 1.75 to 2.02.0 s, after which the trailing skirts of the bubble break up and the codes predict different shapes. They also described the second maximum of VcV_c as more ambiguous than the first, and the final centre of mass as of limited meaning because the final shape of the bubble is unknown. The comparison below therefore concentrates on the time up to t=1.75t = 1.75 s and on the first maximum. Table 2 collects the benchmark quantities of all runs.

Run1/h1/hVc,1V_{c,1} (m/s)Vc,2V_{c,2} (m/s)ycy_c (m)
TP2D800.2638 (0.725)0.2597 (1.969)1.1370
TP2D1600.2570 (0.743)0.2522 (2.023)1.1377
TP2D (reference)6400.2524 (0.733)0.2434 (2.071)1.1380
FreeLIFE1600.2514 (0.728)0.2440 (1.984)1.1249
MooNMD0.2502 (0.732)0.2393 (2.060)1.1376
Present800.2491 (0.734)0.2287 (1.913)1.1140
Present, no imbalance term800.2497 (0.714)0.2295 (1.886)1.1150
Volume-fraction coupling800.2488 (0.730)0.2278 (1.923)1.1100
interFoam800.2488 (0.730)0.2278 (1.923)1.1100
Present1600.2472 (0.738)0.2315 (1.982)1.1174
Volume-fraction coupling1600.2471 (0.734)0.2309 (2.001)1.1140

Table 2. Benchmark quantities for test case 2. Vc,1V_{c,1} and Vc,2V_{c,2} are the first and second maxima of the rise velocity, with the time of each in seconds in brackets, and ycy_c is the centre of mass at t=3t = 3 s. The reference rows are from Tables XIII and XVI of Hysing et al. [13]. MooNMD uses a moving interface-fitted mesh, so no mesh spacing is given for it. Differences quoted in the text are computed from the unrounded data.

Comparison with the reference solution

Figure 1a compares the rise velocity of the present solver with the reference. Up to t=1.75t = 1.75 s, where the three reference codes agree, the present rise velocity differs from TP2D by at most 0.0064 m/s on the 1/h=801/h = 80 mesh and 0.0073 m/s on the 1/h=1601/h = 160 mesh. The first maximum is 0.2491 m/s at t=0.734t = 0.734 s and 0.2472 m/s at t=0.738t = 0.738 s on the two meshes, against 0.2524 m/s at t=0.733t = 0.733 s for the reference. Its time agrees within 0.005 s, and its value is 1.3% and 2.0% low. On the finer mesh it lies 1.2% below the lowest of the three codes, MooNMD.

Figure 1. Comparison with the reference solutions of Hysing et al. [13]. The grey band is the range of the three benchmark codes on their finest meshes. (a) Rise velocity, with the first maximum enlarged in the inset. (b) Offset of the centre of mass from the TP2D reference.

Refining the mesh moves the solution slightly away from the reference in this interval, although the TP2D values on the same two meshes approach it. From 1/h=801/h = 80 to 160, the shortfall at the first maximum grows from 1.3% to 2.0%, the largest velocity difference grows from 0.0064 to 0.0073 m/s, and the offset of the centre of mass at t=1.75t = 1.75 s grows from 2.8 to 5.7 mm (Figure 1b). The volume-fraction coupling behaves in the same way, with a first maximum within 0.0003 m/s of the level-set coupling on both meshes. The cause therefore lies in a part of the solver that both couplings share, and the time step, which is refined together with the mesh, is one candidate that this study did not vary.

After t=1.75t = 1.75 s the differences grow. Up to t=2.0t = 2.0 s, the upper end of the interval in which Hysing et al. found agreement, the largest velocity difference is 0.0109 m/s on the 1/h=1601/h = 160 mesh and 0.0158 m/s on the 1/h=801/h = 80 mesh. The second maximum is 0.2315 m/s at t=1.982t = 1.982 s on the finer mesh, 4.9% below the reference and 3.3% below the lowest of the three codes. At t=3t = 3 s the centre of mass on the finer mesh is 1.1174 m, 20.7 mm below TP2D and below all three codes. Relative to the distance the bubble has risen, the offset from TP2D is 3.2%.

Figure 2 compares the bubble shapes at t=3t = 3 s. On the vertical centreline the cap of the present solution is at y=1.349y = 1.349 m, against 1.352 to 1.359 m for the three codes, and its lower surface is at 1.003 m, against 0.999 to 1.002 m. The trailing skirts differ more. In TP2D they have broken off into satellite droplets near y=0.6y = 0.6 m. On the 1/h=1601/h = 160 mesh the skirts of the present solution have also broken off, on each side into a filament one cell wide between y=0.70y = 0.70 and 0.79 m and a droplet between y=0.61y = 0.61 and 0.70 m, and the volume-fraction coupling gives the same picture. On the 1/h=801/h = 80 mesh the skirts are still attached to the bubble at t=3t = 3 s. FreeLIFE and MooNMD give two further shapes for the skirts, which illustrates the remark of Hysing et al. [13] that the codes differ after break-up.

Figure 2. Bubble shape at t=3t = 3 s. The present solver and the volume-fraction coupling are shown as the α=0.5\alpha= 0.5 contour on the 1/h=1601/h = 160 mesh. The three benchmark codes are shown on their finest meshes [13].

Coupling options and parallel run

With both the curvature and the properties taken from the volume fraction, the solver reproduces interFoam on the 1/h=801/h = 80 mesh to all digits in Table 2, which confirms that the added mass-imbalance term has no visible effect when ρ\rho and m˙f\dot{m}_f both come from the MULES step. Up to t=1.75t = 1.75 s, the level-set coupling stays closer to the reference than this volume-fraction coupling on both meshes. Its largest velocity difference from TP2D is 0.0073 m/s on the 1/h=1601/h = 160 mesh, against 0.0094 m/s, and its centre of mass at t=1.75t = 1.75 s is 5.7 mm below TP2D, against 7.6 mm. On the 1/h=801/h = 80 mesh the corresponding values are 0.0064 and 0.0082 m/s, and 2.8 and 4.4 mm. The difference persists to t=3t = 3 s, where the centre of mass on the finer mesh is 20.7 mm below TP2D for the level-set coupling and 24.0 mm for the volume-fraction coupling. The mass-imbalance term was also removed from the level-set coupling, in a separate build of the solver, on the 1/h=801/h = 80 mesh. This moved the solution slightly closer to the reference, by 0.5 mm in the centre of mass at t=1.75t = 1.75 s and 1.1 mm at t=3t = 3 s, so in this case the term gives no measurable benefit. It is kept because it makes the discrete momentum equation consistent with the mass flux whatever the size of the imbalance. In every run the volume fraction of fluid 1 printed by the solver to six significant digits is the same at t=0t = 0 and t=3t = 3 s, so the bubble volume changes by less than 0.001%.

The 1/h=801/h = 80 case was also run on four processors with a 2×22 \times2 decomposition. Over the whole run, the centre of mass differs from the serial result by at most 2.9×10−62.9 \times10^{-6} m and the rise velocity by at most 1.8×10−51.8 \times10^{-5} m/s, which confirms that the smoothed fields are consistent across processor boundaries.

Conclusions

A simple coupled level-set and volume-of-fluid solver was implemented in OpenFOAM, in which the volume fraction is transported by the MULES scheme of interFoam and a signed-distance function is rebuilt from it at every outer corrector to supply the curvature, the density, and the viscosity. Four conditions were set out that keep the two descriptions of the interface consistent in the momentum equation. The density in the time derivative and in the mass flux must be the same field, the surface tension force must use the level-set curvature, the blended kinematic viscosity must reproduce the blended dynamic viscosity, and the smoothed fields must be evaluated on boundary and processor patches. A mass-imbalance term was added to the momentum equation, so that it stays consistent although the rebuilt density is not transported exactly by the mass flux.

The solver was tested on the second rising-bubble case of Hysing et al. [13] on meshes with 1/h=801/h = 80 and 160. Up to t=1.75t = 1.75 s, where the three reference codes agree, the rise velocity differed from the TP2D reference by at most 0.0064 and 0.0073 m/s on the two meshes. The first maximum of the rise velocity was 1.3% and 2.0% below the reference, at the same time within 0.005 s. These differences grew slightly with refinement, and the volume-fraction coupling, which reproduced interFoam, showed the same trend, so they do not come from the level-set coupling. In the same interval the level-set coupling stayed closer to the reference than the volume-fraction coupling, with largest velocity differences of 0.0073 against 0.0094 m/s on the finer mesh. At t=3t = 3 s the cap and the lower surface of the bubble were within 10 mm of the three reference codes, and on the finer mesh the trailing skirts had broken off, as in TP2D. The bubble volume was conserved to the printed precision in every run, and a run on four processors matched the serial run to 2.9×10−62.9 \times10^{-6} m in the centre of mass.

The runs test a solver that satisfies the four conditions. Apart from the mass-imbalance term, they do not isolate the effect of violating each condition. Removing that term changed the centre of mass by about 1 mm and gave no measurable loss of accuracy in this case. The source of the small shortfall that grows with refinement remains to be identified, and the time step, which was refined together with the mesh, is the first candidate to test.

Code availability

The solver and the rising-bubble tutorial are available at https://github.com/cloner0110/LevelSet-VOF under the GNU General Public License v3.

Conflict of interest statement

The author has no conflicts to disclose.

References

  1. [1]Hirt, C.W., Nichols, B.D.: Volume of fluid (VOF) method for the dynamics of free boundaries. Journal of Computational Physics 39(1), 201–225 (1981) https://doi.org/10.1016/0021-9991(81)90145-5
  2. [2]Brackbill, J.U., Kothe, D.B., Zemach, C.: A continuum method for modeling surface tension. Journal of Computational Physics 100(2), 335–354 (1992) https://doi.org/10.1016/0021-9991(92)90240-Y
  3. [3]Francois, M.M., Cummins, S.J., Dendy, E.D., Kothe, D.B., Sicilian, J.M., Williams, M.W.: A balanced-force algorithm for continuous and sharp interfacial surface tension models within a volume tracking framework. Journal of Computational Physics 213(1), 141–173 (2006) https://doi.org/10.1016/j.jcp.2005.08.004
  4. [4]Popinet, S.: Numerical models of surface tension. Annual Review of Fluid Mechanics 50, 49–75 (2018) https://doi.org/10.1146/annurev-fluid-122316-045034
  5. [5]Osher, S., Sethian, J.A.: Fronts propagating with curvature-dependent speed: Algorithms based on Hamilton–Jacobi formulations. Journal of Computational Physics 79(1), 12–49 (1988) https://doi.org/10.1016/0021-9991(88)90002-2
  6. [6]Sussman, M., Smereka, P., Osher, S.: A level set approach for computing solutions to incompressible two-phase flow. Journal of Computational Physics 114(1), 146–159 (1994) https://doi.org/10.1006/jcph.1994.1155
  7. [7]Sussman, M., Puckett, E.G.: A coupled level set and volume-of-fluid method for computing 3D and axisymmetric incompressible two-phase flows. Journal of Computational Physics 162(2), 301–337 (2000) https://doi.org/10.1006/jcph.2000.6537
  8. [8]Ménard, T., Tanguy, S., Berlemont, A.: Coupling level set/VOF/ghost fluid methods: Validation and application to 3D simulation of the primary break-up of a liquid jet. International Journal of Multiphase Flow 33(5), 510–524 (2007) https://doi.org/10.1016/j.ijmultiphaseflow.2006.11.001
  9. [9]Albadawi, A., Donoghue, D.B., Robinson, A.J., Murray, D.B., Delauré, Y.M.C.: Influence of surface tension implementation in Volume of Fluid and coupled Volume of Fluid with Level Set methods for bubble growth and detachment. International Journal of Multiphase Flow 53, 11–28 (2013) https://doi.org/10.1016/j.ijmultiphaseflow.2013.01.005
  10. [10]Yamamoto, T., Okano, Y., Dost, S.: Validation of the S-CLSVOF method with the density-scaled balanced continuum surface force model in multiphase systems coupled with thermo-capillary flows. International Journal for Numerical Methods in Fluids 83(3), 223–244 (2017) https://doi.org/10.1002/fld.4267
  11. [11]Weller, H.G., Tabor, G., Jasak, H., Fureby, C.: A tensorial approach to computational continuum mechanics using object-oriented techniques. Computers in Physics 12(6), 620–631 (1998) https://doi.org/10.1063/1.168744
  12. [12]Deshpande, S.S., Anumolu, L., Trujillo, M.F.: Evaluating the performance of the two-phase flow solver interFoam. Computational Science & Discovery 5(1), 014016 (2012) https://doi.org/10.1088/1749-4699/5/1/014016
  13. [13]Hysing, S., Turek, S., Kuzmin, D., Parolini, N., Burman, E., Ganesan, S., Tobiska, L.: Quantitative benchmark computations of two-dimensional bubble dynamics. International Journal for Numerical Methods in Fluids 60(11), 1259–1288 (2009) https://doi.org/10.1002/fld.1934
  14. [14]FeatFlow: Rising bubble benchmark: reference results. http://www.featflow.de/en/benchmarks/cfdbenchmarking/bubble/bubble_reference.html. Accessed 16 October 2026 (2026)

Paper details

vlnc:W_nhtj6rsk
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents