Next Article in Journal
Recent Advances in Nanoparticle-Mediated Treatment of Inflammatory Bowel Diseases
Next Article in Special Issue
Numerical Simulation of KBKZ Integral Constitutive Equations in Hierarchical Grids
Previous Article in Journal
A Simple Technique for Studying Chaos Using Jerk Equation with Discrete Time Sine Map
Previous Article in Special Issue
A FENE-P kε Viscoelastic Turbulence Model Valid up to High Drag Reduction without Friction Velocity Dependence
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Backwards-Tracking Lagrangian-Eulerian Method for Viscoelastic Two-Fluid Flows

1
Fraunhofer-Chalmers Research Centre for Industrial Mathematics, 412 88 Gothenburg, Sweden
2
Division of Engineering Materials, Department of Industrial and Materials Science, Chalmers University of Technology, 412 96 Gothenburg, Sweden
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(1), 439; https://doi.org/10.3390/app11010439
Submission received: 18 December 2020 / Revised: 30 December 2020 / Accepted: 31 December 2020 / Published: 5 January 2021

Abstract

:
A new Lagrangian–Eulerian method for the simulation of viscoelastic free surface flow is proposed. The approach is developed from a method in which the constitutive equation for viscoelastic stress is solved at Lagrangian nodes, which are convected by the flow, and interpolated to the Eulerian grid with radial basis functions. In the new method, a backwards-tracking methodology is employed, allowing for fixed locations for the Lagrangian nodes to be chosen a priori. The proposed method is also extended to the simulation of viscoelastic free surface flow with the volume of fluid method. No unstructured interpolation or node redistribution is required with the new approach. Furthermore, the total amount of Lagrangian nodes is significantly reduced when compared to the original Lagrangian–Eulerian method. Consequently, the method is more computationally efficient and robust. No additional stabilization technique, such as both-sides diffusion or reformulation of the constitutive equation, is necessary. A validation is performed with the analytic solution for transient and steady planar Poiseuille flow, with excellent results. Furthermore, the proposed method agrees well with numerical data from the literature for the viscoelastic die swell flow of an Oldroyd-B model. The capabilities to simulate viscoelastic free surface flow are also demonstrated through the simulation of a jet buckling case.

1. Introduction

Viscoelastic free surface flows are of significant importance for many industrial processes. This includes polymer extrusion, additive manufacturing, seam sealing, and adhesive joining. In such processes, the viscoelastic properties of the flow, such as the flow history, can have major influence on the quality of the final product. Furthermore, production time and raw materials may be subject to a large cost. Therefore, extensive manual effort and physical testing may be necessary to optimize the process in terms of product quality, material consumption, and production cycle time.
Numerical tools can be helpful in reducing the manual preparation time, as they offer the possibility to replace a significant part of the physical testing with computer simulation. Furthermore, numerical simulations may enable testing early in the design phase. For many complex industrial applications, a large demand for suitable numerical simulation tools therefore exists. Furthermore, for such tools to be useful, high demands are put on accuracy, robustness, and computational efficiency.
A common approach for simulating viscoelastic fluid flow is to discretize the governing equations in the Eulerian frame of reference with the finite volume method (FVM) [1,2,3] or the finite element method (FEM) [4,5]. The Eulerian frame of reference is suitable for diffusion-dominated problems, including viscous fluid flow as well as heat and mass transfer. On the other hand, viscoelastic constitutive equations are typically hyperbolic and they involve no physical diffusion term. Thus, in this sense, the Lagrangian frame of reference is a more natural description for the constitutive equation. Therefore, Lagrangian or semi-Lagrangian methods are appealing as alternative approaches to the Eulerian frame.
Rasmussen and Hassager [6] developed a Lagrangian finite element method in order to calculate the flow of an upper convected Maxwell (UCM) fluid. The entire flow history was stored and re-meshing was required, due to deformation. Harlen et al. [7] proposed a split Lagrangian–Eulerian method for viscoelastic Stokes flow. The constitutive equation was solved at the nodes of a co-deforming mesh, while the momentum and continuity equations were solved with an Eulerian finite element method. Re-meshing due to mesh distortion was also used in their method. Halin et al. proposed the Lagrangian particle method (LPM) [8]. In their method, the momentum and continuity equations were solved with the Eulerian finite element method. The constitutive equation was solved along the trajectories of massless Lagrangian particles. The stresses in the particles were then fitted to local polynomial expressions in order to enable the evaluation of the corresponding finite element integrals in the momentum. Hence, a minimum of three particles per two-dimensional element was required for the polynomial approximations to be feasible. Later on, the adaptive Lagrangian particle method (ALPM) [9] was proposed, utilizing adaptive addition and the deletion of particles. However, a fairly large number of particles was required for the simulations to produce stable transient results. Furthermore, Wapperom et al. [10] proposed the backward-tracking Lagrangian particle method (BLPM), in which backwards integration of the velocity field allowed for the choice of fixed particle locations a priori, increasing the efficiency of their particle tracking approach.
The simulation of viscoelastic free surface flow has been approached with different methods. For example, Crochet and Keunings [11] simulated the viscoelastic die swell effect of an Oldroyd-B fluid with a mixed finite element method as early as 1982. More recent similar examples of finite element methods on non-stationary grids can be found in Balemans et al. [12] and Spanjaards et al. [13]. The marker-and-cell (MAC) approach is a method that has been used quite extensively for simulation free surface flows [14,15,16,17,18,19,20], in which the governing equations discretized with finite differences and the free surface is tracked while using marker particles. The method has been successfully used for the simulation, for example, of the die swell and viscoelastic jet buckling with a variety of constitutive models. The simulations are typically performed on staggered, uniform grids, which has certain limitations for complex simulation geometries and in terms of computational efficiency when high resolution is required. Furthermore, the existence of a gas phase surrounding the viscoelastic fluid is not taken into account, which may be required for some cases. The front-tracking method is another similar method [21].
The volume of fluid (VOF) method is a popular method for the simulation of Newtonian as well as viscoelastic free surface flow with finite volume discretization. VOF is a diffuse–interface method, in which the presence of two or more fluid phases is represented by their corresponding volume fractions, advected with geometric or algebraic schemes. A sharp fluid interface may then be reconstructed from the solution. A single set of momentum, continuity equations are then solved for the whole domain, and the fluid properties are locally averaged with the fluid volume fraction. Furthermore, the transport of the volume fraction may be solved with the same spatial grid as the momentum and continuity equation, which makes the method suitable for finite volume simulation of free surface flow. Some examples follow.
Habla et al. [22] developed a VOF-solver for viscoelastic free surface flow that is based on the open source solver OpenFOAM [23]. The simulations were stabilized by reformulating the viscoelastic constitutive equations with the log-conformation representation (LCR) and with both-sides diffusion (BSD) in the momentum equation. Comminal et al. [24] simulated the viscoelastic die swell effect for Oldroyd-B and Giesekus fluids with the VOF method, combined with two different schemes for the convection of the fluid volume fraction, a geometric scheme, as well as an algebraic scheme that directly solved the transport equation for the volume fraction. Furthermore, their methods were compared to the VOF solver that is available in RheoTool [25], which is an open source toolbox for viscoelastic flow that is based on OpenFOAM. The constitutive equation was also reformulated with LCR in their study. Bonito et al. [26] reported a related method, using a mathematical formulation that is similar to the volume of fluid method, while solving the governing equations with a piecewise linear finite element method, contrary to finite volume discretization.
In previous work, a Lagrangian–Eulerian framework for viscoelastic flow has been proposed [27,28]. In the method, the constitutive equation is solved at Lagrangian nodes, which are convected by the flow. The momentum and continuity equations are discretized with the finite volume method on an Eulerian octree grid and then solved with SIMPLEC iterations [29]. Boundary conditions that are imposed by objects in the domain are treated using implicit immersed boundary methods [30,31]. The contribution to the momentum equation from the viscoelastic stress is established through the unstructured interpolation of the stress tensors from the Lagrangian nodes to the cell centers of the Eulerian grid while using the radial basis function.
The ability to efficiently simulate industrial applications, such as adhesive extrusion, parts assembly, and additive manufacturing, is a main motivator to develop the new method. For this purpose, it is necessary that the numerical method is accurate, computationally efficient, and robust. The ability to model viscoelastic free surface flow in complex geometry with moving objects is also necessary. The proposed method was shown to produce results in good agreement with available analytic and numerical data from the literature [27]. It has also been shown that the Lagrangian formulation of the constitutive equation allows for the efficient parallelization of the viscoelastic stress calculation, which makes the method highly suitable for GPU-acceleration [28]. Furthermore, the use of an immersed boundary method in combination with the automatically generated grid enables simulation on arbitrary geometry with minimal pre-processing.
In the previous studies [27,28], the proposed Lagrangian–Eulerian method has been validated for single-phase flows with uniform grids. The natural next steps include enabling the simulation of free surface flow as well as simulation on refined grids. Therefore, in the current work, the proposed method is further developed in these two aspects. Firstly, the framework is extended for simulation of viscoelastic free surface flows with the volume of fluid method. Secondly, a backwards-tracking procedure is introduced to the solution of the constitutive equation, partly inspired by the backward-tracking Lagrangian particle method by Wapperom et al. [10]. The result is a more robust method, due to the structured relation between the Lagrangian nodes and the Eulerian grid. No stabilization method, i.e., neither both-sides diffusion nor reformulation of the constitutive equation, is required for the studied flows. Furthermore, the computational cost as compared to the original Lagrangian–Eulerian method is reduced, since no unstructured interpolation or node redistribution is needed and because the total number of Lagrangian nodes decreased. In the context of multiphase flows, the viscoelastic constitutive equation is only solved inside the viscoelastic phase, which further increases the computational performance.
The rest of the paper is structured, as follows. In the next section, the governing equations are presented, followed by a detailed description of the proposed numerical method. In the results section, the new method demonstrated and validated with analytic solutions and numerical data from the literature. Finally, conclusions are drawn and future work is outlined.

