resolvedDiffuseInterfaceLAMMPSFoam#

Description#

resolvedDiffuseInterfaceLAMMPSFoam is a transient, fully resolved CFD-DEM solver designed for three-phase flows comprising two immiscible fluid phases and solid particles. The fluid-fluid interface is tracked 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, combined with resolved solid-fluid coupling powered by WASHLIGGGHTS.

Key features include:

  • Fluid-Fluid Phase Transport: Governed by an extended advection-diffusion equation combining VOF interface compression \(-\nabla \cdot \left[ \mathbf{U}_r \alpha (1 - \alpha) \right]\) and diffuse interface diffusion \(\nabla \cdot (M \nabla \psi)\).

  • Solid-Fluid Interaction: Incorporates Immersed Boundary (IB) or Volume Penalisation (VP) methods to resolve particle forces and fluid motion.

  • Immersed Free Surface (IFS) Method: Enforces dynamic contact angles and capillary liquid bridge dynamics at solid-fluid-fluid contact lines.

  • Adaptive Mesh Refinement (AMR): Dynamically refines grid cells near fluid-fluid and solid-fluid interface regions using a combined indicator function.

  • WASHLIGGGHTS DEM Coupling: Fully coupled with discrete particle dynamics (positions, orientations, velocities, contact forces).

Mathematical Formulation#

The solver computes three-phase flow dynamics by solving coupled Navier-Stokes equations with resolved solid-fluid interaction (Immersed Boundary or Volume Penalisation), modified phase transport advection-diffusion, and discrete particle motion.

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 + \mathbf{f}_{\text{solid}} + \rho \mathbf{g}\]

where:

  • \(\mathbf{f}_\sigma = \sigma \kappa \nabla \alpha\) is the surface tension force evaluated via the Continuum Surface Force (CSF) model (\(\kappa\) is the interface curvature).

  • \(\mathbf{f}_{\text{solid}}\) is the solid interaction force calculated using either the Immersed Boundary (IB) or Volume Penalisation (VP) model.

  • \(\rho(\alpha) = \alpha \rho_1 + (1 - \alpha) \rho_2\) and \(\mu(\alpha) = \alpha \mu_1 + (1 - \alpha) \mu_2\) are mixture density and dynamic viscosity.

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 fraction field), bounded between 0 and 1.

  • \(-\nabla \cdot \left[ \mathbf{U}_r \alpha (1 - \alpha) \right]\) is the VOF interface compression term to suppress numerical diffusion (\(\mathbf{U}_r\) is the relative velocity).

  • \(\nabla \cdot (M \nabla \psi)\) is the diffuse interface term governing interface smoothness.

  • \(M\) is the mobility coefficient.

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

  • \(\epsilon\) is the gas-liquid interface thickness parameter.

Solid Interaction Models (IB & VP):

The smooth solid volume fraction field \(\alpha_s\) across the particle-fluid interface is computed using a hyperbolic tangent transition function:

\[\alpha_s = \frac{1}{2} \left[ 1 - \tanh \left( \frac{\phi}{\delta} \right) \right]\]

where:

  • \(\phi\) is the signed distance function from the solid particle surface (\(\phi < 0\) inside the particle and \(\phi > 0\) in the fluid domain).

  • \(\delta\) is the solid-fluid interface thickness parameter.

  • Immersed Boundary (IB) Method (immersedBoundaryExplicit & immersedBoundarySemiImplicit): In the Immersed Boundary method, fluid velocity inside the solid particle domain is projected onto the particle velocity, and the solid interaction force is reconstructed. For details, refer to immersedBoundaryExplicit and immersedBoundarySemiImplicit.

  • Volume Penalisation (VP) Methods (volumePenalisationExplicit & volumePenalisationImplicit): In the Volume Penalisation method, a momentum penalisation force proportional to the velocity difference between fluid and solid phases is applied. For details, refer to volumePenalisationExplicit and volumePenalisationImplicit.

Immersed Free Surface (IFS) Method:

To account for wettability, the Immersed Free Surface (IFS) method artificially extends the gas-liquid free surface from the exterior into the interior of the particle domain (where solid volume fraction \(\alpha_s \ge 0.5\)). The time evolution of the extended colour function \(\alpha\) inside the particle domain is governed by the IFS transport equation:

