Algorithm Search⌘K

Techniqueadvanced

Continuum surface force model

Also called CSF model.

Models surface tension as a volume force near the interface, equal to curvature times the gradient of a smoothed color function.

The continuum surface force (CSF) model of Brackbill, Kothe and Zemach (1992) puts surface tension into a grid flow solver as an ordinary body force. At a curved interface between two fluids, surface tension makes a jump in pressure, σκ\sigma\kappa in the normal direction, where σ\sigma is the surface tension coefficient and κ\kappa the curvature. A grid code cannot apply a force on a surface that cuts through its cells. The CSF model replaces it with the volume force f=σκ∇c~f = \sigma\kappa\nabla\tilde c, where c~\tilde c is a color function that is 1 in one fluid and 0 in the other, smoothed over a few cells. Integrated across the interface, this force gives exactly the jump σκ\sigma\kappa, whatever the width of the smoothing. It works with the volume of fluid method, with a level set, and in particle codes.

In plain words

Surface tension acts like a stretched skin on a drop: it squeezes the drop, so the pressure inside is higher than outside, by more when the drop is smaller. A grid code does not know where the skin is exactly; it only has a field that tells, cell by cell, how much of each fluid is there. The CSF model smooths that field a little, so it changes from 1 to 0 over a few cells. Where it changes, its gradient points across the interface. The model pushes on the fluid in those cells, along the gradient, with a strength set by the curvature. The total push across the band is the same as the push of the real skin, so the flow solver sees the right pressure jump. The weak point is the curvature, which must be computed from the smoothed field and is noisy.

When it applies

  • Any flow solver that works with a body force and represents the interface with a field: VOF fractions, a level set, a phase field, or SPH particle colors.
  • Surface tension that matters at the scale of the grid: drops, bubbles, jets, capillary waves, films, and flows at small Bond or Weber number.
  • The model needs a curvature estimate at the interface. Its accuracy, not the CSF form, sets the accuracy of the surface tension.
  • For a sharp pressure jump without a smoothed force, use a jump condition in the pressure solve, as in the ghost fluid method. For an explicit interface mesh, compute the force on the mesh and spread it, as in front tracking.

The template

  1. CSF-FORCE(c, σ)
  2. 1c̃ ← smooth(c) ▷ a few passes of a 1-2-1 filter, or a kernel
  3. 2g ← ∇c̃ ▷ at the cell corners
  4. 3n̂ ← g / |g| where |g| > 0 ▷ unit normal, into the fluid with c = 1
  5. 4κ ← -∇ · n̂ ▷ at the cell centers
  6. 5f ← σ κ ∇c̃ / [c] ▷ [c] = 1 is the jump of the color function
  7. 6add f to the momentum equation, with ∇p and f on the same faces
  8. 7return f

The holes are the color function cc (the VOF fractions, or a Heaviside function of a level set), the smoothing of line L1, and the places where ∇c~\nabla\tilde c and κ\kappa are evaluated. In Brackbill, Kothe and Zemach (1992) the force is also scaled by ρ/⟨ρ⟩\rho/\langle\rho\rangle with ⟨ρ⟩\langle\rho\rangle the mean of the two densities, which moves the force toward the denser fluid.

Why the integral is right. Take a point on the interface and a coordinate ss along the normal, through the band where c~\tilde c goes from 1 to 0. If the curvature is the same across the band, then

∫f⋅n^ ds=σκ∫dc~ds ds=σκ [c],\int f \cdot \hat n\,ds = \sigma\kappa\int\frac{d\tilde c}{ds}\,ds = \sigma\kappa\,[c],

which is the jump of the sharp interface for any smoothing, since only the end values of c~\tilde c enter. For example, with a linear ramp of width ε\varepsilon, dc~/ds=1/εd\tilde c/ds = 1/\varepsilon over a length ε\varepsilon, and the integral is 1 for every ε\varepsilon.