2. Governing Equations

Viscoelastic fluid flow is described by the incompressible momentum and continuity equations
ρ u t + u · u = p + · ( 2 μ S + τ ) + f ,
· u = 0 ,
where ρ is the density, u velocity, μ the solvent viscosity, S = 1 2 ( u + ( u ) T ) the strain rate tensor, τ the viscoelastic stress tensor, and f a body force. The viscoelastic stress is governed by a constitutive equation of the general form
λ τ + F ( τ ) τ = 2 η S ,
where λ is the relaxation time, η polymeric viscosity, and F a scalar-valued function. The operator ( ) denotes the upper-convected derivative of τ , which expands to
τ = D τ D t ( u ) T · τ τ · u ,
where
D τ D t = τ t + u · τ ,
is the Lagrangian, or material, time derivative of τ . The Lagrangian time derivative describes the rate of change of τ in an infinitesimal material element, which moves with the flow. Convected time derivatives, such as ( ) , appear in viscoelastic constitutive equations and they ensure frame-invariance for the transport of tensorial properties. It is remarked that, while the form of (3) is not applicable for all available differential constitutive equations, it covers the constitutive models discussed in this work.
In general, the viscoelastic stress tensor may be modeled as a sum of the contribution of N modes as
τ = k = 1 N τ k ,
where τ k is the stress tensor that corresponds to the kth mode. Each stress tensor τ k is then governed by a constitutive equation on the form of (3) with an individual set of model parameters.

3. Numerical Method