\[\frac{\partial \alpha}{\partial \tau} + \mathbf{t}_{\text{ext}} \cdot \nabla \alpha = 0\]

where \(\tau\) is the pseudo-time, and \(\mathbf{t}_{\text{ext}}\) is the direction vector extending the colour function into the particle interior at specified contact angle \(\theta\).

  • Direction Vector Calculation: The extension direction vector \(\mathbf{t}_{\text{ext}}\) is computed without conditional statements as:

    \[\mathbf{t}_{\text{ext}} = \frac{\mathbf{n}_s - (\mathbf{n}_{\text{ext}} \cdot \mathbf{n}_s)\mathbf{n}_{\text{ext}}}{|\mathbf{n}_s - (\mathbf{n}_{\text{ext}} \cdot \mathbf{n}_s)\mathbf{n}_{\text{ext}}|}\]
    \[\mathbf{n}_{\text{ext}} = \mathbf{n}_s \cos \theta + \mathbf{t}_s \sin \theta\]
    \[\mathbf{t}_s = \frac{\nabla \alpha - (\mathbf{n}_s \cdot \nabla \alpha)\mathbf{n}_s}{|\nabla \alpha - (\mathbf{n}_s \cdot \nabla \alpha)\mathbf{n}_s|}\]

    where \(\mathbf{n}_s\) is the surface unit normal vector pointing towards the solid, \(\mathbf{t}_s\) is the unit tangent vector perpendicular to \(\mathbf{n}_s\) pointing toward the liquid phase, and \(\mathbf{n}_{\text{ext}}\) is the unit normal vector specified by contact angle \(\theta\) perpendicular to \(\mathbf{t}_{\text{ext}}\).

    In the implementation, the particle surface unit normal vector \(\mathbf{n}_s\) is evaluated from the normalised gradient of the smooth solid volume fraction field \(\alpha_s\) for all particles regardless of shape:

    \[\mathbf{n}_s = \frac{\nabla \alpha_s}{|\nabla \alpha_s|}\]

    The solid volume fraction field \(\alpha_s\) itself is constructed by the selected locateModel (e.g., hyperbolicTangent for spherical particles or hyperbolicTangentSuperquadric for superquadric particles defined by \(f(\mathbf{X}) = \left(|\frac{X}{a}|^{n_2} + |\frac{Y}{b}|^{n_2}\right)^{n_1/n_2} + |\frac{Z}{c}|^{n_1} - 1 = 0\)).

  • Solution Procedure for IFS Equation: At each physical time step, the IFS transport equation is solved iteratively inside the particle domain until reaching pseudo-steady state:

    1. Transport Step: Advect the colour function \(\alpha\) along \(\mathbf{t}_{\text{ext}}\) over pseudo-time step interval \(\Delta \tau\).

    2. Bounding Constraint: Enforce strict boundedness of the colour function field:

      \[\alpha = \min(\max(\alpha, 0), 1)\]
    3. Artificial Diffusion Filtering: Smooth out gradient discontinuities caused by bounding:

      \[\frac{\partial \alpha}{\partial \tau} = \nabla \cdot (D_{\text{diff}} \nabla \alpha)\]
    4. Anti-Diffusion Filtering: Suppress excessive interface smearing using a flux limiter:

      \[\frac{\partial \alpha}{\partial \tau} = -\nabla \cdot (D_{\text{anti}} \nabla \alpha)\]

    Steps (1)–(4) are solved sequentially in turn at each pseudo-time step. In general, \(D_{\text{diff}} = 1\) and \(D_{\text{anti}} = 1\) are used. The pseudo-time step interval \(\Delta \tau\) (configured as deltaTau in constant/solidProperties) is set to approximately 10% of the cell size (\(\Delta \tau \approx 0.10 \, \Delta x\)) to ensure a stable, convergent solution.

Adaptive Mesh Refinement (AMR):

To accurately resolve both fluid-fluid and solid-fluid interfaces in three-phase flow without excessive computational cost, dynamic Adaptive Mesh Refinement (AMR) is applied based on a combined interface indicator function \(\alpha_{\text{combined}}\) (named alphaCombined in the solver implementation):