The Laplace check. A drop at rest must have ∇p=f\nabla p = f and zero velocity. In 2D a circle of radius RR has κ=1/R\kappa = 1/R, so the pressure jump is σ/R\sigma/R (the Young-Laplace law; in 3D a sphere has κ=2/R\kappa = 2/R and the jump is 2σ/R2\sigma/R). For σ=1\sigma = 1 and R=0.25R = 0.25 the exact jump is 4. A short script computed the fractions of the circle on an N×NN \times N periodic grid, smoothed them with 0 to 4 passes of the 1-2-1 filter in each direction, and applied lines L2 to L5. The table gives the root mean square and the largest error of κR\kappa R in the mixed cells of the unsmoothed field, and the jump ∫fx dx\int f_x\,dx along the grid row through the center, times R/σR/\sigma:

NN passes rms error of κR\kappa R max error of κR\kappa R Δp R/σ\Delta p\,R/\sigma
32 0 0.40 0.65 1.061
32 1 0.13 0.21 1.096
32 2 0.070 0.11 1.082
32 4 0.041 0.059 1.089
64 0 0.52 1.20 1.000
64 1 0.16 0.37 1.062
64 2 0.087 0.21 1.039
64 4 0.042 0.086 1.022

Without smoothing, the curvature of the raw fractions has errors of 40% to 50% that do not go down with refinement, which is the known failure of curvature from second differences of a step function. Smoothing reduces them to about 4%. The jump along one line is within 2% to 10% of σ/R\sigma/R; the smoothed field has level lines of radii a little different from RR, so the force is spread over a band where the curvature is not exactly 1/R1/R, and the bias falls as the band becomes thinner on the finer grid. The value 1.000 for the raw field at N=64N = 64 comes from errors that cancel along that particular row. The total force on the grid was zero to 10−1510^{-15} in all cases.

Classic examples

  • VOF with CSF. The model was built for the volume of fluid method, with cc the volume fractions and the reconstruction of PLIC used only for the advection. Many VOF codes still use CSF, now with curvature from height functions.
  • Level set methods. With a level set ϕ\phi, the color function is a smoothed Heaviside Hε(ϕ)H_\varepsilon(\phi), so ∇c~=δε(ϕ)∇ϕ\nabla\tilde c = \delta_\varepsilon(\phi)\nabla\phi, and the curvature is −∇⋅(∇ϕ/∣∇ϕ∣)-\nabla \cdot (\nabla\phi/|\nabla\phi|) of a smooth distance function. This gives much better curvature than raw fractions.
  • Smoothed particle hydrodynamics. SPH codes give each particle a color, compute ∇c\nabla c and the curvature with kernel sums, and add σκ∇c/ρ\sigma\kappa\nabla c/\rho as a force per particle.
  • Phase field and lattice Boltzmann models. In a phase field model the force comes from the chemical potential and has the same integral; color-gradient models of the lattice Boltzmann method use a force of the CSF form on the lattice.
  • Front tracking. Front tracking uses the same idea in the other direction: the surface force is computed on the front and spread onto the grid as a body force with a smoothed delta function.

Variations

  • Density scaling. The factor ρ/⟨ρ⟩\rho/\langle\rho\rangle of Brackbill, Kothe and Zemach (1992) shifts the force toward the denser fluid, so that the two sides of an interface with a large density ratio are accelerated more evenly.
  • Continuum surface stress. The force is written as the divergence of a capillary stress tensor built from σ\sigma, n^\hat n and ∣∇c~∣|\nabla\tilde c|, which needs no explicit curvature and conserves momentum in conservative form.
  • Balanced force. Francois and co-workers (2006) evaluate ∇p\nabla p and σκ∇c~\sigma\kappa\nabla\tilde c with the same discrete gradient at the same faces. Then a drop with a constant discrete curvature is at rest exactly, and the spurious currents come only from curvature errors.
  • Height functions. The curvature is computed from sums of volume fractions along grid columns near the interface, which gives a second-order curvature in VOF codes; see Popinet (2018) for a review.
  • Sharp interface methods. The ghost fluid method puts the jump σκ\sigma\kappa into the pressure solve without smoothing; it has the same sensitivity to curvature errors.

