diffuseInterfaceFoam

diffuseInterfaceFoam#

Description#

diffuseInterfaceFoam is a transient WashOpenFOAM solver designed for multiphase fluid flows. The solver governs the interface using an extension of the Volume of Fluid (VOF) method that incorporates an interface compression term to limit numerical diffusion alongside a diffuse interface (phase-field) term to ensure interface smoothness and accurate surface tension evaluation.

Unlike traditional sharp-interface VOF methods, this approach treats the boundary between immiscible fluid phases as a continuous transition layer of finite thickness \(\epsilon\). This combined method suppresses excessive interface smearing during phase breakup, coalescence, contact line movement, and microfluidic interfacial dynamics while maintaining a smooth phase-indicator field for force calculations.

Mathematical Formulation#

The solver models two-phase flow by solving the modified phase transport advection-diffusion equation alongside the Navier-Stokes equations with capillary force feedback.

Continuity Equation:

\[\nabla \cdot \mathbf{U} = 0\]

Momentum Equation:

\[\frac{\partial (\rho \mathbf{U})}{\partial t} + \nabla \cdot (\rho \mathbf{U} \mathbf{U}) = -\nabla p + \nabla \cdot (\mu (\nabla \mathbf{U} + (\nabla \mathbf{U})^T)) + \mathbf{f}_\sigma + \rho \mathbf{g}\]

where:

  • \(\mathbf{f}_\sigma = \sigma \kappa \nabla \alpha\) is the surface tension force per unit volume evaluated using the Continuum Surface Force (CSF) model (\(\kappa\) is the interface curvature), identical to interFoam and interTempFoam.

  • \(\rho\) and \(\mu\) are mixture density and dynamic viscosity interpolated via the order parameter \(\alpha\):

\[\rho(\alpha) = \alpha \rho_1 + (1 - \alpha) \rho_2, \quad \mu(\alpha) = \alpha \mu_1 + (1 - \alpha) \mu_2\]

Phase Transport & Chemical Potential:

The time evolution of the colour function (order parameter) \(\alpha\) is governed by:

\[\frac{\partial \alpha}{\partial t} + \nabla \cdot (\mathbf{U} \alpha) = -\nabla \cdot \left[ \mathbf{U}_r \alpha (1 - \alpha) \right] + \nabla \cdot (M \nabla \psi)\]
\[\psi = \alpha^3 - 1.5 \alpha^2 + 0.5 \alpha - \epsilon^2 \nabla^2 \alpha\]

where:

  • \(\alpha\) is the colour function / order parameter (phase indicator field), bounded between 0 and 1.

  • \(-\nabla \cdot \left[ \mathbf{U}_r \alpha (1 - \alpha) \right]\) is the interface compression term that suppresses excessive numerical diffusion (\(\mathbf{U}_r\) is the relative velocity between fluids).

  • \(\nabla \cdot (M \nabla \psi)\) is the diffuse interface term that smoothes the interface.

  • \(M\) is the mobility coefficient.

  • \(\psi\) is the chemical potential.

  • \(\epsilon\) is the interface thickness parameter.

Usage#

To configure diffuseInterfaceFoam, you must define the order parameter, chemical potential, velocity, pressure, and Phase-Field transport properties.

1. Required Fields (0/ directory)

  • alpha.water: The order parameter field (phase concentration/fraction). Initialised with phase distribution values between 0 and 1.

  • psi: The chemical potential field.

  • U: The fluid velocity vector field.

  • p: The kinematic or static pressure field.

2. Transport Properties (constant/transportProperties)

You must define the physical properties of the phase mixture, surface tension coefficient sigma, and the Cahn-Hilliard parameters (interface thickness epsilon and mobility M) inside the diffuseInterface sub-dictionary.

// constant/transportProperties

phases (water air);

water
{
    transportModel  Newtonian;
    nu              nu [0 2 -1 0 0 0 0] 1.866e-05;
    rho             rho [1 -3 0 0 0 0 0] 1115;
}

air
{
    transportModel  Newtonian;
    nu              nu [0 2 -1 0 0 0 0] 1.512e-05;
    rho             rho [1 -3 0 0 0 0 0] 1.205;
}

sigma           sigma [1 0 -2 0 0 0 0] 0.0486;

diffuseInterface
{
    epsilon         epsilon [0 1 0 0 0 0 0] 1.5e-05;
    M               M [0 2 -1 0 0 0 0] 5e-06;
}

3. Solver Configuration (system/controlDict)

// system/controlDict
application     diffuseInterfaceFoam;
startFrom       startTime;
startTime       0;
stopAt          endTime;
endTime         10;
deltaT          0.0005;
writeControl    timeStep;
writeInterval   100;

4. Discretisation Schemes (system/fvSchemes)

Ensure appropriate schemes are selected for div(phi,alpha), laplacian(M,psi), and laplacian(epsilon|epsilon,alpha).

Tutorials#

Example tutorial cases demonstrating diffuseInterfaceFoam are available in:

  • tutorials/multiphase/diffuseInterfaceFoam/capillaryTubePressure: Capillary rise and Laplace pressure validation in a narrow tube.

  • tutorials/multiphase/diffuseInterfaceFoam/damBreakWithObstacle: Classic dam-break flow impacting a solid obstacle with diffuse interface capturing.