\[\alpha_{\text{combined}} = \min(\alpha + \alpha_s, 1) - \alpha \alpha_s\]

where:

  • \(\alpha\) is the colour function / order parameter representing the fluid-fluid interface.

  • \(\min(A, B)\) returns the smaller value between \(A\) and \(B\).

The mesh refinement criteria is set as \(0.01 \le \alpha_{\text{combined}} \le 0.99\), dynamically increasing grid resolution in cells near both fluid-fluid and solid-fluid interfaces.

WASHLIGGGHTS DEM Coupling & Fluid-to-Particle Forces:

The solver couples the CFD fluid dynamics with WASHLIGGGHTS DEM discrete particle dynamics. While the fluid interaction force \(\mathbf{f}_{\text{solid}}\) acts on the fluid momentum equation, the equal and opposite net fluid force \(\mathbf{F}_{\text{fluid}, i}\) and torque \(\mathbf{M}_{\text{fluid}, i}\) exerted on particle \(i\) are integrated over the particle volume domain \(V_i\):

\[\mathbf{F}_{\text{fluid}, i} = \mathbf{F}_{\text{VP}, i} + \mathbf{F}_{\text{CAP}, i} + \mathbf{F}_{B, i}\]
\[\mathbf{M}_{\text{fluid}, i} = \mathbf{M}_{\text{VP}, i} + \mathbf{M}_{\text{CAP}, i} + \mathbf{M}_{B, i}\]

where:

  • Hydrodynamic Interaction Force & Torque:

    \[\mathbf{F}_{\text{VP}, i} = -\int_{V_i} \mathbf{f}_{\text{solid}} \, dV = -\int_{V_i} \frac{\alpha_s \rho}{\eta} (\mathbf{U}_s - \mathbf{U}) \, dV\]
    \[\mathbf{M}_{\text{VP}, i} = -\int_{V_i} \mathbf{r} \times \mathbf{f}_{\text{solid}} \, dV = -\int_{V_i} \mathbf{r} \times \left[ \frac{\alpha_s \rho}{\eta} (\mathbf{U}_s - \mathbf{U}) \right] \, dV\]
  • Capillary Force & Torque (Continuous Capillary Force Model):

    \[\mathbf{F}_{\text{CAP}, i} = \int_{V_i} \mathbf{f}_{\text{ccf}} \, dV, \quad \mathbf{M}_{\text{CAP}, i} = \int_{V_i} \mathbf{r} \times \mathbf{f}_{\text{ccf}} \, dV\]
  • Buoyancy Force & Torque:

    \[\mathbf{F}_{B, i} = \int_{V_i} \mathbf{f}_{\text{buo}} \, dV = -\int_{V_i} \alpha_s \rho \mathbf{g} \, dV, \quad \mathbf{M}_{B, i} = \int_{V_i} \mathbf{r} \times \mathbf{f}_{\text{buo}} \, dV\]
  • Multisphere Particle Accumulation: For particles represented by \(N_s\) sub-spheres, forces and torques are integrated per sub-sphere \(k\) and accumulated at the particle center of mass:

    \[\mathbf{F}_{\text{fluid}, i} = \sum_{k=1}^{N_s} \mathbf{F}_{\text{fluid}, k}, \quad \mathbf{M}_{\text{fluid}, i} = \sum_{k=1}^{N_s} (\mathbf{d}_k \times \mathbf{F}_{\text{fluid}, k} + \mathbf{M}_{\text{fluid}, k})\]

    where \(\mathbf{d}_k\) is the distance vector from the particle center of mass to sub-sphere \(k\).

Usage#

Configuring resolvedDiffuseInterfaceLAMMPSFoam requires specifying fluid fields, transport properties, solid interaction parameters, and WASHLIGGGHTS coupling settings.

1. Required Fields (0/ directory)

  • alpha.water: The order parameter field (phase fraction between 0 and 1).

  • psi: The chemical potential field.

  • U: The mixture fluid velocity vector field.

  • p: The pressure field.

  • pDivFree: Pseudo-pressure field required when using the Immersed Boundary method (immersedBoundaryExplicit or immersedBoundarySemiImplicit) to enforce a divergence-free fluid velocity.

2. Solid Properties & Immersed Free Surface (constant/solidProperties)