The momentum Equation (1) and the continuity Equation (2) are discretized on a collocated Eulerian grid with the finite volume method. The pressure–velocity coupling is accomplished by solving the momentum and continuity equations with SIMPLEC iterations [32]. An octree grid is used, in which the cells can be refined in desired locations by recursively dividing them into smaller cells to a given refinement level. The refinements may be static or adaptively updated, typically around moving objects or fluid interfaces. Figure 1 displays an example grid in two dimensions with one refinement level, showing the cell centers and the grid nodes. The grid, including the adaptive refinements, is automatically generated by the solver.
Boundary conditions from objects in the domain are imposed while using the mirroring immersed boundary method [30,31]. The velocity field is implicitly mirrored across the immersed boundary surface, such that the imposed boundary condition is satisfied for the converged solution. Surface triangulations represent the geometrical objects.
The viscoelastic constitutive equation is solved in the Lagrangian frame of reference in material elements that are represented as Lagrangian nodes. From (3) and (4), it follows that the stress in a Lagrangian node is described by the ordinary differential equation (ODE)
D τ D t = 2 η λ S 1 λ F ( τ ) τ + ( u ) T · τ + τ · u .
Furthermore, the trajectory of the node must be known when solving (7), as it involves the local velocity gradient u . The trajectory of the node is given by the ODE
D x D t = u ,
where x is the position of the node.
Given an initial stress state in a set of Lagrangian nodes, a straightforward approach to obtain the stress state at a future time is to simultaneously solve (7) and (8) forwards in time. Indeed, this method has been successfully employed in previous work [27,28]. Lagrangian nodes were then initialized with a given distribution density at the start of the simulation. The distribution was maintained in each time step by adding or deleting nodes, if necessary. After solving the constitutive equation at the Lagrangian nodes, the viscoelastic stress was interpolated to the Eulerian cell centers while using radial basis functions (RBF).
In this work, the method is further developed by introducing the concept of backwards-tracking. The key idea is to choose the locations of the Lagrangian nodes a priori, at which the viscoelastic stresses are then stored, and then track them backwards in time in order to obtain their initial location in each time step. The constitutive equation may then be solved forwards in time such that the stresses are obtained at for the next time step at the chosen locations. Different choices for the locations are conceivable. In the current work, the locations of the Lagrangian nodes are chosen to be at the Eulerian grid nodes.
Consider the calculation of the viscoelastic stress for the nth simulation step, which corresponds to the time interval I n = [ t n , t n + 1 ] . At this point, it is assumed that momentum equation has been solved, such that the velocity field is known for t I n .
The Lagrangian constitutive equation is solved along the trajectories of Lagrangian nodes. For a Lagrangian node, the trajectory x ( t ) can be expressed in terms of the position at the end of the time step, as
x ( t ) = x ( t n + 1 ) t t n + 1 u ( t , x ( t ) ) d t , t I n ,
where x ( t n + 1 ) is the predefined final location of the Lagrangian node which. The trajectory x ( t ) for t I n is first calculated by solving (8) backwards in time. Subsequently, when the trajectory is known, the viscoelastic stress τ ( t n , x ( t n ) ) is interpolated from the viscoelastic stresses from the solution of the previous simulation step. The Lagrangian constitutive Equation (7) is then solved forwards in time and the viscoelastic stress is thus obtained at the final location x ( t n ) , i.e., at the predefined location.
Generally, the choice of locations for the Lagrangian nodes is somewhat arbitrary. However, by choosing the locations of the Eulerian grid nodes, the connectivity and structure of the octree grid may be utilized when the stress at time t n is interpolated to the position of a Lagrangian node x ( t n ) . The stress at the node at time t n is obtained through bilinear or trilinear interpolation, respectively, for two-dimensional (2D) and three-dimensiona (3D). Furthermore, the viscoelastic stress contribution to the discretized momentum equation may be calculated directly from node stresses. Therefore, no unstructured interpolation of viscoelastic stresses is necessary. The calculation of this contribution is described in detail further on in this section.
Figure 2 shows a schematic description of the steps that are involved in the algorithm. In summary, the performed steps are:
(a)
Calculate the Lagrangian node trajectory by solving (8) backwards in time, starting at the predefined location x ( t n + 1 ) .
(b)
Interpolate the stress τ ( t n , x ( t n ) ) to the Lagrangian node from the known node values at time t n .
(c)
Solve (7) forwards in time along the trajectory x ( t ) , t I n .
The ordinary differential Equations (7) and (8) may be solved with any appropriate choice of ODE solution algorithm. In this work, the fourth order Runge–Kutta method, which is commonly referred to as the RK4 method [33], is used. Furthermore, N sub equally sized substeps of length Δ t sub are used, being defined, such that N sub Δ t sub = Δ t = t n + 1 t n . In the current work, N sub = 3 is used.
When solving (7) and (8), local quantities that are stored on the Eulerian grid are required along the trajectory of the Lagrangian nodes. More specifically, the velocity u is needed for the backwards-tracking and the velocity gradient u is needed to solve the constitutive equation. The velocities are stored at the Eulerian cell centers. When the local velocity is required, the cell centers containing the Lagrangian node are identified and the velocity is interpolated to its location while using bilinear or trilinear interpolation, respectively, for 2D and 3D. When the velocity gradient is required, it is calculated from the bilinear or trilinear interpolation formula using the same interpolation basis.
For the interpolation of a field ϕ to a location within a box spanned by the corners ( x i , y j , z k ) , i , j , k { 0 , 1 } , the trilinear interpolation formula in order to calculate the interpolant ϕ ^ reads
ϕ ^ = i = 0 1 j = 0 1 k = 0 1 c x i c y j c z k ϕ i j k ,
where ϕ i j k is the value of ϕ at the corner ( x i , y j , z k ) and with the coefficients
c l i = 1 x ¯ l / Δ x l , i = 0 x ¯ l / Δ x l , i = 1 , l = x , y , z ,
where x ¯ l is the lth coordinate of the interpolation position relative to the lower corner of the box and Δ x l is the size of the box that coordinate direction. The gradient of ϕ ^ follows from (10) and (11), as
ϕ ^ x = i = 0 1 j = 0 1 k = 0 1 c x i x c y j c z k ϕ i j k ,
ϕ ^ y = i = 0 1 j = 0 1 k = 0 1 c x i c y j y c z k ϕ i j k ,
ϕ ^ z = i = 0 1 j = 0 1 k = 0 1 c x i c y j c z k z ϕ i j k ,
where the derivatives of the coefficients read
c l i x l = 1 Δ x l , i = 0 , 1 , l = x , y , z .
The corresponding formulas for bilinear interpolation in two dimensions are obtained by letting the coefficient c z k = 1 and, thus, c z k / z = 0 , and skipping the summation over k.
When interpolating to a Lagrangian node near fluid grid refinements the smallest local cell size is used in order to form the interpolation box. Furthermore, not all corners of the interpolation box coincide with a cell center. The velocities at such corners are obtained through least squares interpolation, by fitting a first order polynomial from the centers of the cells that intersect the interpolation box. The interpolation box is visualized in Figure 3.
The volume of fluid (VOF) method is used to model the presence of a viscoelastic fluid phase and a Newtonian phase. A color function ξ , is then defined, such that
ξ = 1 In the viscoelastic phase 0 In the Newtonian phase .
The discrete counterpart of ξ is the fluid volume fraction α [ 0 , 1 ] , which is the local volume average of ξ in an Eulerian cell. The transport of α is described by the convection equation [34]
α t + u · α = 0 .
By definition, α is the local volume fraction of the viscoelastic phase in a control volume. Hence, if α = 1 , the control volume is filled with the viscoelastic fluid and if α = 0 with the Newtonian fluid. If α ( 0 , 1 ) , this is interpreted as that the control volume intersects the interface between the fluid phases. The transport Equation (17) is discretized with the finite volume method on the Eulerian octree grid. In order to minimize the numerical diffusion of α and, thus, avoid smearing the fluid interface, the convection term in (17) is discretized with the compact CICSAM scheme [35].
A single set of the Equations (1)–(3) is solved for the whole computational domain. Fluid properties are locally averaged as
ϕ = α ϕ 1 + ( 1 α ) ϕ 2 ,
where ϕ v and ϕ N are the properties of the viscoelastic and the Newtonian phase, respectively. The averaging is applied for ρ , μ , η , and λ , as well as for τ when calculating the contribution to the momentum equation. When α is needed at a Lagrangian node, it is interpolated with the same method as used for velocity.
Special care for the viscoelastic stress in the interface region α ( 0 , 1 ) is necessary due to the non-sharp interface nature of the VOF method. A brief motivation for this follows. In many examples of viscoelastic free surface flow, the viscosity of the Newtonian fluid may very well be on the order of 10 5 of that of the viscoelastic phase. Hence, the average velocity gradient in the Newtonian phase may be much larger than in the viscoelastic phase. Consequently, if the velocity gradient of the Newtonian phase is allowed to have large influence on the constitutive equation in the interface region; this can result in unphysically large stresses. This is especially the case if not all velocity and length scales in the Newtonian phase are resolved near the interface. Thus, a means of reducing this effect around the free surface is proposed.
A threshold volume fraction is used, such that Lagrangian nodes are only created inside the viscoelastic phase, which are defined by the condition α α lim = 0.1 . Thus, the constitutive equation is only solved in the viscoelastic part of the computational domain and the stress is assumed to vanish outside the viscoelastic phase. Furthermore, when the velocity gradient is calculated at a Lagrangian node, the corners of the interpolation box at which α < 0.1 · α lim are also considered to be outside the viscoelastic phase. The velocities at such corners are excluded from the gradient calculation and they are replaced by 0th order extrapolation from the corners which are inside the viscoelastic phase.
It is remarked that, apart from numerical stability, the described approach is advantageous in terms of computational efficiency, since the constitutive equation only needs to be solved in part of the domain.
When the stress field has been calculated, the term · ( α τ ) is integrated and then added to the right hand side of the discretized momentum equation. At this stage, the product rule is applied, such that
· ( α τ ) = α · τ + τ · α ,
which can be seen as separating the pure interfacial contribution of the viscoelastic stress to the fluid momentum from the remainder part [36]. The formulation of (19) is used, since it was found to enhance numerical stability. The first term of (19) is integrated over the cells with Gauss’ divergence theorem, as
c . v . · τ d V = c . s . n ^ · τ d S = f f . s . n ^ f · τ d A ,
where c.v. denotes the cell volume, c.s. the cell surface, f.s. the surface of cell face f, and the vector n ^ denotes the surface normal pointing outwards from the cell. In the second step of (20) the surface integral is divided into a sum of the integrals over the respective surface faces of the cell, for which the normal vectors n ^ f are constant. The integral over each face is approximated with the trapezoidal rule while using the stresses at the Eulerian grid nodes. If a cell has neighbors that have a higher refinement level, e.g. in the case shown in Figure 1, the face to each smaller neighbor cell is individually integrated, such that the stress contribution from each grid node is included correctly.
The volume integral of the second term of (19) is approximated with the cell average stress and volume fraction gradient, as
c . v . ( τ · α ) d V ( τ ¯ · α ¯ ) Δ V ,
where Δ V is the cell volume and ( ) ¯ denotes volume average. The cells where α < 0.1 · α lim are assumed to be outside the viscoelastic phase and the stress contribution is instead set to zero.
The full algorithm for viscoelastic free surface flow can be summarized, as follows,
  • Calculate and add the viscoelastic stress contribution to the discrete momentum equation.
  • Solve velocity and pressure fields u , p from the momentum Equation (1) and continuity Equation (2) while using SIMPLEC iterations.
  • Solve the transport of the fluid volume fraction α from (17)
  • Solve the viscoelastic stress from the constitutive Equation (3) to the new time while using the backwards-tracking procedure.
When compared to the original version of the Lagrangian–Eulerian framework that was proposed in Ingelsten et al. [27], the new method is expected to be more robust due to the structured nature of the Lagrangian nodes as well as the staggered arrangement between the storage locations of the velocity and the viscoelastic stress. Although the computational efficiency is not assessed in detail in this work, the computational cost is, in fact, reduced. As a reference, the computational performance of the original Lagrangian–Eulerian method was studied for the flow of a four-mode PTT fluid over a confined cylinder [27]. Four Lagrangian nodes per fluid cell were initialized for the node set. Out of the total stress calculation time, approximately 50% was spent on solving the ODE systems, 30% on the unstructured interpolation, and 10% on the redistribution of the Lagrangian node set. In the new method, the unstructured interpolation, as well as the redistribution, is completely removed. Furthermore, the number of Lagrangian nodes is reduced to be on the same order as the number of Eulerian cells. Thus, a large reduction in computational time should be expected.
The proposed method is implemented in the software IBOFlow® [37], an in-house CFD code that was developed at the Fraunhofer–Chalmers Research Institute for Industrial Mathematics in Gothenburg, Sweden. In addition to viscoelastic flow, the solver has previously been employed to simulate conjugated heat transfer [38,39,40], and fluid-structure interaction [41], as well as free surface flow of shear-thinning fluids with applications for seam sealing [42,43], adhesive application [44], and 3D-bioprinting [45].

4. Results

In this section, the proposed method is evaluated for three different flow cases. First, a basic validation is carried out by comparing the numerical results with the analytic solution for a transient channel flow. The method is then compared to the numerical results from the literature for simulations of the viscoelastic die swell effect. The capability to simulate viscoelastic free surface with adaptive mesh refinement is demonstrated for simulations of viscoelastic jet buckling.
The test cases that are reported in this section are simulated while using a single-mode Oldroyd-B model, which has the constitutive equation
λ τ + τ = 2 η S ,
corresponding to F ( τ ) = 1 in (3). Furthermore, a viscosity ratio β is defined as
β = μ μ + η .
By definition of the total viscosity η t = μ + η , it follows from (23) that μ = β η t and η = ( 1 β ) η t .
Note that the Lagrangian–Eulerian method that is proposed in this work is by no means limited to the Oldroyd-B model. All of the constitutive equations in the form of (3) are supported by the framework.

