WorksPhysics and Astronomy
DeboRheo v2.0: Improved Robustness for Geometrical VOF Simulations of Viscoelastic Two-Phase Flows
Abstract
We present DeboRheo v2.0, an unstructured, geometrically unsplit Volume-of-Fluid framework implemented in OpenFOAM for viscoelastic two-phase flows. Version 2.0 improves numerical robustness when large viscosity contrasts coincide with strongly deformed interfaces and thin viscoelastic lamellae or filaments. The revised interfacial viscosity treatment retains a sharp geometric interface while regularizing the viscous contribution to the momentum equation. The solver combines mass-momentum-consistent phase advection, optional SIMPLEC pressure-velocity coupling, and a modular rheological framework with conformation-tensor stabilization. We assess the method using two-dimensional, axisymmetric, and three-dimensional benchmarks governed by the Oldroyd-B and exponential Phan-Thien-Tanner models. The results agree well with published numerical and experimental data and demonstrate improved robustness for demanding viscoelastic free-surface configurations on unstructured meshes.
Graphical Abstract
Figure 11.
Highlights
DeboRheo v2.0 is developed for robust viscoelastic two-phase flow simulation.
Face viscosity is regularized while the geometric VOF interface remains sharp.
The treatment improves robustness for thin viscoelastic lamellae and filaments.
SIMPLEC is implemented for robust pressure–velocity coupling.
The framework is validated using two- and three-dimensional benchmark flows.
PROGRAM SUMMARY Program Title: DeboRheo V2.0
CPC Library link to program files: (to be added by Technical Editor)
Developer’s repository link: https://gitlab.com/deborheo/deborheorelease/-/tree/v2.0.5
Code Ocean capsule: (to be added by Technical Editor)
Licensing provisions: GPLv3
Programming language: C++
Nature of problem: Direct numerical simulation (DNS) of viscoelastic two-phase flows is challenged by sharp interfacial discontinuities in material properties and rheological re-
Introduction
Non-Newtonian fluids play a crucial role in various industrial and natural processes. These fluids are used in the drilling mud for oil and gas [1], food processing industries [2], and pharmaceutical industries. Most of all, the greatest relevance is found in everyday human items, such as paints, cosmetics, and foods such as ketchup, mayonnaise, etc. [2]. In nature, non-Newtonian behavior is observed in blood [3], mucus that covers the lung airways [4, 5, 6, 7], synovial fluid responsible for joint lubrication [8], lava, and even egg albumin [9]. Due to the substantial differences between complex and Newtonian fluids, there is a compelling need to model and investigate non-Newtonian flows. Some exotic behaviors of non-Newtonian fluids include the Weissenberg effect, memory effects, viscoelasticity, and plasticity. Most of the processes and natural occurrences mentioned above involve fluid interfaces where one or both phases are viscoelastic, just like in the case of the mucus lining in the lung airways [4]. In most cases, these interfaces are subjected to shear stress, leading to stretching or rupture into droplets [10]. Thus, accurate treatment of the fluid interfaces is crucial for modeling these processes.
The simulation of viscoelastic fluids is a fundamentally challenging task due to their highly non-linear stress–strain relationship, particularly at high Weissenberg numbers [11]. In this regime, the large separation between viscous and elastic time scales leads to the well-known High Weissenberg Number Problem (HWNP), which manifests as numerical instabilities in simulations of viscoelastic flows. The HWNP is characterized by exponential stress growth, which leads to severe numerical instabilities in standard formulations. Conventional viscoelastic models such as Oldroyd-B [12] can exhibit unbounded stress growth in regions of strong extension or near stagnation points, often leading to numerical instabilities or divergence of the solution. In contrast, finitely extensible nonlinear elastic models (FENE-P [13], FENE-CR [14]) are designed to prevent unbounded stress growth by imposing a finite extensibility limit. However, they may still exhibit steep but bounded stress growth, which can challenge numerical solvers. Several robust numerical techniques have been developed to address the HWNP [15, 16, 17]. While an accurate and stable solution is required even for Newtonian flows, viscoelastic simulations impose additional constraints, notably the preservation of the positive definiteness of the conformation tensor [18, 19]. Fattal and Kupferman [15] proposed the log-conformation method (LCM), which reformulates the constitutive equations using a logarithmic transformation of the conformation tensor. This approach significantly enhances numerical stability by ensuring positive definiteness and enabling an accurate capture of sharp viscoelastic stress gradients, even at high Weissenberg numbers. Alternatively, Balci et al. [20] proposed a method based on the square root representation of the conformation tensor to achieve the same goal. Comprehensive overviews of stabilization techniques for viscoelastic flows are available in the review publications by Chen et al. [21] and Alves et al. [17].
Simulating two-phase viscoelastic flows presents significant numerical challenges. Beyond the inherent HWNP common to viscoelastic fluids, these simulations must also resolve steep gradients in shear stresses and abrupt changes in density and viscosity across the fluid interface. These combined factors can severely compromise the stability and accuracy of numerical solutions. While various multiphase methods - including front-tracking [22, 23, 6, 7], level-set [24], and phase-field [25] - have been applied to viscoelastic two-phase flows, the Volume-of-Fluid method is particularly well suited to such problems. Its inherent mass conservation and robustness make it a preferred choice for handling interfacial complexities [26, 27, 28]. OpenFOAM, widely adopted open source CFD framework, provides a range of tools to simulate single- and two-phase viscoelastic flows [29, 30, 31, 32, 33, 34]. However, most of its available VOF solvers for viscoelastic two-phase systems utilize algebraic VOF methods (such as interFoam), in which volume fractions are artificially smeared over several computational cells. Artificial smearing of volume fractions exceedingly limits its ability to accurately capture the hydrodynamics of thin viscoelastic liquid filaments. Geometric VOF methods have been well documented to offer superior accuracy in interface representation compared to algebraic approaches [35]. For example, the widely used Basilisk solver [36] employs a geometric VOF technique, representing the interface as a sharp surface element, thus maintaining high accuracy and sharpness in both 2D and 3D structured meshes. Basilisk includes a dedicated solver module for two-phase viscoelastic flow simulations [28], which has been used in various applications [37, 38, 39].
We have recently developed an un-split geometric Volume-of-Fluid approach for simulating viscoelastic two-phase flows based on the one-fluid formulation [40]. Specifically, we incorporated the piecewise-linear interface calculation with reconstruction of distance functions (plicRDF-isoAdvector), utilizing the geometric VOF libraries provided by twoPhaseFlow [41], into the DeboRheo framework [42, 40]. This methodology was validated for a comprehensive set of benchmark cases [40]. Moreover, our implementation is compatible with a variety of viscoelastic constitutive models and stabilization strategies within the OpenFOAM ecosystem, enhancing its flexibility and applicability to a broad spectrum of two-phase flow scenarios [42, 43, 44, 40].
In the present work, we introduce DeboRheo v2.0 and address a numerical limitation encountered when the sharp geometric VOF representation is applied to strongly deformed viscoelastic two-phase flows. In DeboRheo v1.0, the solvent viscosity at an interfacial face was evaluated directly from the geometrically reconstructed face area fraction. Although this treatment is consistent with the sharp geometric representation of the phase indicator, we found it to become numerically sensitive when thin lamellae or filaments approach the local mesh scale, particularly in the presence of strong viscosity contrasts. DeboRheo v2.0 therefore decouples the geometric sharpness of the interface from the discretization of the viscous coefficient: the interface continues to be reconstructed geometrically, whereas the face viscosity entering the momentum equation is obtained from finite-volume interpolation of cell-centered phase information. This introduces a mesh-scale regularization of the viscosity coefficient without smearing the VOF interface itself. In addition to describing this modification, we document the solver architecture and current limitations and assess the methodology against two-dimensional, axisymmetric, and three-dimensional viscoelastic two-phase benchmark problems.
Mathematical model
We model incompressible two-phase flows without phase change using the one-field formulation of the Navier-Stokes equations, in which one phase is a viscoelastic fluid. The scalar phase indicator function is used to indicate fluid phases in the flow domain , occupying subdomains , as depicted in Figure 1 (PDF p. 7). It is defined as
Figure 1 (PDF p. 7). Flow domain , separated by the fluid interface into two sub-domains .
The phase-specific properties of the fluid flow and the physical properties of the individual fluid phases are combined into single fields in the formulation of a field using the phase indicator (eq. (1)).
The one-field formulation of mass density and dynamic viscosity defines
with as constant mass densities, as constant dynamic solvent viscosities, and as constant polymeric viscosities in .
Similarly to the one-field formulation of mass density and dynamic viscosity, we define the one-field formulation for the polymer stress tensor as
Unlike phase-specific densities and dynamic viscosities , the phase-specific polymer stress tensor is generally not constant in space, i.e., . We currently limit our two-phase DeboRheo method [40] to a single viscoelastic fluid phase, say
with no loss of generality concerning which fluid phase has viscoelastic properties as or is arbitrarily chosen. With eq. (6), eq. (5) reduces to
The fluid flow in DeboRheo is governed by the one-field formulation of the Navier-Stokes equations for incompressible two-phase flows with one viscoelastic phase, and without phase change, i.e.,
where , , , , and are the velocity vector, the pressure, the gravitational acceleration vector, the position vector, and the surface tension force, respectively. We add the diffusive term to both sides of the momentum equation: it is discretized implicitly on the left-hand side and explicitly on the right-hand side, with its magnitude controlled by the scalar parameter . This stabilization technique is known as both-sides diffusion (BSD) [45, 46, 47]. BSD splits the contribution of the polymeric viscosity , already contained in the polymeric stress , into explicit and implicit contributions. For example, in the Oldroyd–B model,
so the polymeric viscous response enters the momentum equation through . In the segregated solution algorithm, is treated explicitly. The BSD stabilization adds and subtracts a Newtonian-like diffusion term,
as written in the momentum equation. Equivalently, the polymeric stress contribution is split as
The first part is treated implicitly through the momentum operator, while the residual remains explicit. Hence the implicit diffusion coefficient is effectively , but the converged equation will be the original viscoelastic momentum equation. The two-phase Reynolds transport theorem confirms that the one-field formulation of the velocity
satisfies eq. (8) if both fluid phases are incompressible, i.e., , and the relative normal velocity is zero at , i.e., there is no phase change.
Following the addition of forces, the viscoelastic stress is superimposed onto solvent stress, included in eq. (9) as Newtonian viscous stress. In eq. (9) we separate the hydrostatic contribution to the pressure into as this ensures that the force resulting from the hydrostatic pressure can be balanced with other forces on the fluid interface for stationary fluid interface in the discretization [48]. We model the surface tension force using the Continuum Surface Force (CSF) model [49] in a force-balanced formulation [50] (cf. [51] for a recent review), i.e.,
In eq. (12),
is twice the mean curvature of with as the interface normal.
The phase indicator function is advected by the Volume-of-Fluid (VOF) equation, resulting directly from the mass conservation equation and eq. (8) [52], given in integral form as
for a fixed control volume . The integral form in eq. (14) is conservative by the definition of , i.e.,
and by the application of the Reynolds transport theorem, which relates the total rate of change of volume (fraction) with the flux through the boundary of the control volume . Details on the volume fraction equation and its derivation can be found in [35, 53].
Phase-specific viscoelastic stress transport
The phase-specific nature of the viscoelastic stress, present in DeboRheo only in one fluid phase, requires careful consideration. Although the framework allows for multimode relaxation times, a single relaxation time is assumed in the present derivation to simplify the analysis.
The physical conformation tensor is defined in the viscoelastic phase . The corresponding one-field polymeric stress is
where is the relaxation time, is a material parameter, and and are scalar functions (cf. Table 1). With no phase change, a formal phase-specific conservative balance for is
| Model | ||||||
| Maxwell/Oldroyd-B | ||||||
| Giesekus | ||||||
| FENE-P | ||||||
| FENE-CR | ||||||
| Johnson-Segalman | ||||||
| LPTT | ||||||
| EPTT |
Table 1. Coefficients for various viscoelastic constitutive models in the generic tensorial formulation.
where and . The coefficients , , and are isotropic scalar functions of listed in Table 1.
The present implementation does not use as the transported conformation field. Instead, it introduces a positive-definite auxiliary extension over the complete computational domain, with in , and solves
throughout . The physical stress is then recovered by the phase weighting in eq. (16). Consequently, transformed representations such as are applied to the positive-definite auxiliary field , not to , which would be singular outside the viscoelastic phase. The numerical consequences of transporting this extension over the full domain are discussed in § 5.
Stabilization
The present work addresses the HWNP using a unified stabilization framework. It was developed for single-phase flow [16] and later extended to two-phase flow [42, 40]. Here, we summarize its main components within the geometric VOF method.
DeboRheo provides the LCM and RCM stabilization methods. Here, we use LCM with . The transposed velocity gradient is decomposed into the antisymmetric tensors and and the symmetric tensor :
After applying this transformation and eq. (19) to the auxiliary conformation equation eq. (18), the globally transported LCM equation is
In the present work, the natural logarithm conformation representation is found to be stable across various benchmark cases.
Numerical method
We discretize the governing eqs. (8), (9) and (14) and the auxiliary conformation equation eq. (18), together with constitutive equations for [40], using the unstructured finite volume method and the unstructured geometrical Volume-of-Fluid (VOF) method. The formal phase-specific balance eq. (17) is used to identify the consistency requirements at the interface but is not discretized directly.
The governing equations are solved in a segregated manner within OpenFOAM’s PIMPLE pressure–velocity coupling framework. The implementation optionally enables the SIMPLEC correction [54] by setting consistent true in the PIMPLE controls. SIMPLEC is included because of its effectiveness in viscoelastic flow simulations [55].
Volume conservation equation
The volume conservation equation (8) is discretized by the unstructured collocated finite volume method [56] by integration over a fixed control-volume , i.e.,
where denotes the (possibly non-planar) face of the control volume, is the characteristic discretization length, and is the discretization error [57] resulting from the face-centered average of associated with the centroid of the face , and
is the volumetric flux.
Volume-of-Fluid equation
The volume-of-fluid equation (14) is solved first, using the volumetric flux (22), by integration over the time-step . Since the governing equations are solved in a segregated way, requiring outer iterations, we denote the outer iteration with the index - .
The integral of the r.h.s. of eq. (23) we compute using the plicRDF-isoAdvector method [58], i.e.
where is computed geometrically [59], to evaluate , the phase-specific volume flux across .
Having solved for , and are updated by integrating eqs. (2) and (3) over , resulting in
The seemingly straightforward update of cell-centered density in eq. (25) after solution of the VOF equation can potentially introduce inconsistency between mass (volume) and momentum conservation on discrete level, and it requires a careful choice of discretization schemes or an introduction of an auxiliary mass conservation equation for the one-field density [53, 52].
Additional information regarding the interaction between eqs. (24) and (25) and the other governing equations, which is relevant to the new method DeboRheo-v2.0, is provided in the sections below.
Viscoelastic stress transport
The auxiliary conformation equation eq. (18) is solved before the momentum equation to compute the polymeric stress . A direct finite-volume discretization of the formal phase-specific balance eq. (17), however, presents major challenges. In principle, a phase-specific field requires averaging over phase-specific sub-volumes, i.e.,
with the centroids of the phase-specific cut volumes . In other words, a second-order accuracy is only maintained if phase-specific centroids and fluxes are introduced—essentially a cut-cell method—which is numerically fragile for cells with or highly skewed cut volumes. Applying this reasoning to the viscoelastic tensor gives
suggesting that simply transporting everywhere might mimic the phase-specific form. But this makes the transport inconsistent with the geometrical VOF update of . This becomes apparent when discretizing the convective term. For the phase-specific flux,
with the area fraction, defined as
This shows that both and must be reconstructed in a way consistent with the geometrical VOF method. Standard unstructured FVM interpolation,
is inconsistent. Tourbier et al. [60] have shown that for a constant scalar, consistency with isoAdvector–plicRDF is achieved instead by upwinding the –weighted product,
where the subscript is an index denoting the upwind cell with respect to the face . This guarantees alignment with the geometric VOF update of , but at the cost of strong CFL restrictions when treated explicitly.
State-of-the-art methods [27, 28, 34], including our previous work [40], bypass these challenges by solving the one-field form of the conformation tensor equation for everywhere, while applying phase-specific source terms. This approach, however, introduces a numerical inconsistency: is advected across the interface with algebraic finite-volume schemes, causing numerical diffusion in the interface-normal direction, which is visualized in simulations as the “leakage” of (or its transformation) across the fluid interface. Additionally, the advection utilizes the full volumetric flux, rather than the phase-specific flux, resulting in a systematic overestimation and a flux of across the interface.
Tourbier et al. [60] provide an explicit approach for a scalar field containing a jump discontinuity, co-advected with volume fractions. This suggests a possible route to consistency for tensor quantities as well. However, for the non-constant conformation tensor, governed by complex transport equation, and discontinuous across , fundamental research is still required. For this reason, in the present work we adopt a pragmatic approach used by state-of-the-art methods. We solve the conformation tensor equation everywhere and recover the viscoelastic stress in the momentum equation by scaling with the indicator function , or equivalently with the volume fraction .
Momentum conservation equation
This section covers the changes introduced to the momentum conservation equation relative to the first version of DeboRheo [40]. In operator form, the finite-volume equation assembled by UEqn.H over a control volume is
Here, is the solvent-viscosity Laplacian assembled with the face viscosity defined in eq. [34], and denotes the explicit variable-coefficient contribution corresponding in the implementation to . The operator is the explicit divergence of the polymeric stress weighted by the bounded cell-centered volume fraction . It does not use the geometrically reconstructed face area fraction. The BSD operators use the same coefficient with opposite explicit and implicit contributions, so they cancel in the converged momentum equation.
Equation (32) is solved in the outer iteration (momentum predictor) implicitly for , the cell-centered velocity field at outer iteration . Terms marked “exp” are evaluated from the current or previous outer iterate, whereas the solvent and BSD Laplacians are assembled implicitly.
In eq. (32), the time derivative is discretized as , where is explicitly evaluated from eq. (25). This is done after the volume-of-fluid equation (eq. (24)) has been solved geometrically for , maintaining consistency between mass (volume), phase-specific volume, and momentum [53], with the mass flux approximated from the fluxed phase-specific volume in eq. (24).
The convective term in eq. (9) is linearized; otherwise, its discretization would contain quadratic terms, resulting in a global nonlinear algebraic system. The velocity linearization uses the volumetric flux from the previous iteration, or the previous time step in the first outer iteration, . The mass flux is reconstructed from the phase-specific volume integrated in eq. (24). Without this construction, discrete volume, phase-volume, and momentum transport can become inconsistent. A detailed analysis for geometrical VOF methods at high density ratios is provided by Liu et al. [53]. In the first-order upwind cases, the Euler temporal discretization and the approximation follow that consistency argument. The benchmark dictionaries use first-order upwind interpolation for the shear-driven, Newtonian, and Prieto cases, and limitedLinearV 1 for the Zainali and axisymmetric Esposito cases.
The face-centered velocity in is expressed in eq. (32) as a linear combination of the neighboring-cell and owner-cell velocities using the interpolation weight . In the unstructured FVM [56], depends on the convective interpolation scheme selected for the individual benchmark.
Interfacial treatment of solvent viscosity
The solvent-viscosity contribution is assembled from an implicit Laplacian and an explicit variable-coefficient term. Both require a face-centered viscosity after the geometrical VOF update in eq. (24). DeboRheo v1.0 used the geometrically reconstructed face area fraction to compute , with
where is the geometric face-area fraction. DeboRheo v2.0 instead uses the standard finite-volume interpolation operator separately for the cell-centered volume fraction and each phase viscosity:
Here, and denote the solvent viscosity of phase 1 and the viscosity of phase 2, respectively, matching the implementation variables etaS and eta2(). For constant phase viscosities, eq. (34) is equivalent to linearly interpolating the cell-centered mixture viscosity. For spatially varying phase viscosities, the separate interpolations in eq. (34) are the operative definition.
The interpolated fraction is distinct from the geometric area fraction used by VOF advection. It produces a stencil-scale, mesh-dependent transition in the viscous coefficient while leaving the geometrically reconstructed interface sharp. The width of this transition depends on the mesh and interpolation stencil and is therefore not asserted to be exactly one cell. This regularization substantially improves robustness for thin lamellae and filaments. DeboRheo v1.0 cannot complete this thin-structure regime; consequently, no quantitative v1.0 comparison curve is reported.
The cell-centered source terms on the r.h.s. of the momentum equation (32), i.e., the pressure gradient, the hydrostatic term, and the surface tension force, are reconstructed from face-centered values using linear least squares reconstruction described in detail in [61],
with
Terms related to the fluid interface, such as , and , are evaluated explicitly after solving the volume-of-fluid equation in eq. (24).
Pressure Poisson equation
We consider the discretized and linearized momentum eq. (32) written in global operator form as
where is the full sparse momentum operator assembled at outer iteration , is the discrete gradient operator, and collects all explicit source contributions, including old-time terms and explicitly treated nonlinearities, evaluated from the previous outer iterate . The operator depends on the volumetric fluxes through the linearization of convection and diffusion terms, and is therefore updated once per outer iteration. In the outer SIMPLE iteration, eq. (37) (i.e., eq. (32)) is solved using a Krylov-type linear solver. Although the inverse is never formed explicitly, the effect of this solve can be written formally as
which shows that the predicted velocity field contains the full neighbour coupling encoded in . This neighbour coupling is directly visible in eq. (32), for example through the discretized convection and diffusion operators. To derive a pressure Poisson equation that can be assembled efficiently, the momentum operator is split into diagonal and off-diagonal parts,
For every cell “c”, eq. (37) (see also eq. (32)) can be written as
where is the diagonal coefficient in , and are off-diagonal coefficients in in the -th matrix row. By isolating the diagonal contribution,
where the auxiliary field is defined as
Here, all neighbour velocities appearing in are evaluated from the previous outer iterate . This corresponds to the standard segregated linearization step: all unknown quantities at iteration are retained on the left-hand side of eq. (40), while all quantities known from the previous outer iteration are moved to the right-hand side and incorporated into . Dividing eq. (41) by the diagonal coefficient yields
which replaces the action of the full inverse in eq. (38) by the diagonal inverse . This constitutes the central approximation introduced in SIMPLE- and PISO-type algorithms for the pressure–velocity coupling.
Discrete incompressibility is enforced by requiring the discrete divergence of the velocity field, i.e., the sum of volumetric face fluxes, to vanish,
where the superscript denotes the pressure-correction (inner) iteration carried out with the momentum operator held fixed. Using eq. (43), the face flux at inner iteration is constructed via a Rhie–Chow-type interpolation,
where denotes interpolation from cell centres to face centres and is the discrete face-normal pressure gradient. Substitution of eq. (45) into eq. (44) yields the discrete pressure Poisson equation (eq. (46) in alternative form),
In this formulation, the coefficients are evaluated once per outer iteration and held fixed during the inner pressure solution. In each inner iteration the auxiliary field is evaluated using the velocity available at that inner iteration, given by eq. (43). After solving eq. (46) for , the cell centered velocity is updated to by eq. (43) and face fluxes are updated using eq. (45), yielding a divergence-free flux field by construction. These updated fluxes are then used to reassemble the momentum operator in the next outer iteration, thereby recovering the full neighbour coupling through the momentum predictor step while retaining a computationally tractable pressure equation.
The SIMPLEC Algorithm
Ideally, at outer iteration , we would like the discretized and linearized momentum equation to be satisfied in the form
where denotes the momentum operator assembled at outer iteration , based on the current linearization of the convective, diffusive, and additional stress terms, and collects all explicit contributions evaluated from the previous outer iterate. However, when solving the momentum predictor at outer iteration , the updated pressure is not yet available. Instead, the momentum equation is solved using the pressure field from the previous outer iteration, yielding the predicted velocity ,
where denotes the pressure-lagged velocity prediction at outer iteration . The predicted velocity is therefore neither equal to the velocity from the previous outer iteration , nor to the final velocity that would satisfy the fully pressure-consistent momentum balance eq. (47).
Since the operators appearing in eq. (47) and eq. (48) are linear, these two equations can be subtracted to obtain a correction equation. Introducing the velocity and pressure corrections
leads to the exact correction relation
Equation (50) shows that, under a frozen momentum linearization, the velocity correction is governed by the inverse of the full momentum operator . Formally, this relation can be written as . However, the explicit construction or application of is computationally intractable within a segregated pressure–velocity coupling framework.
The PISO and SIMPLE families of algorithms therefore approximate the velocity–pressure correction relation by retaining only the diagonal part of the momentum operator when assembling the pressure (correction) Poisson equation. Denoting the diagonal of by , the velocity correction is approximated as
This approximation neglects the contribution of the off-diagonal momentum couplings to the velocity response, and systematically underestimates the effect of pressure corrections in strongly coupled momentum systems.
The SIMPLEC approach seeks to incorporate the influence of the off-diagonal operator , defined through the splitting
into the approximation of the inverse momentum response. Writing the correction (eq. (50)) at the cell level yields
where and denote the diagonal and off-diagonal coefficients of the momentum operator, respectively. The SIMPLEC approximation assumes that, within a single outer iteration, the pressure-induced velocity correction varies smoothly across neighbouring cells, such that the neighbour corrections can be approximated locally as
Under this assumption, the correction equation reduces to
or equivalently
where
defines the SIMPLEC approximation of the inverse momentum operator appearing in eq. (50).
Compared to the standard SIMPLE approximation eq. (51), the modified inverse provides a stronger and more consistent coupling between pressure and velocity corrections by accounting, in an aggregated manner, for neighbour momentum couplings. This enhanced pressure–velocity coupling has been shown to improve robustness and convergence in strongly coupled flow regimes, including two-phase viscoelastic flows [17], and is therefore available in the deboRheo v2.0 framework through the consistent true PIMPLE setting.
Time-Step Selection
The time step is determined by two stability constraints. The first constraint is based on the maximum Courant number criterion,
where is the minimum characteristic cell length and [62]. The second constraint is based on the characteristic capillary-wave time scale,
This constraint ensures that capillary-wave propagation at the fluid interface is adequately resolved and is particularly important for capillary-dominated flows. The time step employed in the simulations is given by
where and are safety factors set to 1 and 0.1, respectively.
Software design
Scope
The DeboRheo framework provides a software implementation of the numerical solution strategy for viscoelastic flows introduced in § 4 and § 5. It extends incompressible single- and two-phase flow solvers by incorporating viscoelastic constitutive equations and their coupling to the momentum equation. For two-phase configurations, the framework reuses the geometric Volume-of-Fluid (VOF) methodology of the TwoPhaseFlow OpenFOAM module [63] and augments it with a phase-dependent polymeric stress formulation. The DeboRheo 2.0 has been tested and verified to work with OpenFOAM v2512.
At each time step, a transport equation is solved for a tensorial state variable associated with the viscoelastic model. The polymeric stress is reconstructed from this state and its divergence is added explicitly to the right-hand side of the momentum equation. The role of the DeboRheo framework is to organize this procedure at the solver level. Constitutive models, numerical representations of the viscoelastic state, and optional stabilization mechanisms are implemented as separate components that can be selected at run time. This structure allows the numerical workflow defined by the governing equations to be preserved while supporting different constitutive closures and state-variable formulations within a single solver framework.
Solver file organization
The interIsoDeboRheoFoam solver follows the standard OpenFOAM design, in which the simulation workflow is coordinated by a main driver file, while field initialization and equation assembly are implemented in dedicated include files. In addition to its solver-specific implementation, interIsoDeboRheoFoam reuses components of the TwoPhaseFlow module for geometric Volume-of-Fluid (VOF) interface capturing and time-step control. This modular organization separates solver control from equation assembly and promotes code reuse across different multiphase flow solvers.
The solver-specific directory is organized as follows:
interIsoDeboRheoFoam/
|-- interIsoDeboRheoFoam.C // main solver driver and time loop
|-- createFields.H // field creation and model initialization
|-- UEqn.H // momentum equation assembly
‘-- pEqn.H // pressure correction equation
The geometric VOF routines and adaptive time-step control are provided by the TwoPhaseFlow module, which contributes functionality such as phase-fraction transport, interface reconstruction, and time-step adjustment through reusable include files (e.g., alphaEqn.H, createIsoAdvection.H, and setDeltaT.H).
The main solver file coordinates the simulation time loop and invokes the individual equation files in a prescribed sequence. Field creation and model initialization are performed in createFields.H, while the momentum and pressure equations are assembled in UEqn.H and pEqn.H, respectively. The phase-fraction transport and interface reconstruction are delegated to the TwoPhaseFlow module, which supplies the geometric VOF implementation used to compute the interface geometry and phase distribution required for evaluating phase-dependent material properties and viscoelastic stress coupling. This separation mirrors the numerical structure of the solver while maintaining a clear distinction between solver-specific logic, reusable multiphase-flow functionality, and the DeboRheo rheology libraries.
Numerical solver design
The solver interIsoDeboRheoFoam realizes the numerical solution strategy described in § 5 within the segregated PIMPLE pressure–velocity coupling framework. The PIMPLE dictionary enables consistent SIMPLE by setting the keyword consistent to true. The corresponding pimple.consistent() branch then activates the SIMPLEC correction. In two-phase configurations, the solver reuses the geometric Volume-of-Fluid (VOF) method of the TwoPhaseFlow module to advance the phase fraction and reconstruct the interface. The geometric face area fractions are passed through the mixture-model interface, whereas the active log-conformation implementation weights the polymeric stress with a bounded cell-centered volume fraction.
At each time step, the viscoelastic state is advanced by solving a transport equation associated with the selected constitutive model and numerical representation, yielding an updated polymeric stress tensor. The momentum equation is then assembled according to eqs. (32) and (37). The mixture model supplies the phase-weighted polymeric stress divergence and, when BSD is active, the paired explicit and implicit diffusion terms:
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
+ MRF.DDt(rho, U)
- (fvc::grad(U) & fvc::grad(mixture.muf()))
- fvm::laplacian(mixture.muf(), U)
- mixture.divTau(areaFractionRecon.areaFractions(), U)
==
fvOptions(rho, U)
);
UEqn.relax();
fvOptions.constrain(UEqn);
Here, mixture.divTau returns a finite-volume operator containing the explicitly evaluated divergence of the cell-volume-fraction-weighted polymeric stress. With BSD enabled, it also contains an explicitly subtracted diffusion term and the matching implicit Laplacian; these contributions cancel in the converged equation and therefore do not constitute net artificial diffusion.
The new evaluation of in DeboRheo v2.0 is implemented as
const surfaceScalarField alpha1f
(
min(max(fvc::interpolate(alpha1_), scalar(0)), scalar(1))
);
return tmp<surfaceScalarField>::New
(
"muf",
alpha1f*fvc::interpolate(etaS)
+ (scalar(1) - alpha1f)*fvc::interpolate(eta2())
);
The evaluation of in this function separately interpolates the cell-centered volume fraction and the two phase viscosities. It is therefore distinct from the geometrically reconstructed face area fraction used by the VOF advection algorithm in v1.0. This deliberate distinction implements the interfacial viscosity regularization described in § 5.5.
The velocity predictor is formed from the discretized momentum equation and used to enforce the incompressibility constraint through the pressure Poisson equation (see eq. (46)), formulated in terms of the modified pressure . The latter incorporates the hydrostatic pressure contribution, , thereby accounting for fluid density variations in the pressure correction step. The diagonal inverse is always formed. If pimple.consistent() is true, the SIMPLEC inverse (see eq. (57)) and its associated predictor corrections are activated. Otherwise, remains equal to and the standard pressure correction is used. The corresponding predictor flux is assembled and used on the right-hand side of the Poisson equation:
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU()));
volVectorField HbyA(constrainHbyA(rAU()*UEqn.H(), U, p_rgh));
surfaceScalarField phiHbyA
(
"phiHbyA",
fvc::flux(HbyA)
+ MRF.zeroFilter
(
fvc::interpolate(rho*rAU())
* fvc::ddtCorr(U, phi, Uf)
)
);
tmp<volScalarField> rAtU(rAU);
if (pimple.consistent())
{
rAtU = 1.0/(1.0/rAU() - UEqn.H1());
phiHbyA += fvc::interpolate(rAtU() - rAU())
*fvc::snGrad(p_rgh)*mesh.magSf();
HbyA -= (rAU() - rAtU())
*fvc::reconstruct(fvc::snGrad(p_rgh)*mesh.magSf());
}
while (pimple.correctNonOrthogonal())
{
fvScalarMatrix p_rghEqn
(
fvm::laplacian(rAtU(), p_rgh) == fvc::div(phiHbyA)
);
p_rghEqn.solve
(
mesh.solver(p_rgh.select(pimple.finalInnerIter()))
``)
if (pimple.finalNonOrthogonalIter())
{
phi = phiHbyA - p_rghEqn.flux();
U = HbyA
+ rAU()*fvc::reconstruct
(
(phig - p_rghEqn.flux())/rAUf
);
}
Here, p_rghEqn represents the pressure Poisson equation, and the corrected velocity field is obtained by projection using the computed pressure field. The pressure equation is not modified explicitly by the viscoelastic model. Instead, the polymeric stress contribution enters through the momentum predictor and is therefore contained in the UEqn.H() operator. In the case dictionaries, SIMPLEC must be selected with consistent true; the keyword SIMPLEC true is not queried by this implementation.
Library organization
The DeboRheo functionality is implemented as a collection of libraries that extend the transport and mixture models used by the flow solvers. The library structure reflects the software decomposition of the viscoelastic framework into constitutive modeling, constitutive-variable representation, and transport-model coupling. This modular organization allows the solver to interact with the viscoelastic subsystem through a small set of well-defined interfaces, while encapsulating model-specific implementations and representation-specific numerical formulations within the library layer.
The relevant library directories are organized as follows:
src/
|-- rheology/
| |-- rheologicalModel/ // model interface
| |-- rheologicalModels/ // constitutive models
| |-- representation/ // state representations
| | |-- representation/ // base classes
| | |-- genericRepresentation/ // tensor transforms
| | |-- stressRepresentation/ // stress form
| | |-- logConformationRepresentation/
| | |-- rootConformationRepresentation/
| | ‘-- multiMode/ // multimode support
| ‘-- diagonalize/ // tensor diagonalization utilities
‘-- twoPhaseTransportModels/
‘-- ... // phase coupling
The rheologicalModel layer provides the abstract interface for constitutive models, performs runtime selection of the requested rheological model, and exposes a common application programming interface (API) through which the solver accesses viscoelastic stresses and constitutive updates. Individual constitutive models implement the corresponding constitutive equations together with their material-specific parameters.
The representation layer defines the constitutive state variable and provides the mathematical transformations and common infrastructure associated with different formulations of the constitutive equations. These include stress-based, log-conformation, and root-conformation representations, together with shared functionality for tensor transformations and multimode constitutive formulations.
The twoPhaseTransportModels layer provides the coupling between the viscoelastic subsystem and the momentum equations by incorporating phase-dependent transport properties and viscoelastic stress contributions. Through this modular architecture, the solver remains independent of the specific constitutive model and state-variable representation, interacting only with the abstract rheological interface, while the underlying library encapsulates the implementation details of constitutive modeling and numerical representation.
Viscoelastic library implementation
In the solver, the viscoelastic contribution is evaluated before assembly of the momentum equation. At each time step, the mixture model advances the viscoelastic state by solving the constitutive transport equation associated with the selected model and numerical representation,
mixture.correctPolymer(areaFractionRecon.areaFractions(), false);
In the two-phase mixture, this call delegates the computation to the active numerical representation,
void incompressibleTwoPhaseMixtureDeboRheo::correctPolymer
(
const surfaceScalarField& alpha1f,
const bool& lastIter
}
{
representationPtr_->correct(alpha1f, lastIter);
}
The face-area-fraction argument is retained in this interface for specific representations. In the active log-conformation implementation shown below, the transported state is advanced over the complete domain and the stress divergence is weighted using the bounded cell-centered phase fraction rather than alpha1f.
Representations of the viscoelastic state. The central abstraction used in the DeboRheo library is the representation. A representation defines the tensorial state variable that is transported in time and the transformations required to recover the physical conformation tensor and polymeric stress. Rather than solving directly for the conformation tensor , the library solves for a generic tensor field , which is related to by a transformation
Typical choices include , , or , with, e.g., or . These transformations improve numerical stability and preserve physical properties such as positive definiteness of the conformation tensor.
Each representation implements the same conceptual workflow: the constitutive law updates model-specific quantities, the transport equation for is solved, and the polymeric stress is reconstructed. An example implementation using an uncorrected log-conformation representation is shown below,
void logConformationUncorrected::correct
(
const surfaceScalarField& alpha1f,
const bool& lastIter
)
{
law_->correctPolymer();
this->correctTwoPhase(alpha1f, lastIter);
law_->correctThermo();
}
The transport equation for is assembled and solved in the representation, including advection, deformation, and relaxation terms,
tmp<fvMatrix<symmTensor> > AEqn
( fvm::ddt(A_)
fvm::div(phi(), A_, "div(phi,tau)") == rhst() );
Stress reconstruction and divergence. After solving for the conformation tensor , the polymeric stress is reconstructed according to the selected constitutive representation. The divergence of the polymeric stress required in the momentum equation is evaluated through the mixture-model interface, which forwards the request to the active stress representation,
tmp<fvVectorMatrix>
incompressibleTwoPhaseMixtureDeboRheo::divTau
(
const surfaceScalarField& alpha1f,
volVectorField& U
)
{
return representationPtr_->divTau(alpha1f, U);
}
For representations based on transformed conformation tensors, the polymeric stress divergence is implemented in the representation-specific divTau routine. This routine forms the coefficient etaPEff_ and delegates assembly to the templated helper divTauT. The latter weights the polymeric stress with the bounded cell-centered phase fraction limitedAlpha1. When alpha_ is nonzero, the BSD formulation subtracts an explicit diffusion operator and adds the identical operator implicitly. Thus BSD changes the algebraic splitting and convergence behavior without adding net diffusion to the converged momentum equation. When alpha_ is zero, only the phase-weighted polymeric stress divergence remains.
Foam::tmp<Foam::fvVectorMatrix>
Foam::logConformationUncorrected::divTau
(
const surfaceScalarField& alpha1f, volVectorField& U
)
{
if (alpha_ > SMALL)
{
etaPEff_ = alpha_*law_->etaP();
}
return divTauT<volScalarField>(alpha1f, U);
}
tmp<fvVectorMatrix>
logConformationUncorrected::divTauT
(
const surfaceScalarField& alpha1f,
volVectorField& U
) const
{
volScalarField limitedAlpha1 =
min(max(alpha1(), scalar(0)), scalar(1));
if (alpha_ > SMALL)
{
return
fvc::div(tau_*limitedAlpha1)
- fvc::div((etaPEff_*limitedAlpha1)*fvc::grad(U))
+ fvm::laplacian((etaPEff_*limitedAlpha1), U);
}
return fvc::div(tau_*limitedAlpha1);
}
Overall, the library design isolates constitutive modelling, numerical representation, and solver coupling. The solver receives only the assembled contribution of the polymeric stress to the momentum equation, while all details related to viscoelastic transport, stabilization, and tensor transformations remain encapsulated within the library.
Numerical validation
In this section, we evaluate the accuracy of the proposed numerical methodology by analyzing various benchmark two-phase viscoelastic flow problems from the literature. First, we investigate a 2D viscoelastic two-phase system in simple shear flow. Next, we examine the rising of a Newtonian bubble in a viscoelastic medium, considering both 2D planar and axisymmetric configurations. Finally, we validate the method for a 3D buoyancy-driven Newtonian bubble in a viscoelastic matrix.
Shear-Induced Deformation of a 2D Drop
Figueiredo et al. [27] investigated a 2D shear-driven droplet system in which either the dispersed or continuous phase is viscoelastic. To enable direct comparison with their results, we adopt the Oldroyd-B constitutive model. The computational domain, as sketched in Figure 2, is a rectangle of size , discretized with an equidistant mesh corresponding to 32 grid points per droplet radius . A circular droplet is initially placed at the domain center. Periodic boundary conditions are imposed in the streamwise () direction, while no-slip conditions are applied at the top and bottom walls. A simple Couette shear flow () is generated by imposing opposite wall velocities, at the top () and at the bottom ().
Figure 2. Sketch of the shear-driven system.
The relevant non-dimensional numbers are defined as follows: the Reynolds number , Capillary number , solvent viscosity ratio , and Weissenberg number . The droplet deformation is quantified using the Taylor deformation parameter, , where and are the maximum and minimum distances from the droplet center to the interface, respectively.
Simulations are conducted for three cases: an Oldroyd-B droplet in a Newtonian medium (VN), a Newtonian droplet in an Oldroyd-B medium (NV), and an all-Newtonian system (NN). The parameters used are , , , and . Figure 3 shows the time evolution of the deformation parameter and the droplet interface shape at , alongside reference results from Figueiredo et al. [27]. The comparison indicates good agreement, confirming the accuracy of the present numerical approach.

Figure 3. 2D drop deformation under simple shear flow for three configurations: all-Newtonian (NN), viscoelastic drop in a Newtonian medium (VN), and Newtonian drop in a viscoelastic medium (NV). (Left) Time evolution of the deformation parameter ; (Right) drop shapes at . Symbols represent the present numerical results, whereas solid lines correspond to the reference data from Figueiredo et al. [27].
2D Newtonian Drop Rising in a Viscoelastic Medium
Next, we validate the proposed method by simulating the rise of a Newtonian drop in an Oldroyd-B viscoelastic fluid, and comparing the results with those reported by Prieto [64], Vahabi and Sadeghy [65], and Dritselis and Karapetsas [34]. The configuration (Figure 4) is based on the classical Newtonian benchmark case by Hysing et al. [66]. The computational domain has a width and height . Initially, a circular drop of radius is positioned at . No-slip boundary conditions are applied at the top and bottom boundaries. To facilitate comparison with reference studies, different boundary conditions are imposed on the vertical sidewalls: Prieto [64] and Hysing et al. [66] employed free-slip conditions, whereas Dritselis and Karapetsas [34] and Vahabi and Sadeghy [65] used no-slip conditions.
Figure 4. Sketch of the buoyancy-driven system.
The characteristic length, velocity, and time scales are defined as , , and , respectively. The relevant non-dimensional
numbers are defined as
where , , , , , and denote the Reynolds number, the Eötvös number, the Weissenberg number, the viscosity ratio, the density ratio, and the solvent viscosity ratio, respectively.
We first compare our results for the NN (, ) and NV (, ) cases with the reference data from Hysing et al. [66] and Prieto [64], respectively. For both cases, the remaining parameters are set to , , , and . A uniform Cartesian mesh consisting of cells is employed. Figure 5 presents the time evolution of the terminal velocity and the steady-state bubble shapes for both NN and NV cases. It is worth noting that Prieto [64] used the microscopic Hookean dumbbell model, in contrast to the Oldroyd-B model employed in this study. Nonetheless, the present results show good agreement with the reference data from both Hysing et al. [66] and Prieto [64], validating the robustness of the numerical methodology.

Figure 5. 2D rising bubble case. (Left) Evolution of the terminal velocity; (Right) steady-state bubble shapes for a Newtonian droplet in a Newtonian medium (NN) and a Newtonian droplet in a viscoelastic medium (NV).
Next, the numerical method is further validated for the NV case using the following parameters: , , , , , and . It is noteworthy that this particular configuration has led to inconsistent results in the literature [65, 24, 34]. Specifically, discrepancies in the droplet shape at s have been reported.
Earlier studies by Zainali et al. [67] and Vahabi and Sadeghy [65] produced different shapes at this time instant. Vahabi and Sadeghy [65] observed a cusped tail, a characteristic feature in buoyancy-driven NV systems with high polymer concentrations [22]. In contrast, Zainali et al. [67] reported a smoother drop shape. A later study by Izbassarov et al. [24] reproduced the cusped shape reported by Vahabi and Sadeghy [65]. Similarly, Dritselis and Karapetsas [34] obtained a drop with a cusped tail; however, the droplet position was found to lie between those observed by Vahabi and Sadeghy [65] and Zainali et al. [67]. Dritselis and Karapetsas reported that results at a later time ( s) were more consistent with the observations of Vahabi and Sadeghy, and attributed the earlier discrepancies to differences in numerical schemes.
In the present work, the droplet shapes at s and s are compared with the findings of Vahabi and Sadeghy [65] and Dritselis and Karapetsas [34], as shown in Figure 6. Additionally, we examine the evolution of the terminal velocity for the same configuration. Overall, the present results show good agreement with those reported by Dritselis and Karapetsas, further demonstrating the accuracy and robustness of the proposed numerical methodology.

Figure 6. 2D rising bubble case. (Left) Droplet shapes at s and s; (Right) evolution of terminal velocity for a Newtonian droplet rising in a viscoelastic medium (NV case).
Axisymmetric Rising Bubble in a Viscoelastic Matrix
To further validate our numerical methodology, we analyze buoyancy-driven dynamics in an axisymmetric configuration. Esposito et al. [62] and Ohta et al. [68] investigated the motion of a viscous drop in a viscoelastic medium using numerical and experimental approaches, respectively. To directly compare the results of Esposito et al., we adopted the exponential PTT constitutive model. The rheological parameters for the 1.6% HASE polymeric solution, based on their data, are listed in Table 2.
| 1.6 | 956 | 0.01 | 2.73 | 0.06 | 0.065 | 0.0442 |
Table 2. Rheological parameters of a hydrophobically modified alkali-soluble emulsion polymer (HASE) [68] are based on the fit by Esposito et al. [62].
The computational domain and corresponding mesh are schematically illustrated in Figure 7. A multilayer mesh generated using the blockMesh utility. The mesh parameters are summarized in Table 3. A Newtonian drop of radius is initially positioned at within a cylindrical domain of height and radius . Axisymmetry is assumed, with the left boundary representing the centerline. A no-slip condition is applied to the velocity, and a zero-gradient condition is applied to the pressure, on the right and bottom boundaries. On the top boundary, atmospheric pressure is prescribed, along with a zero-gradient condition for velocity. For the viscoelastic stress tensor, Neumann boundary conditions are enforced on the lateral and top boundaries of the domain.
| Quantity | Length | Number of cells |
| 80 | ||
| 40 | ||
| 40 | ||
| 80 |
Table 3. A summary of the numerical mesh.
Figure 7. Axisymmetric rising bubble in a viscoelastic medium (NV case). Computational domain and mesh (not to scale), where red and blue indicate the continuous viscoelastic and dispersed phases, respectively.
The relevant non-dimensional numbers are: the Weissenberg number , the Archimedes number , the Bond number , the viscosity ratio , the density ratio , and the solvent viscosity ratio .
We compare the present results at and 7.5 with the reference data reported by Ohta et al. [68] and Esposito et al. [62], as shown in Figure 8 and Figure 9. The overall evolution of the terminal velocity shows good agreement with the numerical results of Esposito et al. At steady state, both the velocity and bubble shape converge to the experimental data reported by Ohta et al. Notably, the present results successfully reproduce the elongated and cusped tail observed experimentally by Ohta et al.

Figure 8. Axisymmetric rising bubble in a viscoelastic medium (NV case). The evolution of terminal rising bubble in a viscoelastic medium (NV case). The evolution of terminal velocity for and .
Figure 9. Axisymmetric rising bubble in a viscoelastic medium (NV case). Comparison of the present results against reference data from Esposito et al. [62] and Ohta et al. [68] for and . The steady-state bubble shapes at s for and , respectively.
Three-dimensional bubble rising in a viscoelastic fluid
Next, two three-dimensional validation cases of a Newtonian bubble rising in an Oldroyd-B viscoelastic fluid were simulated. The obtained results are compared with the numerical data reported by Yuan et al. [33] and Naseer et al. [23] to assess the accuracy of the proposed numerical methodology.
The characteristic length, velocity, and time scales are defined as , , and , respectively. The associated non-dimensional numbers are provided in eq. (62). The computational setup is based on the configurations reported by Yuan et al. [33] and Naseer et al. [23], with a domain size of in the , , and directions, where denotes the initial bubble radius. The base Cartesian mesh contains million cells. Dynamic AMR is applied to cells intersected by the interface every ten time steps, using two buffer layers and at most two refinement levels, with a global limit of six million cells. The bubble is centered in both lateral directions and initially positioned at , corresponding to in the archived case coordinates.
Zero-gradient boundary conditions are applied to all boundaries for both the polymeric stress and the volumetric phase fraction. For pressure, atmospheric conditions are prescribed at the top boundary, while a zero pressure-gradient boundary condition is enforced on the remaining sides. In terms of velocity, a zero-gradient condition is applied at the top, and no-slip conditions are imposed on the other boundaries. The gravitational force acts in the negative -direction.
Figure 10 presents a comparison between our simulation results and the reference data reported by Yuan et al. [33] and Naseer et al. [23]. The evolution of terminal velocity for Case A and Case B (as defined in Table 4) is shown on the left, demonstrating good agreement with the reference studies. The inset provides a comparison of the steady-state bubble shape for Case A against the results of Yuan et al. On the right side of the figure, the bubble shape for Case B is depicted along with streamlines colored by the local velocity magnitude. As observed in previous studies [33, 23], a distinct negative wake forms behind the rising bubble.
| Case | ||||||
| A | 3.91 | 100 | 1 | 0.8 | 0.01 | 0.001 |
| B | 3.91 | 100 | 10 | 0.2 | 0.01 | 0.001 |
Table 4. Flow parameters for two viscoelastic configurations.
Figure 10. 3D rising bubble in a viscoelastic medium. The left panel illustrates the temporal evolution of the terminal velocity for Case A and Case B. Present results (lines) are compared with reference data [33, 23] (symbols). Red and blue colors represent Case A and Case B, respectively. The inset compares the steady-state bubble shape for Case A with the results of Yuan et al. [33]. The right panel depicts the bubble shape along with the corresponding flow streamlines in a mid-plane section, with the streamlines color-coded by the local velocity magnitude.
Conclusion
DeboRheo v2.0 extends the unstructured geometrical VOF framework of DeboRheo to more demanding viscoelastic two-phase flows involving large property contrasts, substantial interfacial deformation, and thin liquid structures. The principal numerical modification concerns the treatment of solvent viscosity at fluid in terfaces. Whereas the previous formulation evaluated the face viscosity from the geometrically reconstructed face area fraction, DeboRheo v2.0 constructs the face mixture viscosity by separately interpolating the cell-centered phase fraction and phase viscosities. This treatment introduces a mesh-dependent viscous transition over the finite-volume interpolation stencil while retaining the sharp geometrically reconstructed VOF interface. The revised formulation substantially improves numerical robustness when large viscosity contrasts coincide with thin viscoelastic lamellae or filaments.
The updated solver retains geometrical interface reconstruction and phase advection that is consistent with both mass and momentum. It also supports consistent pressure–velocity coupling through SIMPLEC, which can be activated using the OpenFOAM PIMPLE controls. The framework combines these numerical components with a modular treatment of viscoelastic constitutive equations and stabilization methods based on transformed conformation tensors.
The methodology was assessed using two-dimensional, axisymmetric, and three-dimensional viscoelastic two-phase benchmarks governed by the Oldroyd-B and nonlinear exponential Phan–Thien–Tanner models. The results agree well with published numerical and experimental reference data across the investigated configurations. The validation covers a demanding range of free-surface dynamics, including substantial interfacial deformation, elongated tails, and the formation of thin lamellae and filaments. These results demonstrate the improved robustness and versatility of DeboRheo v2.0.
DeboRheo v2.0 provides an open, modular, and extensible framework for simulating interface-resolved viscoelastic two-phase flows on unstructured meshes. An important remaining limitation concerns the transport of the viscoelastic constitutive state. In the present one-field formulation, the conformation tensor, or its transformed representation, is transported throughout the computational domain using conventional finite-volume advection. Its transport is therefore not geometrically consistent with the phase-specific VOF flux, allowing numerical diffusion of the constitutive state across the interface. Future work will focus on developing a geometrically consistent co-advection scheme for discontinuous tensor-valued constitutive variables, systematically characterizing the mesh dependence and accuracy of the interfacial viscosity treatment, and extending the framework to increasingly inertia-dominated flows and topologically complex viscoelastic free-surface configurations.
Acknowledgements
D.I. and R.S. acknowledge financial support from the Research Council of Finland grant 354620. D.B. and T.M. acknowledge funding by the German Research Foundation (DFG)–Project ID 265191195–SFB 1194. M.M. acknowledges financial support from the Scientific and Technical Research Council of Türkiye (TUBITAK) [Grant Number 119M513]. The authors wish to acknowledge CSC – IT Center for Science, Finland, for computational resources.
Data and software availability
The source code, pinned third-party dependencies, validation cases, reference data, and step-by-step reproduction instructions are publicly available in the immutable DeboRheo v2.0.5 release. All results reported in this work were obtained using the released DeboRheo v2.0 code with OpenFOAM v2512. The release provides the complete case inputs, all relevant numerical and experimental reference data used for validation, publication-quality comparison figures, and the workflows required to reproduce and assess the reported results.
References
- [1]A. Rafieefar, F. Sharif, A. Hashemi, A. M. Bazargan, Rheological behavior and filtration of water-based drilling fluids containing graphene oxide: Experimental measurement, mechanistic understanding, and modeling, ACS Omega 6 (44) (2021) 29905–29920, pMID: 34778663. arXiv:https://doi.org/10.1021/acsomega.1c04398, doi:10.1021/acsomega.1c04398. URL https://doi.org/10.1021/acsomega.1c04398
- [2]M. A. Rao, Rheology of fluid and semisolid foods: principles and applications, Springer Science & Business Media, 2010.DOI
- [3]E. W. Errill, Rheology of blood, Physiological Reviews 49 (4) (1969) 863–888. pMID: 4988603. arXiv:https://doi.org/10.1152/physrev.1969.49.4.863, doi:10.1152/physrev.1969.49.4.863. URL https://doi.org/10.1152/physrev.1969.49.4.863
- [4]J. B. Grotberg, Respiratory fluid mechanics, Physics of Fluids 23 (2) (2011).
- [5]F. Romanò, M. Muradoglu, H. Fujioka, J. Grotberg, The effect of viscoelasticity in an airway closure model, Journal of Fluid Mechanics 913 (2021) A31. doi: 10.1017/jfm.2020.1162.DOI
- [6]O. Erken, B. Fazla, M. Muradoglu, D. Izbassаров, F. Romanò, J. B. Grotberg, Effects of elastoviscoplastic properties of mucus on airway closure in healthy and pathological conditions, Phys. Rev. Fluids 8 (2023) 053102. doi:10.1103/PhysRevFluids.8.053102. URL https://link.aps.org/doi/10.1103/PhysRevFluids.8.053102DOI
- [7]B. Fazla, O. Erken, D. Izbassаров, F. Romanò, J. B. Grotberg, M. Muradoglu, Effects of kinematic hardening of mucus polymers in an airway closure model, Journal of Non-Newtonian Fluid Mechanics 330 (2024) 105281. doi:https://doi.org/10.1016/j.jnnfm.2024.105281. URL https://www.sciencedirect.com/science/article/pii/S0377025724000971
- [8]J. Levick, J. McDonald, Fluid movement across synovium in healthy joints: role of synovial fluid macromolecules., Annals of the Rheumatic Diseases 54 (5) (1995) 417–423. doi:https://doi.org/10.1136/ard.54.5.417. URL https://www.sciencedirect.com/science/article/pii/S0003496724031534
- [9]Y. Mine, Recent advances in the understanding of egg white protein functionality, Trends in Food Science & Technology 6 (7) (1995) 225–232. doi: 10.1016/S0924-2244(00)89057-6.DOI
- [10]R. Subburaj, R. Hao, F. Romanò, T. Maric, M. Muradoglu, D. Izbassarov, Mechanisms of droplet generation from liquid plug rupture in bronchioles: A numerical study, International Journal of Multiphase Flow 203 (2026) 105830.DOI
- [11]M. Renardy, Current issues in non-newtonian flows: a mathematical perspective, Journal of Non-Newtonian Fluid Mechanics 90 (2) (2000) 243–259. doi:https://doi.org/10.1016/S0377-0257(99)00081-6. URL https://www.sciencedirect.com/science/article/pii/S0377025799000816
- [12]J. G. Oldroyd, On the formulation of rheological equations of state, Proceedings of the Royal Society of London. Series A, Mathematical and Physical Sciences 200 (1063) (1950) 523–541. doi:10.1098/rspa.1950.0035. URL https://royalsocietypublishing.org/doi/10.1098/rspa.1950.0035DOI
- [13]R. Bird, P. Dotson, N. Johnson, Polymer solution rheology based on a finitely extensible bead–spring chain model, Journal of Non-Newtonian Fluid Mechanics 7 (2) (1980) 213–235. doi:https://doi.org/10.1016/0377-0257(80)85007-5. URL https://www.sciencedirect.com/science/article/pii/0377025780850075
- [14]M. Chilcott, J. Rallison, Creeping flow of dilute polymer solutions past cylinders and spheres, Journal of Non-Newtonian Fluid Mechanics 29 (1988) 381–432. doi:https://doi.org/10.1016/0377-0257(88)85062-6. URL https://www.sciencedirect.com/science/article/pii/0377025788850626
- [15]R. Fattal, R. Kupferman, Constitutive laws for the matrix-logarithm of the conformation tensor, Journal of Non-Newtonian Fluid Mechanics 123 (2) (2004) 281–285. doi:https://doi.org/10.1016/j.jnnfm.2004.08.008. URL https://www.sciencedirect.com/science/article/pii/S0377025704002630
- [16]M. Niethammer, H. Marschall, C. Kunkelmann, D. Bothe, A numerical stabilization framework for viscoelastic fluid flow using the finite volume method on general unstructured meshes, International Journal for Numerical Methods in Fluids 86 (2) (2018) 131–166. arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1002/fld.4411, doi:https://doi.org/10.1002/fld.4411. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/fld.4411
- [17]M. Alves, P. Oliveira, F. Pinho, Numerical methods for viscoelastic fluid flows, Annual Review of Fluid Mechanics 53 (Volume 53, 2021) (2021) 509–541. doi:https://doi.org/10.1146/annurev-fluid-010719-060107. URL https://www.annualreviews.org/content/journals/10.1146/annurev-fluid-010719-060107
- [18]M. A. Hulsen, A sufficient condition for a positive definite configuration tensor in differential models, Journal of Non-Newtonian Fluid Mechanics 38 (1) (1990) 93–100. doi:https://doi.org/10.1016/0377-0257(90)85034-V. URL https://www.sciencedirect.com/science/article/pii/037702579085034V
- [19]R. G. Owens, T. N. Phillips, Computational rheology, World Scientific, 2002.
- [20]N. Balci, B. Thomases, M. Renardy, C. R. Doering, Symmetric factorization of the conformation tensor in viscoelastic fluid models, Journal of Non-Newtonian Fluid Mechanics 166 (11) (2011) 546–553, xVIth International Workshop on Numerical Methods for Non-Newtonian Flows. doi:https://doi.org/10.1016/j.jnnfm.2011.02.008. URL https://www.sciencedirect.com/science/article/pii/S0377025711000504
- [21]X. Chen, H. Marschall, M. Schäfer, D. Bothe, A comparison of stabilization approaches for finite-volume simulation of viscoelastic fluid flow, International Journal of Computational Fluid Dynamics 27 (6-7) (2013) 229–250.DOI
- [22]D. Izbassarov, M. Muradoglu, A front-tracking method for computational modeling of viscoelastic two-phase flow systems, Journal of Non-Newtonian Fluid Mechanics 223 (2015) 122–140.DOI
- [23]H. U. Naseer, Z. Ahmed, D. Izbassarov, M. Muradoglu, Dynamics and interactions of parallel bubbles rising in a viscoelastic fluid under buoyancy, Journal of Non-Newtonian Fluid Mechanics 313 (2023) 105000.
- [24]D. Izbassarov, M. E. Rosti, M. N. Ardekani, M. Sarabian, S. Hormozi, L. Brandt, O. Tammisola, Computational modeling of multiphase viscoelastic and elastoviscoplastic flows, International Journal for Numerical Methods in Fluids 88 (12) (2018) 521–543.DOI
- [25]K. Bazesefidpar, L. Brandt, O. Tammisola, A dual resolution phase-field solver for wetting of viscoelastic droplets, International Journal for Numerical Methods in Fluids 94 (9) (2022) 1517–1541. arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1002/fld.5100, doi:https://doi.org/10.1002/fld.5100. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/fld.5100
- [26]T. Chinyoka, Y. Renardy, M. Renardy, D. Khismatullin, Two-dimensional study of drop deformation under simple shear for oldroyd-b liquids, Journal of Non-Newtonian Fluid Mechanics 130 (1) (2005) 45–56. doi:https://doi.org/10.1016/j.jnnfm.2005.07.005. URL https://www.sciencedirect.com/science/article/pii/S0377025705001710
- [27]R. Figueiredo, C. Oishi, A. Afonso, I. Tasso, J. Cuminato, A two-phase solver for complex fluids: Studies of the weissbenberg effect, International Journal of Multiphase Flow 84 (2016) 98–115.DOI
- [28]J. López-Herrera, S. Popinet, A. Castrejón-Pita, An adaptive solver for vis-coelastic incompressible two-phase problems applied to the study of the splash-ing of weakly viscoelastic droplets, Journal of Non-Newtonian Fluid Mechanics 264 (2019) 144–158. doi:https://doi.org/10.1016/j.jnnfm.2018.10.012. URL https://www.sciencedirect.com/science/article/pii/S0377025718300752
- [29]J. Favero, A. Secchi, N. Cardozo, H. Jasak, Viscoelastic flow analysis using the software openfoam and differential constitutive equations, Journal of Non-Newtonian Fluid Mechanics 165 (23) (2010) 1625–1636. doi:https://doi.org/10.1016/j.jnnfm.2010.08.010. URL https://www.sciencedirect.com/science/article/pii/S0377025710002417
- [30]F. Habla, A. Woitalkа, S. Neuner, O. Hinrichsen, Development of a methodology for numerical simulation of non-isothermal viscoelastic fluid flows with application to axisymmetric 4:1 contraction flows, Chemical Engineering Journal 207-208 (2012) 772–784, 22nd International Symposium on Chemical Reaction Engineering (ISCRE 22). doi:https://doi.org/10.1016/j.cej.2012.07.060. URL https://www.sciencedirect.com/science/article/pii/S1385894712009515
- [31]L. Holmes, J. Favero, T. Osswald, Numerical simulation of three-dimensional viscoelastic planar contraction flow using the software openfoam, Computers & Chemical Engineering 37 (2012) 64–73. doi:https://doi.org/10.1016/j.compchemeng.2011.09.015. URL https://www.sciencedirect.com/science/article/pii/S0098135411002869
- [32]F. Pimenta, M. Alves, Stabilization of an open-source finite-volume solver for viscoelastic fluid flows, Journal of Non-Newtonian Fluid Mechanics 239 (2017) 85–104.DOI
- [33]W. Yuan, M. Zhang, B. C. Khoo, N. Phan-Thien, Dynamics and deformation of a three-dimensional bubble rising in viscoelastic fluids, Journal of Non-Newtonian Fluid Mechanics 285 (2020) 104408.DOI
- [34]C. Dritselis, G. Karapetsas, Open-source finite volume solvers for multiphase (n-phase) flows involving either newtonian or non-newtonian complex fluids, Computers & Fluids 245 (2022) 105590.arxiv.org/abs/2203.09870
- [35]T. Marić, D. B. Kothe, D. Bothe, Unstructured un-split geometrical volume-of-fluid methods – a review, Journal of Computational Physics 420 (2020) 109695. doi:https://doi.org/10.1016/j.jcp.2020.109695. URL https://www.sciencedirect.com/science/article/pii/S0021999120304691
- [36]S. Popinet, Basilisk, http://basilisk.fr (2014).
- [37]G. Esposito, Y. Dimakopoulos, J. Tsamopoulos, Buoyancy induced motion of a newtonian drop in elastoviscoplastic materials, Journal of Rheology 68 (5) (2024) 815–835.arxiv.org/abs/2408.06748
- [38]R. Hao, D. Izbassarov, M. Muradoglu, J. B. Grotberg, T. Lacassagne, S. A. Bahrani, F. Romanò, Non-newtonian and surfactant effects on the liquid plug rupture in an airway reopening model, Journal of Fluid Mechanics 1023 (2025) A14.DOI
- [39]R. Hao, D. Izbassarov, M. Muradoglu, J. B. Grotberg, F. Romanò, Effects of two-layer coating on plug propagation and rupture in an elastoviscoplastic airway reopening model, Journal of Fluid Mechanics 1037 (2026) A57. doi: 10.1017/jfm.2026.11718.DOI
- [40]M. Niethammer, M. H. Asghar, D. Bothe, T. Maric, An unstructured geometrical un-split vof method for viscoelastic two-phase flows, Computer Physics Communications 309 (2025) 109475.DOI
- [41]H. Scheufler, J. Roenby, Twophaseflow: An openfoam based framework for development of two phase flow solvers (2021). arXiv:2103.00870. URL https://arxiv.org/abs/2103.00870
- [42]M. Niethammer, G. Brenn, H. Marschall, D. Bothe, An extended volume of fluid method and its application to single bubbles rising in a viscoelastic liquid, Journal of Computational Physics 387 (2019) 326–355.DOI
- [43]M. Niethammer, H. Marschall, D. Bothe, Robust direct numerical simulation of viscoelastic flows, Chemie Ingenieur Technik 91 (4) (2019) 522–528. arXiv: https://onlinelibrary.wiley.com/doi/pdf/10.1002/cite.201800108, doi:https://doi.org/10.1002/cite.201800108. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/cite.201800108
- [44]S. Meburger, M. Niethammer, D. Bothe, M. Schäfer, Numerical simulation of non-isothermal viscoelastic flows at high weissenberg numbers using a finite volume method on general unstructured meshes, Journal of Non-Newtonian Fluid Mechanics 287 (2021) 104451. doi:https://doi.org/10.1016/j.jnnfm.2020.104451. URL https://www.sciencedirect.com/science/article/pii/S0377025720301932
- [45]R. Guénette, M. Fortin, A new mixed finite element method for computing viscoelastic flows, Journal of non-newtonian fluid mechanics 60 (1) (1995) 27–52.DOI
- [46]F. Pimenta, M. Alves, Stabilization of an open-source finite-volume solver for viscoelastic fluid flows, Journal of Non-Newtonian Fluid Mechanics 239 (2017) 85–104.DOI
- [47]C. Fernandes, M. Araujo, L. Ferrás, J. M. Nóbrega, Improved both sides diffusion (ibsd): A new and straightforward stabilization approach for viscoelastic fluid flows, Journal of Non-Newtonian Fluid Mechanics 249 (2017) 63–78.DOI
- [48]J. Liu, T. Tolle, T. Maric, A residual-based non-orthogonality correction for force-balanced unstructured volume-of-fluid methods, arXiv preprint arXiv:2402.04043 (2024).arxiv.org/abs/2402.04043
- [49]J. U. Brackbill, D. B. Kothe, C. Zemach, A continuum method for modeling surface tension, Journal of computational physics 100 (2) (1992) 335–354.DOI
- [50]Y. Y. Renardy, V. Cristini, Effect of inertia on drop breakup under shear, Physics of Fluids 13 (1) (2001) 7–13.DOI
- [51]S. Popinet, Numerical models of surface tension, Annual Review of Fluid Mechanics 50 (1) (2018) 49–75.DOI
- [52]J. Liu, T. Tolle, D. Zuzio, J.-L. Estivalèzes, S. M. Damian, T. Marić, Inconsistencies in unstructured geometric volume-of-fluid methods for two-phase flows with high density ratios, Computers & Fluids 281 (2024) 106375.DOI
- [53]J. Liu, T. Tolle, D. Bothe, T. Marić, An unstructured finite-volume level set/front tracking method for two-phase flows with large density-ratios, Journal of Computational Physics 493 (2023) 112426.DOI
- [54]J. P. Van Doormaal, G. D. Raithby, Enhancements of the simple method for predicting incompressible fluid flows, Numerical Heat Transfer 7 (2) (1984) 147–163. doi:10.1080/01495728408961817. URL http://www.tandfonline.com/doi/abs/10.1080/01495728408961817DOI
- [55]F. Pimenta, M. Alves, Rheotool, https://github.com/fppimenta/rheoTool (2016).
- [56]H. Jasak, Error analysis and estimation in the finite volume method with applications to fluid flows (1996).
- [57]F. Juretić, A. D. Gosman, Error Analysis of the Finite-Volume Method with Respect to Mesh Type, Numerical Heat Transfer, Part B: Fundamentals 57 (6) (2010) 414–439. doi:10.1080/10407791003685155. URL http://www.tandfonline.com/doi/abs/10.1080/10407791003685155DOI
- [58]H. Scheufler, J. Roenby, Accurate and efficient surface reconstruction from volume fraction data on general meshes, Journal of computational physics 383 (2019) 1–23.DOI
- [59]J. Roenby, H. Bredmose, H. Jasak, A computational method for sharp interface advection, Royal Society open science 3 (11) (2016) 160405.
- [60]A. Tourbier, L. Gamet, P. Béard, T. Michel, J. Aubin, H. Jasak, A consistent methodology to transport a passive scalar with the geometric volume-of-fluid method isoAdvector, Journal of Computational Physics 513 (2024) 113198.DOI
- [61]T. Tolle, D. Bothe, T. Marić, Saample: A segregated accuracy-driven algorithm for multiphase pressure-linked equations, Computers & Fluids 200 (2020) 104450.DOI
- [62]G. Esposito, Y. Dimakopoulos, J. Tsamopoulos, Buoyancy driven flow of a viscous drop in viscoelastic materials, Journal of Non-Newtonian Fluid Mechanics 321 (2023) 105124.DOI
- [63]H. Scheufler, J. Roenby, Twophaseflow: a framework for developing two phase flow solvers in openfoam, OpenFOAM® Journal 3 (2023) 200–224.DOI
- [64]J. Prieto, Stochastic particle level set simulations of buoyancy-driven droplets in non-newtonian fluids, Journal of Non-Newtonian Fluid Mechanics 226 (2015) 16–31.DOI
- [65]M. Vahabi, K. Sadeghy, On the use of sph method for simulating gas bubbles rising in viscoelastic liquids, Nihon Reoroji Gakkaishi 42 (5) (2015) 309–319.DOI
- [66]S. Hysing, S. Turek, D. Kuzmin, N. Parolini, E. Burman, S. Ganesan, L. Tobiska, Quantitative benchmark computations of two-dimensional bubble dynamics, International Journal for Numerical Methods in Fluids 60 (11) (2009) 1259–1288.DOI
- [67]A. Zainali, N. Tofighi, M. Shadloo, M. Yildiz, Numerical investigation of newtonian and non-newtonian multiphase flows using sph method, Computer Methods in Applied Mechanics and Engineering 254 (2013) 99–113.DOI
- [68]M. Ohta, N. Kobayashi, Y. Shigekane, Y. Yoshida, S. Iwata, The dynamic motion of single bubbles with unique shapes rising freely in hydrophobically modified alkali-soluble emulsion polymer solutions, Journal of Rheology 59 (2) (2015) 303–316.DOI