Pitfalls

  • Spurious currents. A drop at rest develops small vortices around its interface, called spurious or parasitic currents. They appear when the discrete ∇p\nabla p cannot balance the discrete force, and when the curvature is not constant along a circle. With a balanced-force scheme only the curvature error is left, and the velocities scale with σ/μ\sigma/\mu times that error.
  • Raw curvature. The table shows that the curvature of unsmoothed fractions does not converge. Smooth, use height functions, or compute it from a level set.
  • Too much smoothing. A wide band moves the force away from the interface and blurs small features. Smooth just enough to tame the curvature, typically over two to four cells.
  • The capillary time step. Explicit surface tension is stable only for Δt≲⟨ρ⟩Δx3/(2πσ)\Delta t \lesssim \sqrt{\langle\rho\rangle\Delta x^3/(2\pi\sigma)}, the time scale of the shortest capillary wave on the grid. This limit falls like Δx3/2\Delta x^{3/2} and is often the smallest step in the run.
  • Force at the wrong place. Evaluating κ\kappa and ∇c~\nabla\tilde c at different points, or ff and ∇p\nabla p at different points, breaks the balance with the pressure and increases the spurious currents.
  • The 3D jump. The Laplace check in 3D uses 2σ/R2\sigma/R, since a sphere has two principal curvatures 1/R1/R; using σ/R\sigma/R is a common error when moving a 2D test to 3D.

Exercises

  1. For the linear ramp of width ε\varepsilon, show that ∫σκ dc~/ds ds=σκ\int\sigma\kappa\,d\tilde c/ds\,ds = \sigma\kappa. Then take a circle, with c~\tilde c a linear ramp in rr over R−ε/2<r<R+ε/2R - \varepsilon/2 < r < R + \varepsilon/2 and the curvature of its level lines, κ=1/r\kappa = 1/r. Find the jump, and show that it is σR(1+ε212R2+O(ε4/R4))\frac{\sigma}{R}\bigl(1 + \frac{\varepsilon^2}{12R^2} + O(\varepsilon^4/R^4)\bigr).
  2. Show that the total CSF force on a closed drop, ∫σκ∇c~ dV\int\sigma\kappa\nabla\tilde c\,dV, is zero when κ\kappa is constant, and explain why it is not zero in general for a discrete κ\kappa.
  3. Estimate the capillary time step for water and air (σ=0.07\sigma = 0.07 N/m, ⟨ρ⟩=500\langle\rho\rangle = 500 kg/m³) on a grid with Δx=10 μ\Delta x = 10\,\mum, and compare it with the time step from the flow speed of 1 m/s at a Courant number of 0.5.

References

  1. J. U. Brackbill, D. B. Kothe and C. Zemach, A continuum method for modeling surface tension, Journal of Computational Physics 100 (1992) 335-354, the volume force from the color function, the curvature as minus the divergence of the unit normal, and the static drop test
  2. M. M. Francois, S. J. Cummins, E. D. Dendy, D. B. Kothe, J. M. Sicilian and M. W. Williams, A balanced-force algorithm for continuous and sharp interfacial surface tension models within a volume tracking framework, Journal of Computational Physics 213 (2006) 141-173, the balanced-force discretization and the spurious currents caused by curvature errors
  3. Stéphane Popinet, Numerical models of surface tension, Annual Review of Fluid Mechanics 50 (2018) 49-75, well-balanced surface tension, curvature estimation and the time step limit for capillary waves
  4. Ruben Scardovelli and Stéphane Zaleski, Direct numerical simulation of free-surface and interfacial flow, Annual Review of Fluid Mechanics 31 (1999) 567-603

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW3 standard
  • five exercises