4.1. Planar Poiseuille Flow

A basic validation of the proposed method is performed for a viscoelastic planar Poiseuille flow. The numerical results for the transient as well as the steady flow are compared to the corresponding analytic solution.
The computational domain has height and length h and it is shown in Figure 4. The upper boundary is treated as a wall with the no-slip condition u = 0 and the lower boundary has a symmetry condition. At the left and right boundaries, the Dirichlet conditions p = Δ p and p = 0 are imposed, respectively, while the cyclic conditions are used for the velocity and viscoelastic stress. Thus, the numerical model represents an infinitely long channel of height 2 h , which is subjected to a constant pressure drop Δ p . The simulation starts from rest, with velocity and viscoelastic stress equal to zero.
A Weissenberg number for the flow is defined as Wi = λ U / h , where U is the mean steady flow velocity, and a Reynolds number as Re = 2 ρ U h / ( μ + η ) . The flow is simulated for β = 1 / 9 , 1 / 18 , 1 / 27 and Wi = 0.1 , 1 . Here, U = 0.1 m / s , ρ = 1 kg / m 3 and η = 1 Pas are constant, while Wi and β are varied, respectively, by changing λ and μ between simulations.
In order to ensure sufficient temporal resolution, the flow is simulated using different time step lengths. These simulations are performed for the lowest viscosity ratio β = 1 / 27 , for which the transient variations are the largest. A uniform Eulerian grid with the cell size Δ x = H / 20 is used.
In Figure 5, the simulated centerline velocity, i.e., at x = h / 2 , y = 0 , obtained with the time step lengths 10 4 s , 10 5 s and 10 6 s , are shown for Wi = 0.1 and Wi = 1 . The velocity that si obtained with the longest step length is clearly different from those obtained with the two shorter step lengths. However, the two shorter lengths produce results that practically overlap on the scale of comparison. Thus, the step length Δ t = 10 5 s is considered to be sufficiently small and it is used to obtain the remaining results reported in this section.
Xue et al. presented an analytic solution of the transient solution for the flow considered [46]. In Figure 6, the obtained centerline velocities for the β = 1 / 9 , 1 / 18 , 1 / 27 are shown for Wi = 0.1 and Wi = 1 and compared to the analytic solution. The results demonstrate the strong influence of the relationship between the solvent viscosity and polymeric viscosity on the transient flow. The numerical results overlap the analytic solution, showing that the proposed method treats the transient flow dynamics correctly. Furthermore, the results confirm that the spatial resolution Δ x / h = 20 is sufficient for this case.
In order to assess grid dependency in more detail, the flows for β = 1 / 27 and Wi = 0.1 , 1 are simulated until a steady flow is reached while using varying spatial resolution. The flow being steady is ensured through the condition
ϕ n 1 ϕ n L 2 ϕ n L 2 < 10 10 ,
where L 2 denotes the L 2 -norm over the cells of the Eulerian grid, ϕ is velocity or viscoelastic stress, and the subscript n denotes the quantity at the nth time step.
The error measurements with respect to the analytic steady state solution are calculated as
E ϕ = ϕ s ϕ a L 2 ϕ a L 2 ,
where ϕ s and ϕ a denote the simulated and analytic solution, respectively. The computed errors for velocity and viscoelastic normal stress are shown as a function of grid size in Figure 7. The errors decrease with second order slope with grid refinements, which is coherent with the second order accuracy that was observed for the original Lagrangian–Eulerian method [27,28].

4.2. Die Swell