The solid interaction method and IFS contact angle parameters are configured in constant/solidProperties:

// constant/solidProperties

phases (solid);

solidInteractionModel   "immersedBoundaryExplicit";

immersedBoundaryExplicitCoeffs
{}

immersedFreeSurface
{
    useIFS               true;
    thetaIFSAdv          60;
    thetaIFSRec          60;
    thetaIFS0            60;
    uThetaIFS            1e-4;
    deltaTau             deltaTau [ 0 1 0 0 0 0 0 ] 1.67e-6;
    DDiffusion           1;
    nDiffusion           2;
    DAntiDiffusion       1;
    nAntiDiffusion       2;
    TOL                  1e-6;
}

Key Immersed Free Surface (IFS) parameters in immersedFreeSurface:

  • useIFS: Enables or disables the Immersed Free Surface method (true / false).

  • deltaTau: Dimensioned scalar for the pseudo-time step \(\Delta \tau\) (dimension of length: [0 1 0 0 0 0 0]).

  • thetaIFSAdv, thetaIFSRec, thetaIFS0: Advancing, receding, and equilibrium contact angles in degrees.

  • uThetaIFS: Characteristic velocity parameter \(u_{\theta,\text{IFS}}\) for dynamic contact angle relaxation.

  • DDiffusion, nDiffusion: Artificial diffusion coefficient \(D_{\text{diff}}\) and iteration count \(n_{\text{diff}}\) for gradient smoothing.

  • DAntiDiffusion, nAntiDiffusion: Artificial anti-diffusion coefficient \(D_{\text{anti}}\) and iteration count \(n_{\text{anti}}\) for interface sharpening.

3. Transport Properties (constant/transportProperties)

// constant/transportProperties

phases (water air);

water
{
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 1e-06;
    rho             rho [ 1 -3 0 0 0 0 0 ] 1000;
}

air
{
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 1.5e-5;
    rho             rho [ 1 -3 0 0 0 0 0 ] 1.2;
}

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

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

4. CFD-DEM Coupling Settings (constant/kinematicCloudProperties)

// constant/kinematicCloudProperties

lammpsInputScript    "in.lammpsInputScript";

subModels
{
    couplingControlModel     standardControl;
    standardControlCoeffs
    {
        couplingInterval     2;
    }

    LAMMPSCommandModels
    {
        runLAMMPS;
        writeRestartLAMMPS;
    }

    dataExchangeModel        MPIExchange;
    MPIExchangeCoeffs
    {
        useMPISharedMemory   true;
        MPISHMParticle2Fluid true;
        MPISHMFluid2Particle true;
    }

    searchModel              standardSearch;
    standardSearchCoeffs
    {
        useTreeSearch        true;
    }

    locateModel              hyperbolicTangent;
    hyperbolicTangentCoeffs
    {
        thicknessParameter   0.075;
    }

    interactionModels
    {
        dragResolved;
        buoyancyResolved;
        capillaryResolved;
    }
}

5. Solver Execution (system/controlDict)

// system/controlDict
application     resolvedDiffuseInterfaceLAMMPSFoam;
startFrom       startTime;
startTime       0;
stopAt          endTime;
endTime         10;
deltaT          0.0001;

Supported Models & Sub-models#

resolvedDiffuseInterfaceLAMMPSFoam supports modular interaction and sub-model choices. For individual model formulations and dictionary parameters, refer to:

Setup Guide#

For a comprehensive walkthrough of the input parameters and case directory setup, see:

Tutorials#

Example tutorial cases demonstrating resolvedDiffuseInterfaceLAMMPSFoam are available in:

  • tutorials/lagrangian/LAMMPS/resolved/resolvedDiffuseInterfaceLAMMPSFoam/liquidBridge: Capillary liquid bridge dynamics between solid DEM particles.

  • tutorials/lagrangian/LAMMPS/resolved/resolvedDiffuseInterfaceLAMMPSFoam/multisphere: Multi-sphere particle assemblies interacting with multiphase flows.

  • tutorials/lagrangian/LAMMPS/resolved/resolvedDiffuseInterfaceLAMMPSFoam/superquadric: Resolved non-spherical superquadric particle coupling in multiphase environments.