The die swell effect is a phenomenon that occurs for the free surface flows of viscoelastic fluids flowing in a pipe or channel and exiting through circular or slit dies. Barnes et al. [47] described the origin of the die swell effect by viewing the viscoelastic fluid as a bundle of elastic threads. In the channel flow, the threads are stretched by the normal stress component τ x x , where x is the flow direction. When the fluid exits the channel, the threads are allowed to relax and shorten in length. Consequently, the diameter of the emerging fluid increases.
Flows that exhibit the die swell effect are commonly used to benchmark and validate numerical methods [11,13,14,16,17,18,19,20,22,24]. In addition to the free surface, the flow has extensional characteristics around the channel exit as well as a stress singularity at the channel exit corner. These flow features make the flow suitable for testing robustness and accuracy of new numerical methods. Therefore, in this work, a planar die swell flow is simulated. The case parameters are selected to allow for a meaningful comparison with numerical data from the literature.
A schematic description of the computational domain can be found in Figure 8. A channel of height 2 h and length 10 h is considered. A symmetry boundary condition is used at y = 0 , such that effectively half of the domain is simulated. The expansion zone is 5 h high and 12 h long, giving the domain a total length of 22 h . The length of the channel and size of the expansion zone are chosen to be sufficiently large for boundary effects not to affect the flow near the channel exit.
The exterior boundaries of the expansion zones are treated as outlets with the pressure condition p = 0 , and an immersed boundary is used to impose the no-slip condition for the channel walls. Gravity is neglected.
The viscoelastic fluid in the channel is an Oldroyd-B fluid with the viscosity ratio β = 1 / 9 . The surrounding fluid is a Newtonian fluid with much lower viscosity and density than the viscoelastic fluid. In this work, these parameters are set to μ air = 10 6 μ and ρ air = 10 3 ρ , respectively. Comminal et al. used a similar definition [24], but with ρ air = 10 2 ρ .
The simulation of the flow starts from rest, with the channel filled with viscoelastic fluid. Transient flow is simulated for a sufficiently long physical time for the flow in the channel and the expansion region to fully develop, as well as for the free surface flow to exit through the outlet with a uniform velocity profile.
At the inlet, fully developed flows are imposed for the velocity and viscoelastic stress. For fully developed channel flow of an Oldroyd-B fluid, it can be shown that
u ( y ) = 3 2 U 1 y 2 h 2 ,
u y = 3 U y h 2 ,
τ x y ( y ) = η u y ,
τ x x ( y ) = 2 λ τ x y ( y ) u y = 2 λ η u y 2 ,
where U is the mean velocity. A derivation of the expressions can be found in Appendix A.
The channel half height h and velocity U are taken as characteristic length and velocity scales for the flow. Thus, a Weissenberg number for the flow may be defined as
Wi = λ U h ,
and a Reynolds number as
Re = 2 ρ U h μ + η .
A dimensionless time is also defined as t * = t U / h .
The swell ratio S r = h max / h is the main quantity of interest, in terms of validation by comparison. The swell ratio is a function of the so-called recoverable shear S R , which is defined as [11]
S R = N 1 2 τ x y y = h = τ x x τ y y τ x y y = h = 3 λ U h = 3 Wi ,
where N 1 = τ x x τ y y is the first normal stress difference. In the simulations that are reported in this section, the quantities U, η , μ , and ρ are constant, while S R is varied by changing λ between simulations. The Reynolds number is Re = 0.5 for all simulations.
Tanner [48,49] developed a theoretical solution for the amplitude of the die swell as a function of the recoverable shear. For an Oldroyd-B channel emerging from a slit the solution reads
S r = 0.19 + 1 + S R 2 3 1 4 .
The theory does not take the stress singularity at the channel exit corner into account and is, therefore, only expected to yield a good approximation of the swell ratio when the influence of elasticity is small, i.e., for small Wi. Nevertheless, it is often included for comparison in numerical studies of the die swell effect and it is included in this study.
The influence of the spatial discretization on the numerical results is assessed through a grid dependence study and the flow is simulated for S R = 2.5 with three different grids, denoted as M1, M2, and M3. A grid is defined by a base cell size Δ x base and a set of refinements, as described in Section 3. The grids M1, M2, and M3, respectively, have the base cell sizes Δ x base = h / 5 , h / 10 , h / 20 . The largest cells are located in the expansion zone, far from the channel exit. One level of refinement is used in the channel and around the channel opening and two levels of refinement near the exit corner. As an example, grid M1 is shown in Figure 9. The area around the channel exit corner has been zoomed for clarity. Table 1 summarizes the grids used. A constant time step length is used, such that U Δ t / Δ x min = 0.01 , where Δ x min is the smallest cell size of the grid.
First, the velocity as well as the viscoelastic normal and shear stress are compared to the analytic steady solution inside the channel. In Figure 10, the corresponding profiles obtained using grid M1 across the channel at x / h = 5 , halfway from the inlet to the channel exit. Already at the lowest grid resolution, the simulated profiles overlap the analytic solution. The results that are obtained with M2 and M3 are visually the same and the figures are, therefore, omitted. The results validate that the constitutive equations are solved correctly and that the immersed boundary method used to impose the boundary conditions at the channel wall works as intended for the solution algorithm for the viscoelastic stresses.
In Figure 11, the position of the free surface that is visualized by the contour α = 0.5 is shown for S R = 2.5 for the grids that are defined in Table 1. Some small surface oscillations are observed in the results from the two finer grids M2 and M3 in the region x / h < 2 . As reference, Comminal et al. [24] reported similar behavior for their corresponding simulations. In their simulations, small self-sustained surface oscillations appeared at a certain level of recoverable shear, in their case S R > 1.5 for the Oldroyd-B fluid, and for sufficiently high resolution. Similar observations were also made for simulations with the Giesekus model in their study. The oscillations were damped out further downstream and they did not influence the calculated swell ratio h max / h . Similar characteristics are observed in the current work, as in Figure 11. Comminal et al. attributed the oscillations to numerical difficulties around the free surface due to the nature of the non-sharp interface in the VOF method.
In the light of this discussion, the results that are obtained on grid M2 and M3 are in relatively good agreement. This is particularly true far downstream of the channel exit, where the free surface produced by M2 and M3 are very close, while M1 produces a different result. The results indicate that M2 is of sufficient spatial resolution to predict the swell ratio S r . Therefore, the results presented in the remainder of this section have been obtained while using grid M2. In addition, the simulation with grid M2 has been repeated with half the time step size, such that U Δ t / Δ x min = 0.005 , which produced equivalent results.
The simulations are repeated with grid M2 for S R { 1.0 , 1.5 , 2.0 , 2.5 } . In Figure 12, the contour α = 0.5 is shown for S R = 1 at different times. Figure 13 shows the corresponding results for S R = 2.5 . Similar behavior is observed in both cases. The emerging viscoelastic fluid increases in diameter directly upon exiting the channel. The magnitude of the increase is strongly influenced by the level of elasticity, as qualitatively predicted by Tanners theory. At a certain distance from the channel exit, approximately for x / h > 3 , the emerging viscoelastic fluid reaches a terminal diameter.
The swell ratio is calculated for the simulations as S r = h max / h , where h m a x is taken as the position of the free surface at x / 10 . The calculated swell ratios that were obtained with the proposed method are compared to available numerical data from the literature. The data used are the original FEM simulations reported by Crochet and Keunings [11], the marker-and-cell simulations by Tomé et al. [14], the pseudo-VOF simulation by Habla et al. [22], and the three different VOF methods used by Comminal et al. [24]. Table 2 briefly summarizes the data. For a full description of the cases and numerical methods, the reader is referred to the respective studies. However, a brief discussion concerning the differences between the results is given below.
The calculated swell ratios as a function of the recoverable shear for the flows simulated with the proposed method are compared to the results from the literature in Figure 14. It is remarked that Comminal et al. employed a different definition of the Weissenberg number and swell ratio. However, all of the data that are presented in Figure 14 have been adopted to the definition used in the current work.
Indeed, a certain spread among the data is observed. The differences are not unexpected, though, as there are slight differences between how the different data have been obtained. This is in terms of the numerical method used as well as the simulation setup. Furthermore, Comminal et al. even obtained different results while using three slightly different numerical methods for exactly the same flow.
Crochet and Keunings and Tomé et al. did not consider a fluid surrounding the viscoelastic phase, as the per construction of their numerical methods. Comminal et al. used a similar definition of the surrounding fluid as in the current work, but with larger density. Habla et al. stated that the surrounding fluid is treated as air with μ air 0 and ρ air 0 , but the magnitudes were not reported. Furthermore, the value of viscosity ratio of the viscoelastic fluid β varied between their simulations. This is in contrast to a constant β = 1 / 9 , which has been used in the other simulations included in this work.
Given the above discussion, a certain variance in the data is to be expected. However, the different results do follow the same general trend, including the swell ratios predicted with the proposed Lagrangian–Eulerian method.
Another aspect is that of grid dependence. The simulation performed by Crochet and Keunings had a grid resolution which, by today’s standards, was very coarse. They used six triangular finite elements across the half-width of the channel. Therefore, the resulting swell ratios should be treated with caution when comparing to more recent results. Tomé et al. used a uniform grid of Δ x / h = 1 / 10 which is on the order of the coarse grid M1. Habla et al. reported the number of control volumes to be 4165, but did not specify the local cell sizes in detail. The number of control volumes is again comparable to grid M1 in the current work. Comminal et al. did conduct a grid dependence study with three different grids. Their finest cells were closer to the grids that were used in this work as compared to the other authors. Therefore, could be expected for the results reported in this work to be closest to the results of Comminal et al. given the similarities in grid resolution as well as the use of the VOF method. Their computed swell ratios are generally larger than the other literature results, with the exception of those from Crochet and Keunings. The same is also true for the swell ratios that were computed with the proposed method, particularly for increasing S R .
In conclusion, while there is a spread between the data that are produced in different numerical studies, they follow the same general trend. The results that were obtained with the method proposed in this work follow the same trend and with the swell ratios comparable to the earlier published works.

4.3. Jet Buckling

The simulation of jet buckling is a common flow case for testing the capabilities of numerical methods for free surface flow. The phenomenon has been numerically investigated for different viscoelastic constitutive models by several authors [14,15,16,17,18,20,26].
The phenomenon occurs for a fluid jet that flows onto a rigid plate under certain conditions. Cruickshank [50] proposed a condition that is based on experimental and theoretical observations, stating that a planar Newtonian jet will buckle if H / D > 3 π and Re < 0.56 , where H is the distance from the inlet to the plate, D the inlet width, and Re = ρ U D / μ , where U is the inlet velocity. A modified yet approximate condition, based on numerical investigation, was later proposed by Tomé and McKee, stating that buckling should occur if
Re 2 1 π ( H / D ) 2.6 8 . 8 2.6 ( H / D ) 2.6 .
It is remarked that, in simulations, numerical round-off errors are responsible for triggering the buckling, since the flow setup itself is actually symmetric.
Figure 15 shows a schematic of the fluid jet buckling domain that is used for simulation with the Lagrangian–Eulerian method proposed in this work. The domain is 50 mm wide and 100 mm high. An inlet of width D = 5 mm is located at the center of the upper boundary. At the inlet, a uniform velocity U = 0.5 m / s is imposed. The upper boundaries to the left and right, respectively, are outlets with the Dirichlet pressure condition p = 0 . The remaining domain boundaries are treated as walls by imposing the no-slip condition. Gravity is acting in the negative y-direction with g = 9.81 m / s 2 .
The viscoelastic fluid is a single-mode Oldroyd-B fluid with the viscosity ratio β = 0.1 , density ρ = 1000 kg / m 3 , and the total viscosity η t = 10 Pa · s . The surrounding Newtonian viscosity is air with viscosity μ air = 1.8205 × 10 5 Pa · s and density ρ air = 1.204 kg / m 3 .
The Reynolds number for the flow is defined as Re = ρ U D / ( μ + η ) , which, for the chosen parameters, yields Re = 0.25 . A Weissenberg number is defined as Wi = λ U / D . The flow is simulated for the Oldroyd-B fluid with λ = 0.1 s , corresponding Wi = 10 . As reference, a simulation is also performed with a Newtonian fluid, for which β = Wi = 0 .
In the viscoelastic jet buckling simulations that were performed in this work, the octree grid is adaptively refined with two levels around the viscoelastic fluid phase. As the simulation progresses, the grid is therefore updated and the cells are refined and coarsened, where needed. A grid dependence study is performed while using three adaptive grids of increasing resolution. The grids have the respective base cell sizes Δ x base = D / 2 , D / 4 , D / 8 , which correspond to the finest cell sizes Δ x min = D / 8 , D / 16 , D / 32 . The simulations are performed with a constant time step Δ t satisfying Δ t U / Δ x min = 0.08 .
The grid dependence is evaluated with respect to two simulation properties. Firstly, the free surface α = 0.5 is compared for the three adaptive grids. The first normal stress difference N 1 = τ y y τ x x along the jet at x = 5 D is also compared. Because the buckling itself is triggered by numerical round-off errors, the exact conditions at which the buckling starts in the simulations may vary between grids. Therefore, the grid study comparison is made at a simulation time before buckling is initiated.
In Figure 16, the free surface is compared for the three grids at the simulation times t = 130 ms and t = 140 ms . The results obtained with the three grids are in relatively good agreement, particularly those that are obtained with the two finer grids. In Figure 17, the first normal stress differences along the jet are compared at the same simulation times. These results indicate even more strongly that the two finer grids produce stresses that are very close, while a slight discrepancy for the coarsest grid is observed. The remainder of the results reported in this section have been obtained while using Δ x min = D / 16 .
In Figure 18 and Figure 19, a series of snapshots from the simulation of the Newtonian and the viscoelastic jets are shown, respectively. For the Newtonian case, only a very slight tendency to buckle is observed as a slight asymmetry in the fluid on the rigid surface. However, for the viscoelastic fluid, the buckling phenomenon is very apparent. When the viscoelastic jet impacts the rigid surface, the material first builds upwards until, inevitably, the buckling is initiated. The results demonstrate the strong influence of elasticity to the fluid jet buckling phenomenon. Furthermore, it confirms the capability of the proposed method to capture the viscoelastic effects and predict the phenomenon.

5. Conclusions

In this work, a new Lagrangian–Eulerian method for the simulation of viscoelastic free surface flow has been proposed. The method was developed from a previously proposed method, in which the fluid momentum and continuity equations were solved on a stationary Eulerian octree grid, while the viscoelastic constitutive equation was solved along the trajectories of Lagrangian nodes which were convected by the flow. The main improvements in this work was the introduction of a backwards-tracking procedure for solving the viscoelastic constitutive equation, as well an extension to the simulation of viscoelastic free surface flow with the volume of fluid method.
The backwards-tracking procedure allowed for the storage of the viscoelastic stresses in a structured arrangement. Consequently, the unstructured interpolation of stresses as well as the addition and deletion of Lagrangian nodes, which was required in the previous method, was eliminated in favor of a significant reduction of the computational cost and increased robustness. Furthermore, no additional stabilization method, such as both sides diffusion or reformulation of the constitutive equation, was employed for any of the flows studied in this work.
The proposed method was validated with analytic solutions for a planar Poiseuille flow of Oldroyd-B fluids. The transient, as well steady flow, solutions were in excellent agreement with analytic solutions and the steady solution converged to the analytic solution with second order accuracy. Furthermore, the proposed method was evaluated for two types of viscoelastic free surface flow. The viscoelastic die swell effect was simulated with the Oldroyd-B model and the predicted swell ratios were in good agreement with the numerical data from the literature. Planar jet buckling of a highly viscoelastic fluid was also simulated, demonstrating the capability of the method for an additional flow case as well as the use of adaptive grid refinements.
The computational performance was not subject to detailed study in this work. However, as per the construction of the new method, the computational cost for the viscoelastic stress calculation was significantly reduced when compared to the previous Lagrangian–Eulerian method. Furthermore, it has previously been shown that the Lagrangian formulation of the constitutive equation is highly suitable for parallel calculations, including for GPU-acceleration. This also applies for the new method.
In conclusion, the new method is an important step in the development of efficient and useful tools for simulating industrial processes involving viscoelastic fluids. In future research, the proposed Lagrangian–Eulerian method will be used for the numerical investigation of viscoelastic free surface flows with moving objects, including for viscoelastic adhesive application and parts assembly, as well as for additive manufacturing processes.

Author Contributions

Conceptualization, S.I. and A.M.; Methodology, S.I. and A.M.; Software, S.I. and A.M.; Validation, S.I.; Writing—original draft preparation, S.I.; Writing—review and editing, A.M., R.K., F.E.; Supervision, A.M., R.K., F.E.; Funding acquisition, F.E. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been partly carried out in a Centre for Additive Manufacturing—Metal (CAM2) in a joint project financed by Swedish Governmental Agency of Innovation Systems (Vinnova), coordinated by Chalmers University of Technology. The work has also been supported in part by Vinnova through the FFI Sustainable Production Technology program and in part by the Chalmers Area of Advance Production. The support is gratefully acknowledged.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Appendix A. Oldroyd-B Fluid Fully Developed Channel Flow

Assuming steady two-dimensional, fully developed channel flow, the constitutive equation reduces do
τ x y = η u y ,
τ x x 2 λ τ x y u y = 0 ,
τ y y = 0 .
Insertion of τ x y from (A1) into (A2) gives
τ x x = 2 λ η u y 2 ,
The momentum equation in the flow direction reduces to
p x = μ 2 u y 2 + τ x y y ,
which by insertion of τ x y from (A1) becomes
p x = μ 2 u y 2 + y η u y = ( μ + η ) 2 u y 2 ,
Integration of (A6) with respect to y once yields
y p x = ( μ + η ) u y + C 1 ,
where C 1 is an integration constant. Due to the symmetry condition u y | y = 0 = 0 , which by insertion of y = 0 into (A7) leads to C 1 = 0 . Inserting C 1 = 0 to (A7) and integrating in y again yields
y 2 2 p x = ( μ + η ) u + C 2
where C 2 is an integration constant. Using the no-slip condition u y = h = 0 gives
C 2 = h 2 2 p x ,
which inserted to (A8) after some rearrangement gives
u ( y ) = 1 2 ( μ + η ) p x h 2 y 2 ,
or, simply,
u ( y ) = A ( h 2 y 2 ) ,
where a is a constant.
Now, the mean velocity U can be calculated as
U = 1 h 0 h u ( y ) d y = A h 0 h ( h 2 y 2 ) d y = = 2 3 A h 2 ,
such that A = 3 U / ( 2 h 2 ) . The velocity can then be expressed in terms of the mean velocity as
u ( y ) = 3 U 2 h 2 ( h 2 y 2 ) = 3 U 2 1 y 2 h 2 .
Hence, the velocity gradient reads
u y = 3 U y h 2 ,
which gives the final expressions for τ x y and τ x x .

References

  1. Oliveira, P.; Pinho, F.; Pinto, G. Numerical simulation of non-linear elastic flows with a general collocated finite-volume method. J. Non-Newton. Fluid Mech. 1998, 79, 1–43. [Google Scholar] [CrossRef] [Green Version]
  2. Alves, M.; Pinho, F.; Oliveira, P. The flow of viscoelastic fluids past a cylinder: Finite-volume high-resolution methods. J. Non-Newton. Fluid Mech. 2001, 97, 20–232. [Google Scholar] [CrossRef]
  3. Alves, M.A.; Oliveira, P.J.; Pinho, F.T. Benchmark solutions for the flow of Oldroyd-B and PTT fluids in planar contractions. J. Non-Newton. Fluid Mech. 2003, 110, 45–75. [Google Scholar] [CrossRef]
  4. Baaijens, H.P.; Peters, G.W.; Baaijens, F.P.; Meijer, H.E. Viscoelastic flow past a confined cylinder of a polyisobutylene solution. J. Rheol. 1995, 39, 1243–1277. [Google Scholar] [CrossRef] [Green Version]
  5. Hulsen, M.A.; Fattal, R.; Kupferman, R. Flow of viscoelastic fluids past a cylinder at high Weissenberg number: Stabilized simulations using matrix logarithms. J. Non-Newton. Fluid Mech. 2005, 127, 27–39. [Google Scholar] [CrossRef] [Green Version]
  6. Rasmussen, H.; Hassager, O. Simulation of transient viscoelastic flow with second order time integration. J. Non-Newton. Fluid Mech. 1995, 56, 65–84. [Google Scholar] [CrossRef]
  7. Harlen, O.; Rallison, J.; Szabo, P. A split Lagrangian-Eulerian method for simulating transient viscoelastic flows. J. Non-Newton. Fluid Mech. 1995, 60, 81–104. [Google Scholar] [CrossRef]
  8. Halin, P.; Lielens, G.; Keunings, R.; Legat, V. The Lagrangian particle method for macroscopic and micro–macro viscoelastic flow computations Dedicated to Professor Marcel J. Crochet on the occasion of his 60th birthday. J. Non-Newton. Fluid Mech. 1998, 79, 387–403. [Google Scholar] [CrossRef]
  9. Gallez, X.; Halin, P.; Lielens, G.; Keunings, R.; Legat, V. The adaptive Lagrangian particle method for macroscopic and micro–macro computations of time-dependent viscoelastic flows. Comput. Methods Appl. Mech. Eng. 1999, 180, 345–364. [Google Scholar] [CrossRef]
  10. Wapperom, P.; Keunings, R.; Legat, V. The backward-tracking Lagrangian particle method for transient viscoelastic flows. J. Non-Newton. Fluid Mech. 2000, 91, 273–295. [Google Scholar] [CrossRef]
  11. Crochet, M.; Keunings, R. Finite element analysis of die swell of a highly elastic fluid. J. Non-Newton. Fluid Mech. 1982, 10, 339–356. [Google Scholar] [CrossRef]
  12. Balemans, C.; Hulsen, M.; Anderson, P. Sintering of Two Viscoelastic Particles: A Computational Approach. Appl. Sci. 2017, 7, 516. [Google Scholar] [CrossRef] [Green Version]
  13. Spanjaards, M.; Hulsen, M.; Anderson, P. Transient 3D finite element method for predicting extrudate swell of domains containing sharp edges. J. Non-Newton. Fluid Mech. 2019, 270, 79–95. [Google Scholar] [CrossRef]
  14. Tomé, M.; Mangiavacchi, N.; Cuminato, J.; Castelo, A.; McKee, S. A finite difference technique for simulating unsteady viscoelastic free surface flows. J. Non-Newton. Fluid Mech. 2002, 106, 61–106. [Google Scholar] [CrossRef]
  15. de Paulo, G.; Tomé, M.; McKee, S. A marker-and-cell approach to viscoelastic free surface flows using the PTT model. J. Non-Newton. Fluid Mech. 2007, 147, 149–174. [Google Scholar] [CrossRef]
  16. Tomé, M.; Castelo, A.; Ferreira, V.; McKee, S. A finite difference technique for solving the Oldroyd-B model for 3D-unsteady free surface flows. J. Non-Newton. Fluid Mech. 2008, 154, 179–206. [Google Scholar] [CrossRef]
  17. Oishi, C.M.; Tomé, M.F.; Cuminato, J.A.; McKee, S. An implicit technique for solving 3D low Reynolds number moving free surface flows. J. Comput. Phys. 2008, 227, 7446–7468. [Google Scholar] [CrossRef]
  18. Tomé, M.; Paulo, G.; Pinho, F.; Alves, M. Numerical solution of the PTT constitutive equation for unsteady three-dimensional free surface flows. J. Non-Newton. Fluid Mech. 2010, 165, 247–262. [Google Scholar] [CrossRef]
  19. Oishi, C.; Martins, F.; Tomé, M.; Cuminato, J.; McKee, S. Numerical solution of the eXtended Pom-Pom model for viscoelastic free surface flows. J. Non-Newton. Fluid Mech. 2011, 166, 165–179. [Google Scholar] [CrossRef] [Green Version]
  20. Tomé, M.; Castelo, A.; Afonso, A.; Alves, M.; Pinho, F. Application of the log-conformation tensor to three-dimensional time-dependent free surface flows. J. Non-Newton. Fluid Mech. 2012, 175–176, 44–54. [Google Scholar] [CrossRef]
  21. Izbassarov, D.; Muradoglu, M. A front-tracking method for computational modeling of viscoelastic two-phase flow systems. J. Non-Newton. Fluid Mech. 2015, 223, 122–140. [Google Scholar] [CrossRef]
  22. Habla, F.; Marschall, H.; Hinrichsen, O.; Dietsche, L.; Jasak, H.; Favero, J.L. Numerical simulation of viscoelastic two-phase flows using openFOAM®. Chem. Eng. Sci. 2011, 66, 5487–5496. [Google Scholar] [CrossRef]
  23. OpenFOAM. Available online: https://www.openfoam.org/ (accessed on 18 December 2020).
  24. Comminal, R.; Pimenta, F.; Hattel, J.H.; Alves, M.A.; Spangenberg, J. Numerical simulation of the planar extrudate swell of pseudoplastic and viscoelastic fluids with the streamfunction and the VOF methods. J. Non-Newton. Fluid Mech. 2018, 252, 1–18. [Google Scholar] [CrossRef]
  25. RheoTool. Available online: https://github.com/fppimenta/rheoTool (accessed on 18 December 2020).
  26. Bonito, A.; Picasso, M.; Laso, M. Numerical simulation of 3D viscoelastic flows with free surfaces. J. Comput. Phys. 2006, 215, 691–716. [Google Scholar] [CrossRef]
  27. Ingelsten, S.; Mark, A.; Edelvik, F. A Lagrangian-Eulerian framework for simulation of transient viscoelastic fluid flow. J. Non-Newton. Fluid Mech. 2019, 266, 20–32. [Google Scholar] [CrossRef]
  28. Ingelsten, S.; Mark, A.; Jareteg, K.; Kádár, R.; Edelvik, F. Computationally efficient viscoelastic flow simulation using a Lagrangian-Eulerian method and GPU-acceleration. J. Non-Newton. Fluid Mech. 2020, 104264. [Google Scholar] [CrossRef]
  29. Versteeg, H.; Malalasekera, W. An Introduction to Computational Fluid Dynamics: The Finite Volume Method; Pearson Education Limited: Harlow, UK, 2007. [Google Scholar]
  30. Mark, A.; van Wachem, B.G.M. Derivation and validation of a novel implicit second-order accurate immersed boundary method. J. Comput. Phys. 2008, 227, 6660–6680. [Google Scholar] [CrossRef]
  31. Mark, A.; Rundqvist, R.; Edelvik, F. Comparison Between Different Immersed Boundary Conditions for Simulation of Complex Fluid Flows. Fluid Dyn. Mater. Process. 2011, 7, 241–258. [Google Scholar]
  32. Doormaal, J.P.V.; Raithby, G.D. Enhancements of the simple method for predicting incompressible fluid flows. Numer. Heat Transf. 1984, 7, 147–163. [Google Scholar] [CrossRef]
  33. Tahir-Kheli, R. Ordinary Differential Equations. [Electronic Resource]: Mathematical Tools for Physicists; Springer International Publishing: Cham, Switzerland, 2018. [Google Scholar]
  34. Tryggvason, G.; Scardovelli, R.; Zaleski, S. Direct Numerical Simulations of Gas-Liquid Multiphase Flows; Cambridge University Press: Cambridge, UK, 2011. [Google Scholar]
  35. Ubbink, O.; Issa, R. A Method for Capturing Sharp Fluid Interfaces on Arbitrary Meshes. J. Comput. Phys. 1999, 153, 26–50. [Google Scholar] [CrossRef] [Green Version]
  36. Niethammer, M.; Brenn, G.; Marschall, H.; Bothe, D. An extended volume of fluid method and its application to single bubbles rising in a viscoelastic liquid. J. Comput. Phys. 2019, 387, 326–355. [Google Scholar] [CrossRef] [Green Version]
  37. IPS IBOFlow. Available online: http://ipsiboflow.com (accessed on 18 December 2020).
  38. Mark, A.; Svenning, E.; Edelvik, F. An immersed boundary method for simulation of flow with heat transfer. Int. J. Heat Mass Transf. 2013, 56, 424–435. [Google Scholar] [CrossRef]
  39. Andersson, T.; Nowak, D.; Johnson, T.; Mark, A.; Edelvik, F.; Küfer, K.H. Multiobjective Optimization of a Heat-Sink Design Using the Sandwiching Algorithm and an Immersed Boundary Conjugate Heat Transfer Solver. J. Heat Transf. 2018, 140, 102002. [Google Scholar] [CrossRef]
  40. Nowak, D.; Johnson, T.; Mark, A.; Ireholm, C.; Pezzotti, F.; Erhardsson, L.; Ståhlberg, D.; Edelvik, F.; Küfer, K.H. Multicriteria Optimization of an Oven With a Novel ε-Constraint-Based Sandwiching Method. J. Heat Transf. 2020, 143, 012101. [Google Scholar] [CrossRef]
  41. Svenning, E.; Mark, A.; Edelvik, F. Simulation of a highly elastic structure interacting with a two-phase flow. J. Math. Ind. 2014, 4, 7. [Google Scholar] [CrossRef] [Green Version]
  42. Edelvik, F.; Mark, A.; Karlsson, N.; Johnson, T.; Carlson, J. Math-Based Algorithms and Software for Virtual Product Realization Implemented in Automotive Paint Shops. In Math for the Digital Factory; Ghezzi, L., Hömberg, D., Landry, C., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; pp. 231–251. [Google Scholar]
  43. Mark, A.; Bohlin, R.; Segerdahl, D.; Edelvik, F.; Carlson, J.S. Optimisation of robotised sealing stations in paint shops by process simulation and automatic path planning. Int. J. Manuf. Res. 2014, 9, 4–26. [Google Scholar] [CrossRef]
  44. Svensson, M.; Mark, A.; Edelvik, F.; Kressin, J.; Bohlin, R.; Segerdahl, D.; Carlson, J.S.; Wahlborg, P.J.; Sundbäck, M. Process Simulation and Automatic Path Planning of Adhesive Joining. Procedia CIRP 2016, 44, 298–303. [Google Scholar] [CrossRef]
  45. Göhl, J.; Markstedt, K.; Mark, A.; Håkansson, K.; Gatenholm, P.; Edelvik, F. Simulations of 3D bioprinting: Predicting bioprintability of nanofibrillar inks. Biofabriaction 2018, 10. [Google Scholar] [CrossRef]
  46. Xue, S.C.; Tanner, R.; Phan-Thien, N. Numerical modelling of transient viscoelastic flows. J. Non-Newton. Fluid Mech. 2004, 123, 33–58. [Google Scholar] [CrossRef]
  47. Barnes, H.A.; Hutton, J.F.; Walters, K. An Introduction to Rheology; Rheology Series; Elsevier: New York, NY, USA, 1989; Volume 3. [Google Scholar]
  48. Tanner, R.I. A theory of die-swell. J. Polym. Sci. Part—Polym. Phys. 1970, 8, 2067–2078. [Google Scholar] [CrossRef]
  49. Tanner, R.I. A theory of die-swell revisited. J. Non-Newton. Fluid Mech. 2005, 129, 85–87. [Google Scholar] [CrossRef]
  50. Cruickshank, J.O. Low-Reynolds-number instabilities in stagnating jet flows. J. Fluid Mech. 1988, 193, 111–127. [Google Scholar] [CrossRef]
Figure 1. Two-dimensional grid with one refinement level, showing cell centers (×) and grid nodes (•).
Figure 1. Two-dimensional grid with one refinement level, showing cell centers (×) and grid nodes (•).
Applsci 11 00439 g001
Figure 2. Schematic description of the steps that are involved in the backwards-tracking algorithm.
Figure 2. Schematic description of the steps that are involved in the backwards-tracking algorithm.
Applsci 11 00439 g002
Figure 3. Basis for interpolating properties stored at the fluid grid to Lagrangian nodes in areas with uniform grid spacing (a) and near refinements (b).
Figure 3. Basis for interpolating properties stored at the fluid grid to Lagrangian nodes in areas with uniform grid spacing (a) and near refinements (b).
Applsci 11 00439 g003
Figure 4. Schematic of the planar Poiseuille flow.
Figure 4. Schematic of the planar Poiseuille flow.
Applsci 11 00439 g004
Figure 5. Centerline velocity in channel flow simulated using different time steps.
Figure 5. Centerline velocity in channel flow simulated using different time steps.
Applsci 11 00439 g005
Figure 6. Centerline velocity in channel flow simulated using viscosity ratios β .
Figure 6. Centerline velocity in channel flow simulated using viscosity ratios β .
Applsci 11 00439 g006
Figure 7. Computed errors with respect to the analytic solution for velocity (a) and viscoelastic normal stress (b).
Figure 7. Computed errors with respect to the analytic solution for velocity (a) and viscoelastic normal stress (b).
Applsci 11 00439 g007
Figure 8. Die swell domain.
Figure 8. Die swell domain.
Applsci 11 00439 g008
Figure 9. Grid M1 used in the grid dependence study, as defined in Table 1.
Figure 9. Grid M1 used in the grid dependence study, as defined in Table 1.
Applsci 11 00439 g009
Figure 10. Simulated profiles for S R = 2.5 across the channel at x = 5 h , obtained with grid M1, compared to the analytic solution.
Figure 10. Simulated profiles for S R = 2.5 across the channel at x = 5 h , obtained with grid M1, compared to the analytic solution.
Applsci 11 00439 g010
Figure 11. Free surface position in the expansion zone of the die swell geometry, simulated for grids M1, M2, and M3 for S R = 2.5 .
Figure 11. Free surface position in the expansion zone of the die swell geometry, simulated for grids M1, M2, and M3 for S R = 2.5 .
Applsci 11 00439 g011
Figure 12. Snapshots of die swell simulation with S R = 1.0 , interface between viscoelastic phase (green) and Newtonian phase (white) visualized by α = 0.5 .
Figure 12. Snapshots of die swell simulation with S R = 1.0 , interface between viscoelastic phase (green) and Newtonian phase (white) visualized by α = 0.5 .
Applsci 11 00439 g012
Figure 13. Snapshots of die swell simulation with S R = 2.5 , interface between the viscoelastic phase (green) and Newtonian phase (white) visualized by α = 0.5 .
Figure 13. Snapshots of die swell simulation with S R = 2.5 , interface between the viscoelastic phase (green) and Newtonian phase (white) visualized by α = 0.5 .
Applsci 11 00439 g013
Figure 14. Simulated swell ratio compared to data from the literature.
Figure 14. Simulated swell ratio compared to data from the literature.
Applsci 11 00439 g014
Figure 15. Viscoelastic fluid buckling domain.
Figure 15. Viscoelastic fluid buckling domain.
Applsci 11 00439 g015
Figure 16. Isosurface α = 0.5 in viscoelastic jet buckling simulation with λ = 0.1 s and Wi = 10 obtained with the finest cell sizes Δ x min = D / 8 , D / 16 , D / 32 .
Figure 16. Isosurface α = 0.5 in viscoelastic jet buckling simulation with λ = 0.1 s and Wi = 10 obtained with the finest cell sizes Δ x min = D / 8 , D / 16 , D / 32 .
Applsci 11 00439 g016
Figure 17. First normal stress difference N 1 = τ y y τ x x along the line x / D = 5 in viscoelastic jet buckling simulation with λ = 0.1 s and Wi = 10 obtained with the finest cell sizes Δ x min = D / 8 , D / 16 , D / 32 .
Figure 17. First normal stress difference N 1 = τ y y τ x x along the line x / D = 5 in viscoelastic jet buckling simulation with λ = 0.1 s and Wi = 10 obtained with the finest cell sizes Δ x min = D / 8 , D / 16 , D / 32 .
Applsci 11 00439 g017
Figure 18. Newtonian jet buckling simulation.
Figure 18. Newtonian jet buckling simulation.
Applsci 11 00439 g018
Figure 19. Viscoelastic jet buckling simulation with λ = 0.1 s .
Figure 19. Viscoelastic jet buckling simulation with λ = 0.1 s .
Applsci 11 00439 g019
Table 1. Summary of grids that are used to study the grid dependence of the die swell simulations.
Table 1. Summary of grids that are used to study the grid dependence of the die swell simulations.
Grid h / Δ x base h / Δ x channel h / Δ x corner Num. Cells Total.
M1510204829
M210204019,685
M320408078,740
Table 2. Summary of numerical data as compared for the die swell flow.
Table 2. Summary of numerical data as compared for the die swell flow.
WorkMethodRe
Current workVOF, Lagrangian-Eulerian 0.5
Crochet & Keunings [11]Mixed FEM0
Tomé et al. [14]GENSMAC 0.5
Habla et al. [22]pseudo-VOF 0.5
Comminal et al. [24] (CCU)VOF, Geometric scheme0
Comminal et al. [24] (HRIC)VOF, Algebraic scheme0
Comminal et al. [24] (RheoTool)VOF, Algebraic scheme (MULES) 0.01
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ingelsten, S.; Mark, A.; Kádár, R.; Edelvik, F. A Backwards-Tracking Lagrangian-Eulerian Method for Viscoelastic Two-Fluid Flows. Appl. Sci. 2021, 11, 439. https://doi.org/10.3390/app11010439

AMA Style

Ingelsten S, Mark A, Kádár R, Edelvik F. A Backwards-Tracking Lagrangian-Eulerian Method for Viscoelastic Two-Fluid Flows. Applied Sciences. 2021; 11(1):439. https://doi.org/10.3390/app11010439

Chicago/Turabian Style

Ingelsten, Simon, Andreas Mark, Roland Kádár, and Fredrik Edelvik. 2021. "A Backwards-Tracking Lagrangian-Eulerian Method for Viscoelastic Two-Fluid Flows" Applied Sciences 11, no. 1: 439. https://doi.org/10.3390/app11010439

APA Style

Ingelsten, S., Mark, A., Kádár, R., & Edelvik, F. (2021). A Backwards-Tracking Lagrangian-Eulerian Method for Viscoelastic Two-Fluid Flows. Applied Sciences, 11(1), 439. https://doi.org/10.3390/app11010439

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop