원시데이터 수집 시스템
선정목록으로

A finite volume coupled level set and volume of fluid method with a mass conservation step for simulating two‐phase flows

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. Konstantinos G. Lyras — School of Biomedical Engineering & Imaging Sciences King's College London London UK|||School of Biomedical Engineering & Imaging Sciences King's College London London UK
  2. Jack Lee — School of Biomedical Engineering & Imaging Sciences King's College London London UK|||School of Biomedical Engineering & Imaging Sciences King's College London London UK
DOI
10.1002/fld.5082
저널
International Journal for Numerical Methods in Fluids
발행년도
2022
발행기관
Wiley
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1002/fld.5082
토픽
Surface Modification and Superhydrophobicity
OpenAlex ID
W3204938507

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
two-phase flows, mass conservation, interface capturing, Navier-Stokes equations, surface tension
판단 근거
이 논문은 두 가지 서로 섞이지 않는 유체 사이의 계면을 정밀하게 시뮬레이션하는 수치 해석 방법론(VOF-Level Set 결합법)을 다룹니다. 이는 직접적인 제품 연구는 아니나, 수소연료전지(PEMFC) 내의 수분 제어, 가습기 내의 액적/기체 흐름, 또는 화학 공정의 유체 거동을 모델링하는 데 응용될 수 있는 수치 해석 기술입니다.
R&D 활용 포인트
PEMFC용 가습기(5) 내의 수분 이동 및 액적 형성 거동을 예측하거나, 화학/수지(19-21) 제조 공정 중 액체-기체 계면의 물리적 특성을 시뮬레이션하는 데 활용 가능합니다.
평가 입력
본문 74,887자 중 30,032자 발췌

초록

Abstract This article presents a finite volume method for simulating two‐phase flows using a level set approach coupled with volume of fluid method capable of simulating sharp fluid interfaces. The efficiency of the method is a result of the fact that the interface is calculated in order to satisfy mass conservation with no explicit interface reconstruction step and the mass fluxes across cell‐faces are corrected to respect the recovered volume fraction. The mass‐conservation correction step proposed here, is utilized using an iterative algorithm which solves a reaction‐diffusion equation for the mass correction of the level set. The re‐sharpened volume fraction is used for the new volumetric fluxes at each cell which are calculated through the proposed algorithm that guarantees that they satisfy mass conservation. The algorithm is not limited in representing the interface with the 0.5‐contour and is applicable for arbitrary polyhedral cells. Good accuracy and mass conservation are achieved when compared to other conservative approaches.

본문 74,887자

본문 펼치기
## A finite volume coupled level set and volume of fluid method with a mass conservation step for simulating two-phase flows Konstantinos G. Lyras <sup>a,</sup> <sup>_∗_</sup>, Jack Lee <sup>a,</sup> <sup>_∗_</sup> _aSchool_ _of_ _Biomedical_ _Engineering_ & _Imaging_ _Sciences,_ _King’s_ _College_ _London,_ _London_ _SE1_ _7EU,_ _United_ _Kingdom_ Abstract This paper presents a finite volume method for simulating two-phase flows using a level set approach coupled with volume of fluid method capable of simulating sharp fluid interfaces. The efficiency of the method is a result of the fact that the interface is calculated in order to satisfy mass conservation with no explicit interface reconstruction step and the mass fluxes across cell-faces are corrected to respect the recovered volume fraction. The mass-conservation correction step proposed here, is utilised using an iterative algorithm which solves a reaction diffusion equation for the mass correction of the level set. The re-sharpened volume fraction is used for the new volumetric fluxes at each cell which are calculated through the proposed algorithm that guarantees that they satisfy mass conservation. The algorithm is not limited in representing the interface with the 0.5-contour and is applicable for arbitrary polyhedral cells. Good accu racy and mass conservation are achieved when compared to other conservative approaches. _Keywords:_ level set, volume of fluid, mass conservation, two-phase flow, finite volume method _∗_ Corresponding author _Email_ _addresses:_ `konstantinos.lyras@kcl.ac.uk` (Konstantinos G. Lyras), `jack.lee@kcl.ac.uk` (Jack Lee ) _Preprint_ _submitted_ _to_ _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _FluidsOctober_ _7,_ _2021_ 1. Introduction _1.1._ _Scope_ Three-dimensional multiphase flows occur in multiple problems in biomed ical, automotive, chemical and nuclear industries among others. In particular, the accurate numerical simulation of two-phase flows of two immiscible fluids faces the problem of resolving moving interfaces that deform under the influence of various forces such as surface tension and gravitational forces. Two of the most popular implicit methods for capturing the interface in interfacial flows that involve large topological changes are the volume of fluid (VOF) method 1,2,3,4,5,6,7,8,9,10,11 and the level set (LS) method 12,13,14,15,16,17,18,19,20. One of the most attractive features of both methods is their ability to naturally adapt to any topological changes and the calculation of curvature can be implemented through simple formulations. LS methods offer a powerful tool for capturing the interface for various flow regimes including dispersed and bubbly flows. LS is particularly efficient in describing interfacial dynamics involving interfaces breaking up (or colliding) automatically. In contrast to VOF, mass loss in LS can be relatively high. This might be proven catastrophic for especially for long simulations where the error in mass conservation accumulates. Various studies have proposed different methodologies for improving mass conservation of the LS method <sup>21,22,23,18,24,25,26,27,28,29,30,31,32</sup> . The particle level set (PLS) in <sup>18</sup> is a semi-lagrangian level set method based on the advection of particles at both sides of the interface. Significant improvements were reported for mass conservation in the conservative level set method in <sup>22,23</sup> . The au thors, in addition to the advection of the level set function _ψ_, implemented a re-initialisation step for the cells near the interface using the normal vector at the interface, n using a compressive flux _ψ_ (1 _−_ _ψ_ ) n . This correction step is ap plied for some iterations in steady-state _ψ_ for re-sharpening the interface. The results in both two and three-dimensional tests showed improvements in the ac curacy of interface capturing. The coupled-level-set-volume-of-fluid (CLSVOF) method of <sup>21</sup> was developed considering the advection of the volume fraction 3 and coupling it with the advection of the level set function <sup>33</sup> . This is a coupled VOF-LS approach in which the interface normals, calculated from the level set, are employed for the interface reconstruction in the VOF advection. Based on this approach, many other variations have been proposed of coupling both VOF and LS making use of the advantages of both methods. The proposed CLSVOF methods rely on either geometrical VOF methods such as piecewise-linear in terface construction/calculation (PLIC) <sup>7,34,35</sup> or algebraic methods <sup>36</sup> . Two of the most commonly met challenges for coupling VOF and LS are the interface reconstruction in VOF and the mapping algorithm to the level set field so that it conserves mass in an efficient setting suitable for different types of meshes. Both tasks are required to accurately advect the volume fraction and level set respectively. _1.2._ _Objectives_ In this paper a conservative level set method coupled with VOF is presented for simulating three-dimensional interfaces of two immiscible fluids in the frame work of finite volume method. The LS field is advected first solving the level set equation and then is corrected in two steps: a mass-conservation step and an algorithm for correcting the mass fluxes. Our approach solves a reaction-diffusion equation for finding the corrected _ψ_ that satisfies mass conservation using the obtained volume fraction from VOF. In this way the interface can be located at different levels and is not limited to only the 0.5 iso-surface. A novel algorithm for calculating the mass fluxes based on this level set is described. The new fluxes across all the mesh faces are required for the convection term for the velocity field and solution of the set of the discretised momentum equations. The proposed implementation pro vides an accurate calculation for the new fluxes and can be used for meshes with arbitrary number of faces and different finite volume methods regardless the re-initialisation correction they use. This novel algorithm gives a level set function that leads to a smoothed volume fraction which satisfies mass conser vation. Based on this volume fraction, the volumetric fluxes at each face and 4 all the mixture properties are calculated. Then, the new level set is used for accurately calculating the interface curvature and the surface tension force in the momentum equation. One difference of this approach with other coupled level set-VOF methods is that the interface is calculated in order to satisfy the mass conservation with no explicit interface reconstruction step and then corrects the mass fluxes across cell-faces accordingly. Although <sup>37</sup> have shown that such an interface advection might be efficient in finite element methods, this approach has garnered no attention from other level set methods implemented in the context of finite volume methods and has not prompted any further testing especially in open source finite volume CFD codes since its publication. Such an approach would require a proper strategy for calculating fluxes to advect the updated velocity field through the cell faces. Here, we address this issue and choose to implement this approach in the context of finite volume method. Our approach also demonstrates at least two times better accuracy compared to the ILSVOF method which has previously reported lower error than the isoAdvector in <sup>38</sup> . We also show that presented method can improve the standard OpenFOAM solver interFoam almost by an order of magnitude for the tests here. Most interestingly, we show here that with this mass-conservation correction step for advecting level-set using a simple Runge-Kutta re-initialisation with the idea of <sup>37</sup>, and the flux update algorithm, one might generally be able to avoid using dedicated re-initialisation schemes for re-sharpening level set as in <sup>38,39</sup> . The latter are generally difficult to implement and might result to slower calculations if proper cell-search algorithms are not used for re-distancing. Here, a simple second-order scheme is used for the re distancing of level set which, when deploying the proposed algorithm leads to better accuracy. The solver is developed for various flow regimes that involve liquid/gas or liquid/liquid interface, and is implemented in the framework of the open source CFD code OpenFOAM <sup>40</sup> . Our work, shows an accuracy which is close or better than other PLIC-VOF methods and coupled level-set-VOF methods, including in our previous work 5 in ILSVOF <sup>38</sup> which we extend with better accuracy as shown in the results. We improve the accuracy of the ILSVOF by using a fundamentally different algorithm of the level set advection: In <sup>38</sup> we simply do not solve any equation for level-set and use a specific second-order re-initialisation scheme to compensate for interface smearing. The methodology is tested with different test for fluid/fluid interfaces un dergoing under strong deformation, for cases where interface shape is complex including corners and for flows that gravitational force is significant. Different meshes are used for assessing the capability of the algorithm to capture the interface. The results for both mass conservation and accuracy showed that the method can accurately simulate three-dimensional two-phase flows with com plicated topologies. 2. Motivation and methodology _2.1._ _Marker_ _function_ _for_ _level_ _set_ The level set function is used here to describe the interface dynamics of two immiscible fluids, fluid 1 and fluid 2. In standard level set methods, the level set function _ψ_ is defined to be a signed distance function calculated from the distance at the interface, Γ that separates the two fluids _|ψ|_ = _min_ ( _⃗x −⃗x_ Γ) (1) A given point _⃗x_ in the domain may have either positive or negative distance which defines whether it belongs in fluid 1 or fluid 2. The interface that separates the two fluids is then the set of points that have a zero-distance (zero-level). A step (Heaviside) function _H_ ( _ψ, t_ ) is used to calculate the mixture properties that is equal to 1 if _ψ_ _>_ 0 and equal to 0 if _ψ_ _<_ 0. The total mass at a given _V_ <sup>_ρiH_</sup> <sup>(</sup> <sup>_ψ_</sup> <sup>)</sup> <sup>_dV_</sup> <sup>where</sup> <sup>_ρi_</sup> <sup>is</sup> <sup>the</sup> <sup>density</sup> <sup>of</sup> <sup>the</sup> <sup>fluid</sup> <sup>_i_</sup> <sup>.</sup> time step is equal to The mass conservation requires the following to be mass conservative for incompressible flows 6 _<u>∂H</u>_ <u>(</u> _<u>ψ, t</u>_ <u>)</u> + u _· ∇H_ ( _ψ, t_ ) = 0 (2) _∂t_ Then _H_ ( _ψ, t_ ) resembles a smoothed volume fraction _α_ of one fluid and 1- _H_ ( _ψ, t_ ) for the second fluid. The smoothed volume fraction is used for advecting the face fluxes at each face and calculating the curvature. Regardless the expression of the Heaviside function, the transition at the interface ( _ψ_ = 0) needs to be smooth within a layer of some cells surrounding the interface. If not advected properly, the solution might not converge with increasing mesh resolution and simulations might suffer from excessive mass loss. The total mass of the fluid depends on the solution of the appropriate value of _H_ : while time _t_ increases, the mass is no-longer equal to the mass at time t=0 e.g. - _t_ 0 _V_ _V_ _ρiH_ ( _ψ,_ 0) _dV̸_ = 0 (3) _ρiH_ ( _ψ_ ) _dV dt_ = _V_ _ρiH_ ( _ψ, t_ ) _dV dt −_ The method presented here aims to finding the appropriate value of _ψ_ for which the interfacial values of _H_ ( _ψ, t_ ) approximates the position of the interface ex actly and satisfies the conservation property. This new corrected value will be denoted with _H_ <sup>˜</sup> ( _ψ, t_ ) e.g. we want to find an appropriate value _ψ_ such that each timestep ( _δt_ ) we have _V_ _ρiH_ <sup>˜</sup> ( _ψ, t_ + _δt_ ) _dV dt_ = _V_ _ρiH_ ( _ψ,_ 0) _dV_ (4) Here, choosing a proper _ψ_ that is corrected with a method that guarantees the correct calculation of the face fluxes at each cell and the surface tension force in the momentum equation. A constraint-step is performed for satisfying volume fraction advection at each iteration while preserving its sharp interface with a second correction step. _2.2._ _Advection_ _and_ _correction_ _of_ _level_ _set_ _function_ The algorithm starts by tracking the volume occupied by one fluid (fluid 1) inside a computational cell _P_ which contains fluids 1 and 2. In two-phase flows the void fraction _χ_ is a function of the local density and the individual densities, 7 _ρ_ 1 _, ρ_ 2 at the local pressure, _χ_ = ( _ρ −_ _ρ_ 1) _/_ ( _ρ_ 1 _−_ _ρ_ 2). This corresponds to the volume percentage inside each cell. In an arbitrary shaped cell that contains a dispersed flow e.g. bubbles, particles or droplets in a carrier or continuous phase, the volume fraction is defined as <sup>41</sup> _α_ = lim _δV →VP_ _<u>δVα</u>_ _<u>δVδVα</u>_ <sup>=</sup> _V_ <sup><u>1</u></sup> _P_ _VP_ _P_ _χ_ ( _x_ )d _V_ (5) where _VP,δVα_ are the cell volume and the volume of the continuous phase inside the cell in case of dispesed flows. Substituting the expression for volume fraction to the continuity equation yields an equation for the time evolution of _α_ . The advection of the volume fraction reads _f_ _α_ <sup>_n_</sup> <sup>+1</sup> = _α_ <sup>_n_</sup> _−_ <sup><u>1</u></sup> _VP_ _f_ _∈Nf_ nf - _n_ +1 _n_ _χ_ ( _x, t_ ) u ( x _,_ t )d S _dt_ (6) where nf is a unit vector defined for each on of the _Nf_ faces _f_ for cell _P_, such that each inner product with the area vector S points outwards the cell. Eq. (6) is solved here here for obtaining the volume fraction. The level set function according to Eq.1 is a distance function that is defined wherever an interface exists. The distance function can be advected using _<u>∂ψ</u>_ _∂t_ <sup>+</sup> <sup>u</sup> <sup>_· ∇ψ_</sup> <sup>= 0</sup> (7) where u is the velocity field. The convective term in the level set equation is integrated over a control volume _VP_, and using Gauss theorem for converting the volume integral to a surface integral Eq. (7) becomes _V_ _∇·_ ( _ψ_ u )d _V_ = _V_ _ψ_ ( u _·_ n ) _ds ≈_ _f_ _ψf_ _Ff_ (8) where _ψf_ is the interpolated _ψ_ at the face _f_ of cell _P_ and _Ff_ = Sf _·_ uf is the face flux, with Sf being the face area vector normal to the face. For this study we use a high-order interpolation scheme for evaluating the fluxes at cell faces from the cell-averaged _ψ_ . We implement a third-order 8 weighted essentially non-oscillatory (WENO) scheme which is used for the ad vection of the level set in arbitrary polyhedral cells. The main idea is to use a polynomial representation for reaching high-order accuracy for interpolating from the cell centres of each volume. Writing the level set equation as a non linear hyperbolic conservation law we calculate the fluxes solving the Riemann problem <sup>42</sup> . Integrating over the volume _V_ with surface _S_ Eq.(7) becomes dd _t_ <sup>_< ψ_</sup> <sup>_>_</sup> <sup>+</sup> _V_ <sup><u>1</u></sup> _S_ F ( u _, ψ_ ) _·_ n _∂V_ = 0 (9) where _<_ _ψ_ _>_ is the cell-averaged _ψ_ in steady-state and n is the normal vector of the surface _∂V_ surrounding _V_ . The cell-averaged value at _x_ is calculated as _V_ _< ψ_ ( _x, t_ ) _>_ = <sup><u>1</u></sup> _V_ _V_ _ψ_ ( _x, t_ )d _V_ = <sup><u>1</u></sup> _V_ _g_ ( _x_ )d _V_ (10) where the polynomial _g_ ( _x_ ) of the level set is calculated based on a polynomial basis function as _g_ ( _x_ ) = _< ψ_ _>_ + _i_ _ciBi_ ( _x_ ) (11) where _ci_ are the degrees of freedom used and _Bi_ are the basis functions calculated for each volume _VP_ expressed via the orthogonal polynomial basis functions _Li_ ( _x_ ) using Legendre polynomials as _Bi_ ( _x_ ) = _Li_ ( _x_ ) _−_ <sup><u>1</u></sup> _VP_ _VP_ _Li_ ( _x_ )d _VP_ (12) Eq.(9) can be written with respect to the surface integrals over all faces _f_ of the cell as dd _t_ <sup>_< ψ_</sup> <sup>_>_</sup> <sup>+</sup> _V_ <sup><u>1</u></sup> _Nf_ _f_ _Fnf_ d _f_ = 0 (13) where _Fnf_ is the flux into the direction of the normal vector of each face _f_ from the total number of faces _Nf_ . This is evaluated from the fluxes in the cells that share each face _f_, _ψL_, and _ψR_ . We solve the Riemann problem interpolating 9 both _ψL_, and _ψR_ with polynomials via the expressions obtained through Eq.(11). More details for the implemented WENO stencil can be found in <sup>43,44</sup> Solving the transport equation for _ψ_ yields an updated value for level set function that might lose its smooth profile and might no longer remain a signed distance function. Consequently, it needs to be re-initialised so that the Eikonal equation is satisfied, _|∇ψ| −_ 1 = 0. This is a re-sharpening iterative procedure that uses as an initial guess the value obtained from Eq. (1) denoted with _ψ_ 0. The gradient magnitude in the Eikonal equation is calculated with the Godunov Hamiltonian _G_ according to _|∇ψ|_ <sup>_∼_</sup> = _G_ ( _Dx_ <sup>_−_</sup> _x_ <sup>+</sup> <sup>_ψn, D_</sup> _y_ <sup>_−_</sup> _y_ <sup>+</sup> <sup>_ψn, D_</sup> _z_ <sup>_−_</sup> _z_ <sup>_−ψn, D_</sup> _z_ <sup>+</sup> _z_ <sup>+</sup> <sup>_ψn_</sup> <sup>)</sup> (14) _x_ <sup>_−ψn, D_</sup> _x_ <sup>+</sup> _y_ <sup>_−ψn, D_</sup> _y_ <sup>+</sup> The terms _Dx_ <sup>_−_</sup> _x_ <sup>+</sup> <sup>_ψn_</sup> <sup>,</sup> <sup>_D_</sup> _y_ <sup>_−_</sup> _y_ <sup>+</sup> <sup>_ψn_</sup> <sup>,</sup> <sup>_D_</sup> _z_ <sup>_−_</sup> _z_ <sup>+</sup> <sup>_ψn_</sup> <sup>are</sup> <sup>the</sup> <sup>finite</sup> <sup>differ-</sup> _x_ <sup>_−ψn, D_</sup> _x_ <sup>+</sup> _y_ <sup>_−ψn, D_</sup> _y_ <sup>+</sup> _z_ <sup>_−ψn, D_</sup> _z_ <sup>+</sup> ences of _ψ_ at three directions x,y,z. For each _ζ−_ direction _<u>i</u>_ <sup>_−_</sup> _ζ_ <sup>_ψn_</sup> <sup>=</sup> <sup>_ψn_</sup> <sup>_−_</sup> <sup>_ψ_</sup> _<u>i</u>_ <sup>_n_</sup> _<u>−</u>_ <u>1</u> _,_ _D_ <sup>+</sup> _ζ_ ∆ _ζ_ <sup>_−_</sup> _<u>i</u>_ <sup>+</sup> _ζ_ <sup>_ψn_</sup> <sup>=</sup> <sup>_ψn_</sup> _<u>i</u>_ <sup>_n_</sup> <u>+1</u> <sup>_−_</sup> <sup>_ψ_</sup> _<u>i</u>_ <sup>_n_</sup> <sup>_−_</sup> <sup>_ψ_</sup> _<u>i</u>_ <sup>_n_</sup> (15) ∆ _ζ_ <sup>+</sup> _D_ <sup>_−_</sup> _ζ_ _<u>i</u>_ <sup>_n_</sup> <sup>_−_</sup> <sup>_ψ_</sup> _<u>i</u>_ <sup>_n_</sup> where ∆ _ζ_ <sup>_−_</sup> _,_ ∆ _ζ_ <sup>+</sup> are the distances of the cell centre _P_ with the cell centre of the upwind and downwind cells respectively. The Hamiltonian-Godunov term is then calculated as _x_ <sup>2</sup> <sup>+) +</sup> <sup>_max_</sup> <sup>(</sup> <sup>_a_</sup> _y_ <sup>2</sup> _z_ <sup>2+)</sup> (16) _z_ <sup>2</sup> <sup>_−_</sup> <sup>_, a_</sup> _z_ <sup>2</sup> _y_ <sup>2+) +</sup> <sup>_max_</sup> <sup>(</sup> <sup>_a_</sup> _z_ <sup>2</sup> _y_ <sup>2</sup> <sup>_−_</sup> <sup>_, a_</sup> _y_ <sup>2</sup> _G_ = _max_ ( _a_ <sup>2</sup> _x_ <sup>2</sup> _x_ <sup>_−_</sup> <sup>_, a_</sup> _x_ <sup>2</sup> Here, the terms _ax−_ _, ax_ + _, ay−_ _, ay_ + _, az−_ _, az_ + for each direction are calculated using the face normal vector of the level set. For instance at the x-direction, _ax−_ _, ax_ + are calculated using the unit vector ∆x _NP_ of x _NP_ . If _ψ_ _<_ 0 and x _NP_ _·_ ∆x _NP_ _<_ 0 or _ψ_ _>_ 0 and x _NP_ _·_ ∆x _NP_ _>_ 0 then _ax_ = _min_ - _∇_ <sup>_⊥_</sup> _f_ <sup>_ψ ·_</sup> <sup>∆x</sup> <sup>_NP_</sup> - (17) If _ψ_ _<_ 0 and x _NP_ _·_ ∆x _NP_ _>_ 0 or _ψ_ _>_ 0 and x _NP_ _·_ ∆x _NP_ _<_ 0 then _ax_ = _max_ - _∇_ <sup>_⊥_</sup> _f_ <sup>_ψ ·_</sup> <sup>∆x</sup> <sup>_NP_</sup> 10 - (18) where the normal gradient of the level set function _∇_ <sup>_⊥_</sup> _f_ <sup>is</sup> <sup>calculated</sup> <sup>for</sup> <sup>all</sup> <sup>the</sup> faces _f_ based on the orientation of the normal at the face. In general _∇ψf_ <sup>_⊥_</sup> <sup>=</sup> <sup>_αcorr_</sup> <sup>(</sup> <sup>_ψP_</sup> <sup>_−_</sup> <sup>_ψn_</sup> <sup>)</sup> <sup>_/|_</sup> <sup>∆</sup> <sup>_ζ|ζ_</sup> <sup>ˆ + (ˆ</sup> <sup>_ζ −_</sup> <sup>_αcorr_</sup> <sup>∆</sup> <sup>_ζ_</sup> <sup>)</sup> <sup>_∇_</sup> <sup>(</sup> <sup>_ψ_</sup> <sup>)</sup> <sup>_f_</sup> (19) where _∇_ ( _ψ_ ) _f_ is the gradient of _ψ_ that is interpolated at the face _f_ and _αcorr_ is calculated from the angle _θ_ between the cell centres and the normal face as _cos_ <sup>_−_</sup> <sup>1</sup> ( _θ_ ). The following second order Runge-Kutta method is solved for a time-step _τ_ <sup>45</sup> _d_ <sup>_n, D_</sup> _x_ <sup>+</sup> _d_ <sup>_n_</sup> <sup>)</sup> <sup>_−_</sup> <sup>1</sup> _z_ <sup>+</sup> <sup>_ψ_</sup> _d_ <sup>_n_</sup> _z_ <sup>_−ψ_</sup> _d_ <sup>_n_</sup> _d_ <sup>_n, D_</sup> _z_ <sup>+</sup> _y_ <sup>+</sup> <sup>_ψ_</sup> _d_ <sup>_n_</sup> _y_ <sup>_−ψ_</sup> _d_ <sup>_n_</sup> _d_ <sup>_n, D_</sup> _y_ <sup>+</sup> _d_ <sup>_n, D_</sup> _y_ <sup>_−_</sup> _x_ <sup>+</sup> <sup>_ψ_</sup> _d_ <sup>_n_</sup> _ψ_ _ψ_ _′_ _d_ <sup>=</sup> <sup>_ψ_</sup> _d_ <sup>_n_</sup> <sup>_−_</sup> <sup>∆</sup> <sup>_τ_</sup> <sup>_· sgn_</sup> <sup>(</sup> <sup>_ψ_</sup> <sup>0)</sup> _′′_ _d_ <sup>=</sup> <sup>_ψ_</sup> - _G_ ( _Dx_ <sup>_−_</sup> _x_ <sup>_−ψ_</sup> _d_ <sup>_n_</sup> _d′_ <sup>_, D_</sup> _x_ <sup>+</sup> <sup>_ψ_</sup> _d′_ <sup>_, D_</sup> _x_ <sup>+</sup> _′_ _d_ <sup>)</sup> <sup>_−_</sup> <sup>1</sup> _d′_ <sup>_, D_</sup> _z_ <sup>+</sup> <sup>_ψ_</sup> _d_ <sup>_n, D_</sup> _z_ <sup>_−_</sup> _d′_ <sup>_, D_</sup> _z_ <sup>_−ψ_</sup> _d′_ <sup>_, D_</sup> _z_ <sup>_−_</sup> _d′_ <sup>_, D_</sup> _y_ <sup>+</sup> <sup>_ψ_</sup> _d′_ <sup>_, D_</sup> _y_ <sup>_−ψ_</sup> _′_ _d_ <sup>_−_</sup> <sup>∆</sup> <sup>_τ_</sup> <sup>_· sgn_</sup> <sup>(</sup> <sup>_ψ_</sup> <sup>0)</sup> - _G_ ( _Dx_ <sup>_−ψ_</sup> - _G_ ( _Dx_ <sup>_−_</sup> _<u>d</u>_ _d_ <sup>_n_</sup> <sup>+1</sup> = <sup>_<u>ψn</u>_</sup> _′′_ <sup><u>+</u></sup> <sup>_<u>ψ</u>_</sup> _<u>d</u>_ 2 (20) _ψd_ <sup>_n_</sup> <sup>+1</sup> _<u>d</u>_ <sup>_n_</sup> <sup><u>+</u></sup> <sup>_<u>ψ</u>_</sup> Eq. (20) is solved in a small narrow band surrounding the interface located at the _ψ_ -0 level. This narrow band is considered to have a thickness 2 _ϵ_ ∆ _x_, where _ϵ_ defines the layers of cells across which the re-initialisation is performed. Here, the values of _ϵ_ = 1 _._ 1 _−_ 1 _._ 5 were chosen <sup>46</sup> . The fictitious time step ∆ _τ_ depends on the Courant number (CFL) which is 0.3-0.5 for the tests here, and the lo cal cell-size, ∆ _τ_ = CFL _·_ min(∆ _ζ_ <sup>_−_</sup> _,_ ∆ _ζ_ <sup>+</sup> ) <sup>47,48</sup> . A small number of iterations was generally used here for obtaining _∇ψd_ that remained less than five. Al ternatively, a different re-initialisation strategy could require spiting the cells at the interface employing a smooth calculation of the gradient of the level set function considering the neighbouring cells via an interpolation at the cell-faces. In <sup>38</sup> a second-order in space formulation was presented for both structured and unstructured polyhedral cells and can be also used in the present method for are simple and efficient calculation of the distance function across the interface. The latter will be presented in future studies. The solutions of Eq. (20) are distance functions and since sgn(0) = 0, they have the same zero-level as _ψ_ . The new value of the level set function after the final re-initialisation step is denoted with _ψ_ <sup>˜</sup> _d_ e.g. _ψ_ ˜ _d_ = _ψd_ <sup>_n_</sup> <sup>+1</sup> . The new level 11 _V_ <sup>_H_</sup> <sup>(</sup> <sup>_ψ, t_</sup> <sup>)d</sup> <sup>_V_</sup> <sup>is</sup> set value needs to provide a smoothed level set such that the conserved. This means tha the new level set is now a signed distance function but it does not satisfy the condition in Eq. (4) and thus will lead to mass loss <sup>22</sup> . In order to minimise this induced error, a correction _ψ_ <sup>ˆ</sup> is added to _ψ_ <sup>˜</sup> _d_ as the proposed in <sup>37</sup> . This second correction step is performed next for choosing the appropriate _ψ_ for a sharp profile that conserves mass. The following reaction diffusion equation is solved _H_ ( _ψd_ + _ψ_ <sup>ˆ</sup> ) = _α_ + _λ_ ∆ _ψd_ (21) where _λ_ is a parameter that is a function of the cell size and is generally taken here _≈_ 0 _._ 5(Ω) <sup>1</sup> <sup>_/_</sup> <sup>3</sup>, where Ωis the volume of the cell. Eq. (21) is solved with an in house implicit solver with the laplacian term using an unbounded, second-order conservative scheme using linear interpolation. The resulting _ψ_ <sup>ˆ</sup> value leads to the final level set value _ψ_ <sup>_n_</sup> <sup>+1</sup> = _ψd_ <sup>_n_</sup> <sup>+1</sup> + _ψ_ <sup>ˆ</sup> (22) The new updated value satisfies the mass conservation since _H_ ( _ψ_ <sup>_n_</sup> <sup>+1</sup> ) = _α_ allowing the accurate curvature calculation which is included in the surface tension force in momentum equation in Eq.(25) and Eq.(31). The latter step is extremely important since it avoids the assumption that the interface posi tion is located at the iso-surface contour _α_ -0.5 (as in <sup>49 36</sup>, <sup>48</sup>, <sup>38</sup> ). Contrary to the previous works, the level set function is not reconstructed only from the advected volume fraction <sup>36</sup>, <sup>38</sup> but neither is based on a specifically designed scheme that could require cell-searching algorithms that might require addtional runtime <sup>38</sup>, <sup>39</sup> . Contrary to other similar works <sup>48</sup> a Runge-Kutta scheme is used for the re-initialisation procedure that was previously shown to be second-order in the whole domain and more accurate than the forward Euler scheme <sup>45</sup> . This scheme, combined with the mass conservation reaction-diffusion step for the new value of _ψ_ aims at a low mass loss in Eq.(3). Apart of the parameters _λ, ϵ_ no further tuning is required for this methodology. 12 _2.3._ _Mass-conservation_ _correction_ _algorithm_ _&_ _flux_ _calculation_ The mass correction is the most important step of the algorithm here and makes sure that the advected level set respects continuity equation. Since we use a finite volume approach it is vital to use an algorithm that successfully calculates the mass fluxes across all faces of the mesh cells and is applicable for different types of polyhedral meshes. In this study we developed an approach that deploys the smoothed volume fraction and calculates the fluxes in each face. An overview of the steps used in the solver to calculate the interface is shown in Fig. 1. The mass-conservation algorithm is utilised in one or more cycles ( _ψ_ -sub cycles). These are: 1. First the fluxes are averaged based on the current and previous time-steps. Then the in-house reaction-diffusion solver is called that calculates the correction for level set, _ψ_ <sup>ˆ</sup> based on the Eq. (21). For the evaluation of all the flux terms, this solver uses a third-order WENO (weighted essentially non-oscillatory) interpolation scheme which is implemented in the solver for the presented approach in this paper. 2. The signed distance function is corrected calculating _ψ_ <sup>_n_</sup> <sup>+1</sup> and updating boundary conditions. 3. The smoothed volume fraction is calculated based on the Heaviside expres sion. A smeared Heaviside function, _H_, is used for numerical robustness, <sup>50</sup> defined as (23) _H_ ( _ψ_ ) =   0 if _ψ_ _< −ϵ_ 21 �1 + _tanh_ ( _~~√~~_ <sup>_<u>ψ</u>_</sup> 2 _ϵ_ <sup>)</sup> - if _|ψ| ≤_ _ϵ_ 21 �1 + _tanh_ ( _~~√~~_ <sup>_<u>ψ</u>_</sup> 2  1 if _ψ_ _> ϵ_ This new value is used to interpolate the densities of the fluids _ρ_ 1 _, ρ_ 2 and their difference (∆ _ρ_ ) _f_ at the cell faces in all cells. 4. At this stage, the level set function is a signed distance function which satisfies Eq. (4) but the fluxes need to be re-calculated. The volumetric 13 fluxes _F_ across mesh faces _f_ are calculated based on the new smoothed volume fraction and interpolated densities. If this is not the final _ψ_ sub-cycle then, all the mass fluxes are summed up per cell. At the final _ψ_ -sub-cycle this sum is used as the mass flux in all faces. In general one _ψ_ -sub-cycle is enough for good accuracy but the user can use more for improving mass correction if the problems demand it. 5. Using the new mass flux the mixture properties are corrected and the new curvature for the interface is obtained. This curvature is used in the momentum equation for the surface tension force. Figure 1: Summary of the steps used for the level-set mass conservation algorithm. 14 _2.4._ _Incompressible_ _two-phase_ _flow_ _equations_ The governing incompressible Navier-Stokes equations for two-phase flow with surface tension are given by _<u>∂uj</u>_ _∂xj_ = 0 (24) _<u>∂ui</u>_ _∂xj_ - = _−_ <sup>_<u>∂p</u>_</sup> _∂xi_ - = _−_ <sup>_<u>∂p</u>_</sup> + <sup>_<u>∂τij</u>_</sup> _∂xj_ + _Fσ_ (25) _ρ_ - _<u>∂ui</u>_ _∂t_ <sup>+</sup> <sup>_uj_</sup> where _ui_ ( _x, t_ ) represents the _i_ -th component of the fluid velocity at a point in space, _xi_, and time, _t_ . Also _p_ ( _x, t_ ) represents the static pressure, _τij_ ( _x, t_ ), the viscous (or deviatoric) stresses, and _ρ_ the fluid density. The deviatoric _∂x_ <sup>_<u>∂u</u>_</sup> _j_ <sup>_<u>i</u>_</sup> <sup>+</sup> <sup>_<u>∂u</u>_</sup> _∂x_ <sup>_<u>j</u>_</sup> _i_ stress tensor is given by _τij_ = 2 _µSij_,where _Sij_ = 0 _._ 5( _∂x_ <sup>_<u>∂u</u>_</sup> _j_ <sup>_<u>i</u>_</sup> <sup>_<u>∂u</u>_</sup> _∂x_ <sup>_<u>j</u>_</sup> _i_ <sup>).</sup> <sup>Once</sup> <sup>the</sup> volume fraction is advected, the level set equation is solved and is corrected using Eq.(20) obtaining _∇ψd_ . The reaction-diffusion equation is solved obtaining the new level set function _ψ_ <sup>_n_</sup> <sup>+1</sup> . A correction for the volume fraction is performed based on _ψd_ such that _αH_ = _H_ ( _ψ_ <sup>_n_</sup> <sup>+1</sup> ) = _α_ (26) where _αH_ is the smoothed volume fraction from a Heaviside expression that depends on the value of _ψ_ . This step is very important since it links level set with the calculated volume fraction in each computational cell. The newly corrected volume fraction _αH_ is then used for calculating the fluxes across the faces of each cell and is used into the momentum equation. The mixture properties are calculated with the one-fluid approach, where density and viscosity of the pseudo-fluid are calculated as <sup>5</sup> . _ρ_ = _ρ_ 1 _H_ + _ρ_ 2(1 _−_ _H_ ) (27) _µ_ = _µ_ 1 _H_ + _µ_ 2(1 _−_ _H_ ) (28) The surface tension force acting on the interface is calculated as <sup>51</sup> 15 _Fσ_ = _σκδ_ ( _ψ_ ) _∇ψ_ (29) The Dirac function _δ_ () is used for smoothing the surface tension force effect at the interface. Depending on the interface thickness _δ_ () is evaluated from <sup>36,38</sup> _δ_ ( _ψ_ ) =  0 if _|ψ| > ϵ_ �� if _|ψ| ≤_ _ϵ_ (30)  21 _ϵ_ �1 + _cos_ - _<u>πψϵ</u>_ The curvature defined as _κ_ = _−∇· ψκ_, where _ψκ_ = _∇ψ/|∇ψ|_ and the gradient can be discretised (since _ψ_ is a continuous function) and the surface tension force is calculated at the cell faces using _Fσ_ = ( _σκ_ ) _f δf_ ( _ψ_ ) _∇f_ <sup>_⊥ψ_</sup> (31) where ( _σκ_ ) _f_ and _δf_ are interpolated at the faces of the cell. 3. Numerical tests and discussions In this section, the proposed methodology is evaluated for capturing the interface between two immiscible fluids with some widely used advection bench mark tests. The rotating disc and sphere tests were performed to assess the capability of the method to capture the interface of rotating filaments under a non-uniform velocity field. Zalesak’s slotted disc test is presented next, and the motion of a rising bubble in two and three dimensions is presented as an example of a flow where surface tension force plays an important role. In order to quantify the accuracy of the numerical results, the shape preservation error _Eα_ is calculated, defined as The error <u>�</u> _Eα_ = _<u>i</u>_ <sup>_<u>Vi|αi −</u>_</sup> <sup>_<u>αi,exact|</u>_</sup> <u>�</u> _i_ <sup>_Viαi,exact_</sup> (32) the sum considers all cells in the domain with numerical solution _αi_ . The exact solution _αi,exact_ is obtained from the position of the disc at t=0s. The advection error is also quantified using 16 _L_ 1( _α_ ) = _i_ _Vi|αi −_ _αi,exact|_ (33) _3.1._ _Two-dimensional_ _vortex_ _deformation_ _transport_ In this test an initially still disc filled with liquid starts to rotate under the influence of a velocity field that changes through time. The disc progressively deforms and streches until it becomes a ligament. After reaching its maximum deformation, the flow reverses, which causes the ligament to return back to its original shape. This classical numerical test of <sup>52</sup> demonstrates the capability of the numerical method to capture highly deformed interfaces. The disc is placed in a two-dimensional domain [0 _,_ 1] <sup>2</sup> and at t=0s has radius _R_ with the disc centre at ( _x, y_ ) = (0 _._ 5 _,_ 0 _._ 75). The velocity field is given by (34) _u_ ( _x, y, t_ ) = _−sin_ <sup>2</sup> ( _πx_ ) _sin_ (2 _πy_ ) _cos_ - _<u>πt</u>_ _T_ _v_ ( _x, y, t_ ) = _sin_ (2 _πx_ ) _sin_ <sup>2</sup> ( _πy_ ) _cos_ - _<u>πt</u>_ _T_ (35) For this test, the simulation lasted for one period, T=8 and the Courant number was 0.3. A fixed Eulerian grid is used for all cases. The total simulation time was 8 _s_ . The interface is initially a circle which is distorted and stretched through time with a maximum deformation at t=T/2. At that point the vortex has become a spiral-like ligament with a thin tail. Increasing t, at _t_ _∈_ [0 _, T/_ 2] deforms the rotating vortex and the thickness of the spiral becomes smaller than the grid size. Thus, the spiral breaks up into smaller pieces, with droplets generated due to the under-resolved liquid fraction field. Consequently, the interface loses its smooth shape. For _t_ _∈_ [ _T/_ 2 _, T_ ] the flow reverses and the spiral is restored back to its originally circular shape. The loss in geometrical information, is also evident during the reversed flow, and the resulting restored disc has no longer the ideal circular shape at t=T. Different meshes were tested for structured, unstructured and polyhedral meshes with three different grid resolutions indicated as coarse, medium and fine. For the structured meshes the 17 resolutions used were 32 _×_ 32, 64 _×_ 64 and 128 _×_ 128. For the unstructured and polyhedral meshes, the resolutions were similar and are listed in Table 1. The numerical results for the different grids at t=0, T/2, T are shown in Fig. 2 for the smoothed volume fraction at t=T/2 and 0.5-contour of the field at t=0, T. The mesh resolution plays an important role for capturing the interface and in all cases it plays a major role to the ligament fragmentation due to the strong deformation. The droplet formation is more evident for coarse meshes at t=T/2, with a significant improvement for the finer meshes where the local cell size becomes closer to the local thickness of the stretched ligament. The results for shape preservation also illustrate how the mesh resolution in fluences the in Table 1. Overall, the error was reasonably low regardless the mesh type. The re-initialisation step for the level set function considered the Runge Kutta scheme which has shown third-order accuracy close to the interface and that it might be at least second-order for the rest of the domain <sup>45</sup> . Calculating gradients across the interface separating two fluids poses challenges which can result in the mass error introduced before solving the reaction-diffusion equation for obtaining the smoothed volume fraction. Here, an central-difference scheme in Eq.19 is employed for calculating the normal gradient of the level set function with an extra term for non-orthogonal meshes. The non-orthogonal correction with the explicit non-orthogonal term becomes important when _θ_ was more than 30 <sup>_o_</sup> and the meshes here had generally non-orthogonality less than 55 <sup>_o_</sup> . 18 (c) Coarse polyhedral (a) Coarse quadrilateral (b) Coarse triangular (d) Medium quadrilateral (e) Medium triangular (f) Medium polyhedral (g) Fine quadrilateral (h) Fine triangular (i) Fine polyhedral Figure 2: Two-dimensional rotating disc test for the presented method at _t_ = _T/_ 2. The smoothed volume fraction H, the initial (light purple line) at _t_ = 0 and final position of the zero-level set iso-surface (blue line) at _t_ = _T_ are indicated. The results for the structured mesh are also compared with other numerical methods for either VOF or coupled methods with level set in Table 2. The re sults here are reasonably close to the errors reported from the coupled Tangent of Hyperbola Interface Capturing (THINC) and level set methods in <sup>53,54</sup> . The CLSVOF method of <sup>54</sup> using a surface representation based on a first/forth order polynomial, THINC-LS (P1/P4) has previously demonstrated excellent results 19 for mass conservation and interface representation, offering significant improve ments compared to other geometric methods <sup>54</sup> . The error obtained with the presented method here were close or lower than other CLSVOF methods such as the ones in <sup>55,56,57</sup> and other VOF methods such as <sup>58</sup> . Similarly, the results were lower to the ones obtained with the PLIC method of <sup>59</sup> . The method here does not employ an explicit interface reconstruction step or other surface interpolation in space that might be dependent on the mesh topology. Thus, it has a simple level set implementation that can be naturally implemented in various types of meshes. The approach here generally shows an accuracy which is close or better than other PLIC-VOF methods and coupled level-set-VOF methods, including the one in ILSVOF <sup>38</sup> . We improve the accuracy of the ILSVOF by using a fundamentally different algorithm of the level set advection: the ILSVOF method in <sup>38</sup> does not solve any equation for level-set and uses a specific second-order re-initialisation scheme to compensate for interface smear ing. On the other hand, here we solve the level set equation and we do not locate the interface as the 0.5-contour of the volume fraction as in ILSVOF, but solve an extra equation to guarantee that the interface representation recovers mass conservation. The results show that with this approach, one might generally be able to avoid using dedicated re-initialisation schemes for re-sharpening level set as in <sup>39,38</sup> . The mass conservation error time history is shown in Fig. 3. Overall, the proposed method demonstrated reasonably low mass conservation error for the structured mesh tests. Mass conservation is based on the Eq.21 with the pa rameter _λ_ being here equal to 50% of the local mesh size. 20 Table 1: _Eα_ calculated using different meshes for the 2D rotating disc case. Mesh Resolution _Eα_ 64 <sup>2</sup> -2.11 _·_ 10 <sup>_−_</sup> <sup>7</sup> Structured 128 <sup>2</sup> -3.69 _·_ 10 <sup>_−_</sup> <sup>8</sup> 256 <sup>2</sup> -8.13 _·_ 10 <sup>_−_</sup> <sup>9</sup> 4112 -5.19 _·_ 10 <sup>_−_</sup> <sup>6</sup> Unstructured 16010 -5.87 _·_ 10 <sup>_−_</sup> <sup>7</sup> 64020 8.13 _·_ 10 <sup>_−_</sup> <sup>8</sup> 4062 4.21 _·_ 10 <sup>_−_</sup> <sup>5</sup> Polyhedral 16033 8.43 _·_ 10 <sup>_−_</sup> <sup>6</sup> 64012 -3.16 _·_ 10 <sup>_−_</sup> <sup>6</sup> Table 2: Comparisons of the methods using quadrilateral meshes for the two-dimensional rotating disc case. The first order norm _L_ 1( _α_ ) is calculated for the three different meshes. Authors 32 <sup>2</sup> 64 <sup>2</sup> 128 <sup>2</sup> DS-CLSMOF <sup>55</sup> 2.92 _×_ 10 <sup>_−_</sup> <sup>2</sup> 5.51 _×_ 10 <sup>_−_</sup> <sup>3</sup> 1.37 _×_ 10 <sup>_−_</sup> <sup>3</sup> PLIC <sup>59</sup> 2.53 _×_ 10 <sup>_−_</sup> <sup>2</sup> 2.78 _×_ 10 <sup>_−_</sup> <sup>3</sup> 4.8 _×_ 10 <sup>_−_</sup> <sup>4</sup> THINC/WLIC <sup>53</sup> 4.16 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1.61 _×_ 10 <sup>_−_</sup> <sup>2</sup> 3.56 _×_ 10 <sup>_−_</sup> <sup>3</sup> THINC-LS (P1) <sup>54</sup> 6.71 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1.53 _×_ 10 <sup>_−_</sup> <sup>2</sup> 2.27 _×_ 10 <sup>_−_</sup> <sup>3</sup> THINC-LS (P4) <sup>54</sup> 2.85 _×_ 10 <sup>_−_</sup> <sup>2</sup> 3.39 _×_ 10 <sup>_−_</sup> <sup>3</sup> 6.79 _×_ 10 <sup>_−_</sup> <sup>4</sup> Rider-Kothe/Puckett <sup>58</sup> 4.78 _×_ 10 <sup>_−_</sup> <sup>2</sup> 6.96 _×_ 10 <sup>_−_</sup> <sup>3</sup> 1.44 _×_ 10 <sup>_−_</sup> <sup>3</sup> InterFOAM <sup>60</sup> 1.026 _×_ 10 <sup>_−_</sup> <sup>1</sup> 3.65 _×_ 10 <sup>_−_</sup> <sup>2</sup> 2.32 _×_ 10 <sup>_−_</sup> <sup>2</sup> CLSVOF in <sup>56</sup> - - 3.9236 _×_ 10 <sup>_−_</sup> <sup>3</sup> CLSVOF in <sup>57</sup> - - 1.93 _×_ 10 <sup>_−_</sup> <sup>3</sup> ILSVOF in <sup>38</sup> 4.19 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1.43 _×_ 10 <sup>_−_</sup> <sup>3</sup> 8.36 _×_ 10 <sup>_−_</sup> <sup>4</sup> Presented method 1.27 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1.14 _×_ 10 <sup>_−_</sup> <sup>3</sup> 2.33 _×_ 10 <sup>_−_</sup> <sup>4</sup> 21 Figure 3: Mass conservation error for the two-dimensional rotating disc case for the three levels of refinement, 32 <sup>2</sup>, 64 <sup>2</sup>, 128 <sup>2</sup> . _3.2._ _Three-dimensional_ _vortex_ _deformation_ The methodology is assessed next for three-dimensional interfaces under going strong deformations performing the test proposed in <sup>52</sup> . A sphere with radius 0.15 is centred at (0.35, 0.35, 0.35) inside a domain [0 _,_ 1] <sup>3</sup> filled with gas. The liquid sphere is transported by a time-dependent velocity field given by _u_ ( _x, y, z, t_ ) = 2 _sin_ <sup>2</sup> ( _πx_ ) _sin_ (2 _πy_ ) _sin_ (2 _πz_ ) _cos_ _v_ ( _x, y, z, t_ ) = _−sin_ (2 _πx_ ) _sin_ <sup>2</sup> ( _πy_ ) _sin_ (2 _πz_ ) _cos_ _w_ ( _x, y, z, t_ ) = _−sin_ (2 _πx_ ) _sin_ (2 _πy_ ) _sin_ <sup>2</sup> ( _πz_ ) _cos_ - _<u>πt</u>_ _T_ - _<u>πt</u>_ _T_ - _<u>πt</u>_ _T_ (36) The period of the simulation was _T_ = 3 _s_ and the sphere was stretched until t=T/2s when the flow reversed unstretching the sphere until t=T. Three differ ent levels of refinement were used for the tests for structured and unstructured meshes. The grid resolutions indicated as coarse, medium and fine were 32 <sup>3</sup>, 64 <sup>3</sup> and 128 <sup>3</sup> . For the unstructured meshes, the resolutions were similar and are listed in Table 3. Fig. 4 shows the smoothed field _H_ at maximum stretching _t_ = _T/_ 2 and at the initial and final positions of the sphere, _t_ = _T_ . At the 22 maximum stretching the 3D sphere resembles a thin sheet that is deformed in all three directions. During the rotation the liquid sheet breaks up into larger fragments which is more evident in the coarse meshes for both hexahedral and tetrahedral meshes, with voids of gas inside the rotating vortex. Increasing the mesh resolution, increases the accuracy of interface capturing for the liquid sheet with less voids present. The discrepancies that occur at the interface at _t_ = _T_ for the medium and fine meshes due to the additional break up of the ligaments, are less evident since the mesh resolution becomes approximately equal to the droplet size. The error _Eα_ is shown in Table 3 for the different meshes. The error is lower for the structured grids in general. Calculating the gradient of _ψ_ for tetrahedral meshes is challenging and requires high order schemes when solving the level set equation. Furthermore, some algorithms for correcting the gradient in the vicinity of the interface for tetrahedral meshes can be used to properly calculate the re-initialised level set function <sup>38</sup> . The results for _L_ 1( _α_ ) are also shown in Table 4 for comparisons with other numerical methods using hexahedral meshes. The error is significantly lower than the results obtained in <sup>60</sup> using the solver interFoam of <sup>61</sup> . The later uses is an algebraic VOF method that has been previously shown to suffer from diffusion in the 3D rotating disc test <sup>62</sup> . The solver interFoam is also limited to smaller Courant numbers for stability reasons (no more than 0.1 is preferred). The results were better for the different grids compared to the RK-3D method of <sup>63</sup> using PLIC. Compared to the CLSVOF method of <sup>54</sup>, the er ror was lower than the ones obtained with THINC-LS (P1) and the THINC-LS (P4). Overall, the method is proven to be competitive to the other geometrical VOF methods having the advantage of no interface reconstruction regardless the mesh and shows a significant improvement in accuracy with 50-100% lower error for most cases with the presented formulation. 23 (a) 32 <sup>3</sup> (b) 64 <sup>3</sup> (c) 128 <sup>3</sup> Figure 4: Three-dimensional rotating sphere in a non-uniform flow test for various levels of structured mesh. The 0.5-iso-surface of H obtained with the presented method at _t_ = _T/_ 2 (top) and at _t_ = 0 with red and at _t_ = _T_ with blue (bottom) are shown. 24 Table 3: _Eα_ error calculated using different meshes for the 3D rotating sphere test. Mesh Resolution _Eα_ 32 <sup>3</sup> -2.21 _·_ 10 <sup>_−_</sup> <sup>6</sup> Structured 64 <sup>3</sup> -3.33 _·_ 10 <sup>_−_</sup> <sup>7</sup> 128 <sup>3</sup> -1.27 _·_ 10 <sup>_−_</sup> <sup>7</sup> 81547 -5.43 _·_ 10 <sup>_−_</sup> <sup>4</sup> Unstructured 226733 -7.22 _×_ 10 <sup>_−_</sup> <sup>5</sup> 1200182 -2.66 _·_ 10 <sup>_−_</sup> <sup>5</sup> (a) 81547 (b) 226733 (c) 1200182 Figure 5: Three-dimensional rotating sphere in a non-uniform flow test for various levels of unstructured mesh. The 0.5-iso-surface of H obtained with the presented method at _t_ = _T/_ 2 (top) and at _t_ = 0 with red and at _t_ = _T_ with blue (bottom) are shown. _3.3._ _Zalesak’s_ _disc_ This case tests the capability of the proposed method to transport a notched disc by a rotating vortex. The test has been proposed by Zalesak <sup>64</sup> and is widely 25 Table 4: _L_ 1( _α_ ) error norm for structured meshes for the three-dimensional rotating sphere case and comparison with other methods. Authors 32 <sup>3</sup> 64 <sup>3</sup> 128 <sup>3</sup> RK-3D using PLIC <sup>63</sup> 7.85 _×_ 10 <sup>_−_</sup> <sup>3</sup> 2.75 _×_ 10 <sup>_−_</sup> <sup>3</sup> 7.41 _×_ 10 <sup>_−_</sup> <sup>4</sup> THINC-LS (P1) <sup>54</sup> 7.18 _×_ 10 <sup>_−_</sup> <sup>3</sup> 2.34 _×_ 10 <sup>_−_</sup> <sup>3</sup> 6.14 _×_ 10 <sup>_−_</sup> <sup>4</sup> THINC-LS (P4) <sup>54</sup> 5.54 _×_ 10 <sup>_−_</sup> <sup>3</sup> 1.57 _×_ 10 <sup>_−_</sup> <sup>3</sup> 3.79 _×_ 10 <sup>_−_</sup> <sup>4</sup> interFoam <sup>60</sup> 9.95 _×_ 10 <sup>_−_</sup> <sup>3</sup> 4.78 _×_ 10 <sup>_−_</sup> <sup>3</sup> 2.03 _×_ 10 <sup>_−_</sup> <sup>3</sup> ILSVOF in <sup>38</sup> 8.89 _×_ 10 <sup>_−_</sup> <sup>2</sup> 2.96 _×_ 10 <sup>_−_</sup> <sup>3</sup> 8.06 _×_ 10 <sup>_−_</sup> <sup>4</sup> Presented method 1.16 _×_ 10 <sup>_−_</sup> <sup>3</sup> 4.72 _×_ 10 <sup>_−_</sup> <sup>4</sup> 8.68 _×_ 10 <sup>_−_</sup> <sup>5</sup> used in the literature for testing interface capturing schemes. A slotted circle centred at (0.5, 0.75) with radius R=0.15 is rotated in a domain [0 _,_ 1] <sup>2</sup> . The slot is defined by _|x −_ 0 _._ 5 _| ≤_ 0 _._ 025 and _y_ _≤_ 0 _._ 85. The configuration for the test in Fig.6 had W = 0.05 and L = 0.25. The velocity field is given by _u_ ( _x, y, t_ ) = 2 _π_ (0 _._ 5 _−_ _y_ ) (37) _v_ ( _x, y, t_ ) = 2 _π_ ( _x −_ 0 _._ 5) Three levels of grid resolution were used 50 _×_ 50, 100 _×_ 100 and 200 _×_ 200. After one rotation, the slotted circle returns back to its initial state as in Fig.7. The Courant number was 0.3. Fig8 shows the results of a rotated slotted disc after one revolution. The most challenging regions of the interface to capture are located at the corners of the slot. The slot of the circle is distorted during the rotation in those areas, with the error in shape preservation being higher in those regions. The fractional error _Er_ is employed here for consistent comparisons, defined as <u>�</u> _Er_ = _<u>i</u>_ <sup>_<u>|αi −</u>_</sup> <sup>_<u>αi,exact|</u>_</sup> <u>�</u> _i_ <sup>_αi,exact_</sup> (38) The values of _Er_ calculated using different meshes are shown in Table 5. The re sults were comparable to other VOF geometrical approaches using the THINC/LS scheme with high-order surface polynomials and were generally more accurate than the second-order THINC-LS (P2) and the forth-order THINC-LS (P4) 26 Table 5: _Er_ error of Zalesak rotation test after one rotation and comparison with other methods. Authors 50 <sup>2</sup> 100 <sup>2</sup> 200 <sup>2</sup> THINC-LS (P1) <sup>54</sup> 1.23 _×_ 10 <sup>_−_</sup> <sup>1</sup> 3.37 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1.19 _×_ 10 <sup>_−_</sup> <sup>2</sup> THINC-LS (P2) <sup>54</sup> 6.40 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1.47 _×_ 10 <sup>_−_</sup> <sup>2</sup> 7.04 _×_ 10 <sup>_−_</sup> <sup>3</sup> THINC-LS (P4) <sup>54</sup> 3.64 _×_ 10 <sup>_−_</sup> <sup>2</sup> 9.98 _×_ 10 <sup>_−_</sup> <sup>3</sup> 3.99 _×_ 10 <sup>_−_</sup> <sup>3</sup> interFoam <sup>60</sup> - 9.22 _×_ 10 <sup>_−_</sup> <sup>2</sup> 3.92 _×_ 10 <sup>_−_</sup> <sup>2</sup> Presented method 1.38 _×_ 10 <sup>_−_</sup> <sup>2</sup> 5.21 _×_ 10 <sup>_−_</sup> <sup>3</sup> 1.64 _×_ 10 <sup>_−_</sup> <sup>3</sup> schemes with more than 50% lower error. The difference with the solver inter Foam with the algebraic method in <sup>60</sup> is higher and the error of our method here has an order of magnitude less error. Figure 6: Domain used for Zalesak’s disc test case. 27 Figure 7: Calculated smoothed level set for Zalesak’s disc for one rotation. (a) Smoothed field. (b) Contours. Figure 8: Numerical results of Zalesak’s slotted disc test for a 100 _×_ 100 grid after one revolution. The interface is shown for the 0.5 contour (black colour) together with the 0.05 (blue colour) and 0.95 (red colour) contours. _3.4._ _Two-dimensional_ _rising_ _bubble_ In this test a gaseous bubble with volume Ω1 is placed in a column filled with a heavier fluid of volume Ω2 and rises under the effect of gravity. The bubble rises gradually at the top of the domain and deforms changing shape. The test has been proposed by <sup>65</sup> who presented quantitative benchmark quantities in terms of the mass-centre of the bubble, the rise velocity and its circularity. Initially at t=0s, the bubble is placed at (0.5, 0.5) in a rectangular domain [2 _d,_ 4 _d_ ] as shown in Fig.9 and has diameter d = 0.5 units. No-slip boundary conditions were applied at the top and the bottom of the column and a free 28 stream boundary condition at the vertical walls. The velocity is initially zero in the domain and inside the bubble the pressure is set as constant from hydrostatic theory. The physical properties for the fluids are listed in Table 6. Different grid resolutions were used for the study: ∆ _x/_ 40 _,_ ∆ _x/_ 80 _,_ ∆ _x/_ 160. The Reynolds ( _Re_ = _ρ_ 2 _UT d/µ_ 2) and E¨otv¨os numbers ( _Eo_ = _gd_ <sup>2</sup> ∆ _ρ_ 2 _/σ_ ) were Re=35 and Eo=10 for this study. Here, _UT_ = <sup>_√_</sup> _gd_ is the gravitational velocity. The centre of mass ( _yc_ ), the rise velocity of the bubble ( _vc_ ) and its circularity (sphericity in 3D) ( _ζ_ ) were defined by <sup>65</sup> as _yc_ = _vc_ = �Ω1 <sup>_ydV_</sup> <u>�</u> �Ω1 <sup>_vdV_</sup> <u>�</u> Ω1 <sup>_dV_</sup> Ω1 <sup>_dV_</sup> (39) _ζ_ = <sup>_<u>πd</u>_</sup> Π where Π is the perimeter of the bubble, _y_ the coordinate value and _v_ is the ver tical velocity. The benchmark quantities are shown in Fig.10 for the different grid resolutions. There was good agreement with the results in <sup>65</sup> and <sup>66</sup> for _xc_, _vc_ and _ζ_ for the different grid resolutions. The bubble loses its initial circular shape for which _ζ_ =1 at t=0s, and under the forces exerted on the bubble starts to deform. After approximately t=1.95s the bubble becomes more flattened and obtains its minimum circularity (approximately _ζ_ =0.9 at t=2s). At that point and while the centre mass coordinate value increases linearly with time, the circularity starts to increase, under the influence of surface tension force _Fσ_ which prevents the bubble disintegrating <sup>35</sup> . At the same time for _t_ _∈_ [2 _s,_ 3 _s_ ] the rise velocity remained relatively constant with _vc_ =0.2m/s. The algorithm calculates the surface tension force with the new _ψ_ after it is corrected to sat isfy the volume fraction from VOF. Since a segregated approach is used for solving Navier-Stokes equations, a pressure-velocity algorithm is used, which is the Pressure Implicit with Splitting of Operator (PISO) by <sup>67</sup> . When using the PISO algorithm, a pressure equation is solved according to the number specified by a predefined number of times. Here the number of times the algorithm solved the pressure equation and momentum corrector in each step were set to 2. 29 Table 6: Parameters considered for the rising gas bubble problem. _ρ_ 1 _ρ_ 2 _µ_ 1 _µ_ 2 g _σ_ 100 _kg/m_ <sup>3</sup> 1000 _kg/m_ <sup>3</sup> 1 _kg/m · s_ 10 _kg/m · s_ 0.981 _m/s_ <sup>2</sup> 24.5 _N/m_ _3.5._ _Three-dimensional_ _rising_ _bubble_ A rising bubble is tested next in three-dimensions following the test case in <sup>35</sup> . A bubble is placed in a cylindrical domain with diameter 8 _d_ and height 8 _d_ . The distance from the bottom of the domain to the centre of the sphere was 1 _._ 5 _d_ . For the physical parameters of the test, it was _µ_ 1 _/µ_ 2 = 0 _._ 01 and _ρ_ 1 _/ρ_ 2 = 0 _._ 01. Four meshes with a grid size ∆ _x_ = _d/_ 15 _,_ 20 _,_ 30 _,_ 40 were used. The error in Reynolds number and circularity is calculated based on the finest mesh (exact). These are defined as _ERe_ = ( _Re −_ _Reexact_ ) _/Reexact_ and _Eζ_ = ( _ζ_ _−_ _ζexact_ ) _/ζexact_ . Table 7 shows the values for _ERe_ and _Eζ_ compared to the results of the CLSVOF method of <sup>35</sup> and ILSVOF in <sup>38</sup> showing better accuracy for the different mesh resolutions. In particular, the error in the other two methods were approximately two times higher than the error obtained with the method here. The time history of the error in mass conservation considering the mass initially in the domain Ω1 _∪_ Ω2, _M_ (0) is calculated as in <sup>35</sup> according Ω1 _∪_ Ω2 <sup>_α_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_dV_</sup> <sup>.</sup> <sup>The</sup> <sup>error</sup> <sup>is</sup> <sup>shown</sup> to ( _M_ ( _t_ ) _−_ _M_ (0)) _/M_ (0), where _M_ ( _t_ ) = in Fig.11 for the various grid resolutions and remained reasonably low during the deformation of the bubble approaching 10 <sup>_−_</sup> <sup>6</sup> or lower at the end of the simulations. 30 Figure 9: Domain for the two-dimensional rising bubble test. (a) Centroid. (b) Rise velocity. 31 (d) Bubble shape evolution. (c) Circularity Table 7: Error for Re and sphericity of the bubble in the three-dimensional rising bubble case. Three different structured meshes are used and the results are compared with the CLSVOF method of <sup>35</sup> . Presented method CLSVOF method of <sup>35</sup> ILSVOF method <sup>38</sup> Mesh size _ERe_ _Eζ_ _ERe_ _Eζ_ _ERe_ _Eζ_ ∆ _x/_ 15 0.00175 0.0053 0.00341 0.0118 0.00363 0.0126 ∆ _x/_ 20 0.00149 0.0032 0.00339 0.0074 0.00314 0.0063 ∆ _x/_ 30 0.000083 0.0019 0.00017 0.0042 - Figure 11: Mass conservation error for three-dimensional rising bubble case for the three levels of refinement. 4. Conclusions A conservative level set approach with a correction step using volume of fluid method is presented for simulating two-phase flows in the finite volume framework. The interface capturing is utilised using a resharpening method that conserves mass avoiding smearing of the interface. The mass fluxes are calculated based on the new smoothed volume fraction that is corrected. The proposed method supports different types of grids and allows for various options 32 for choosing the VOF advection. We show here that with this mass-conservation method for advecting level-set using a simple re-initialisation and the flux update algorithm, one might generally be able to avoid using dedicated re-initialisation schemes for re-sharpening level set. The numerical results for highly deformed interfaces with moving and chang ing topology showed reasonable mass conservation error and accuracy. The mass loss remained low for long time simulations due to the mass-correction step based on the coupling with the volume of fluid method. Based on the numerical tests, the methodology can be used for accurately simulating flows with immiscible fluids with surface tension and flows with strong interface deformations. More tests for improving the calculation of the level set function during the re-initialisation could be used considering algorithms that guarantee at least second-order accuracy for the re-sharpening of the level set regardless of the mesh type. The method uses some predefined parameters that depend on the thickness of the interface and a sensitivity analysis could provide more informa tion for its impact of the correction of _ψ_ . Acknowledgments This work was supported by Heart Research UK [RG2670/18/21] and the Wellcome/EPSRC Centre for Medical Engineering [WT 203148/Z/16/Z]. References 1. Hirt CW, Nichols BD. Volume of fluid (vof) method for the dynamics of free boundaries. _Journal_ _of_ _Computational_ _Physics_ 1981;39(1):201 –25. URL: `[http://www.sciencedirect.com/science/article/pii/](http://www.sciencedirect.com/science/article/pii/0021999181901455)` `[0021999181901455](http://www.sciencedirect.com/science/article/pii/0021999181901455)` . doi: `[https://doi.org/10.1016/0021-9991(81)](http://dx.doi.org/https://doi.org/10.1016/0021-9991%0x2881%0x2990145-5)` `[90145-5](http://dx.doi.org/https://doi.org/10.1016/0021-9991%0x2881%0x2990145-5)` . 2. Scardovelli R, Zaleski S. Direct numerical simulation of free-surface and interfacial flow. _Annual_ _review_ _of_ _fluid_ _mechanics_ 1999;31(1):567–603. 33 3. Gueyffier D, Li J, Nadim A, Scardovelli R, Zaleski S. Volume-of-fluid inter face tracking with smoothed surface stress methods for three-dimensional flows. _Journal_ _of_ _Computational_ _physics_ 1999;152(2):423–56. 4. Scardovelli R, Zaleski S. Analytical relations connecting linear inter faces and volume fractions in rectangular grids. _Journal_ _of_ _Computational_ _Physics_ 2000;164(1):228–37. 5. Tryggvason G, Scardovelli R, Zaleski S. Direct numerical simulations of gas–liquid multiphase flows. Cambridge University Press; 2011. 6. Agbaglah G, Delaux S, Fuster D, Hoepffner J, Josserand C, Popinet S, Ray P, Scardovelli R, Zaleski S. Parallel simulation of multiphase flows using octree adaptivity and the volume-of-fluid method. _Comptes_ _Rendus_ _Mecanique_ 2011;339(2-3):194–207. 7. Ling Y, Zaleski S, Scardovelli R. Multiscale simulation of atomization with small droplets represented by a lagrangian point-particle model. _Interna-_ _tional_ _Journal_ _of_ _Multiphase_ _Flow_ 2015;76:122–43. 8. Bn`a S, Manservisi S, Scardovelli R, Yecko P, Zaleski S. Vofi—a library to initialize the volume fraction scalar field. _Computer_ _Physics_ _Communica-_ _tions_ 2016;200:291–9. 9. Elias RN, Coutinho AL. Stabilized edge-based finite element simulation of free-surface flows. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2007;54(6-8):965–93. 10. Greaves DM. Simulation of viscous water column collapse using adapting hierarchical grids. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2006;50(6):693–711. 11. Xie Z, Pavlidis D, Salinas P, Pain CC, Matar OK. A control volume fi nite element method for three-dimensional three-phase flows. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2020;92(7):765–84. 34 12. Osher S, Sethian JA. Fronts propagating with curvature-dependent speed: Algorithms based on hamilton-jacobi formulations. _Journal_ _of_ _Computational Physics_ 1988;79(1):12–49. doi: `[https://doi.org/10.1016/](http://dx.doi.org/https://doi.org/10.1016/0021-9991%0x2888%0x2990002-2)` `[0021-9991(88)90002-2](http://dx.doi.org/https://doi.org/10.1016/0021-9991%0x2888%0x2990002-2)` . 13. Merriman B, Bence JK, Osher SJ. Motion of multiple junctions: A level set approach. _Journal_ _of_ _Computational_ _Physics_ 1994;112(2):334–63. 14. Chang YC, Hou T, Merriman B, Osher S. A level set formulation of eule rian interface capturing methods for incompressible fluid flows. _Journal_ _of_ _computational_ _Physics_ 1996;124(2):449–64. 15. Sethian JA. Level set methods, evolving interfaces in geometry, fluid me chanics comuputer vision, and materials sciences. _Cambridge_ _Monographs_ _on_ _Applied_ _and_ _Computational_ _Mathematics,_ _3_ 1996;. 16. Sethian JA. Level set methods and fast marching methods: evolving in terfaces in computational geometry, fluid mechanics, computer vision, and materials science; vol. 3. Cambridge university press; 1999. 17. Osher S, Fedkiw RP. Level set methods: an overview and some recent results. _Journal_ _of_ _Computational_ _physics_ 2001;169(2):463–502. 18. Enright D, Fedkiw R, Ferziger J, Mitchell I. A hybrid particle level set method for improved interface capturing. _Journal of Computational physics_ 2002;183(1):83–116. 19. Sethian JA, Smereka P. Level set methods for fluid interfaces. _Annual_ _review_ _of_ _fluid_ _mechanics_ 2003;35(1):341–72. 20. Osher S, Fedkiw R. Level set methods and dynamic implicit surfaces; vol. 153. Springer Science & Business Media; 2006. 21. Sussman M, Puckett EG. A coupled level set and volume-of-fluid method for computing 3d and axisymmetric incompressible two-phase flows. _Jour-_ _nal_ _of_ _Computational_ _Physics_ 2000;162(2):301–37. doi: `[https://doi.org/](http://dx.doi.org/https://doi.org/10.1006/jcph.2000.6537)` `[10.1006/jcph.2000.6537](http://dx.doi.org/https://doi.org/10.1006/jcph.2000.6537)` . 35 22. Olsson E, Kreiss G. A conservative level set method for two phase flow. _Journal_ _of_ _Computational_ _Physics_ 2005;210(1):225–46. doi: `[https://doi.](http://dx.doi.org/https://doi.org/10.1016/j.jcp.2005.04.007)` `[org/10.1016/j.jcp.2005.04.007](http://dx.doi.org/https://doi.org/10.1016/j.jcp.2005.04.007)` . 23. Olsson E, Kreiss G, Zahedi S. A conservative level set method for two phase flow ii. _Journal_ _of_ _Computational_ _Physics_ 2007;225(1):785–807. 24. Raessi M, Pitsch H. Consistent mass and momentum transport for simu lating incompressible interfacial flows with large density ratios using the level set method. _Computers_ _&_ _Fluids_ 2012;63:70 - 81. doi: `[https:](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2012.04.002)` `[//doi.org/10.1016/j.compfluid.2012.04.002](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2012.04.002)` . 25. Moghadam AM, Shafieefar M, Panahi R. Development of a high-order level set method: Compact conservative level set (ccls). _Computers_ _&_ _Fluids_ 2016;129:79 - 90. doi: `[https://doi.org/10.1016/j.compfluid.](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2016.02.002)` `[2016.02.002](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2016.02.002)` . 26. Kinzel MP, Lindau JW, Kunz RF. A multiphase level-set approach for all mach numbers. _Computers_ _&_ _Fluids_ 2018;167:1 - 16. doi: `[https://doi.](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2018.02.026)` `[org/10.1016/j.compfluid.2018.02.026](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2018.02.026)` . 27. Bahbah C, Khalloufi M, Larcher A, Mesri Y, Coupez T, Valette R, Hachem E. Conservative and adaptive level-set method for the simulation of two fluid flows. _Computers_ _&_ _Fluids_ 2019;191:104223. doi: `[https://doi.org/](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2019.06.022)` `[10.1016/j.compfluid.2019.06.022](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2019.06.022)` . 28. Raees F, van der Heul D, Vuik C. A mass-conserving level-set method for simulation of multiphase flow in geometrically complicated domains. _International Journal for Numerical Methods in Fluids_ 2016;81(7):399–425. 29. Antepara O, Balc´azar N, Oliva A. Tetrahedral adaptive mesh refinement for two-phase flows using conservative level-set method. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2020;. 30. Quezada de Luna M, Haydel Collins J, Kees CE. An unstructured finite element model for incompressible two-phase flow based on a monolithic 36 conservative level set method. _International Journal for Numerical Methods_ _in_ _Fluids_ 2020;92(9):1058–80. 31. Qian L, Wei Y. Improved thinc/sw scheme for computing incompressible two-phase flows. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2019;89(6):216–34. 32. Sato Y, Niˇceno B. A conservative local interface sharpening scheme for the constrained interpolation profile method. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2012;70(4):441–67. 33. Bourlioux A. A coupled level set and volume of fluid algorithm for tracking material interfaces. _Proceedings_ _of_ _the_ _6th_ _International_ _Symposium_ _On_ _Computational_ _Fluid_ _Dynamics_ 1995;6:15–22. 34. Ansari MR, Azadi R, Salimi E. Capturing of interface topological changes in two-phase gas–liquid flows using a coupled volume-of-fluid and level set method (voset). _Computers_ _&_ _Fluids_ 2016;125:82 - 100. doi: `[https:](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2015.09.014)` `[//doi.org/10.1016/j.compfluid.2015.09.014](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2015.09.014)` . 35. Balc´azar N, Lehmkuhl O, Jofre L, Rigola J, Oliva A. A cou pled volume-of-fluid/level-set method for simulation of two-phase flows on unstructured meshes. _Computers_ _and_ _Fluids_ 2016;124:12 - 29. URL: `[http://www.sciencedirect.com/science/article/](http://www.sciencedirect.com/science/article/pii/S0045793015003394)` `[pii/S0045793015003394](http://www.sciencedirect.com/science/article/pii/S0045793015003394)` . doi: `[https://doi.org/10.1016/j.compfluid.](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2015.10.005)` `[2015.10.005](http://dx.doi.org/https://doi.org/10.1016/j.compfluid.2015.10.005)` . 36. Albadawi A, Donoghue DB, Robinson AJ, Murray DB, Delaur´e YMC. Influence of surface tension implementation in volume of fluid and cou pled volume of fluid with level set methods for bubble growth and de tachment. _International_ _Journal_ _of_ _Multiphase_ _Flow_ 2013;53:11 - 28. doi: `[https://doi.org/10.1016/j.ijmultiphaseflow.2013.01.005](http://dx.doi.org/https://doi.org/10.1016/j.ijmultiphaseflow.2013.01.005)` . 37. Kees CE, Akkerman I, Farthing MW, Bazilevs Y. A conservative level set method suitable for variable-order approximations and unstructured 37 meshes. _J_ _Comput_ _Phys_ 2011;230(12):4536–58. URL: `[http://dx.doi.](http://dx.doi.org/10.1016/j.jcp.2011.02.030)` `[org/10.1016/j.jcp.2011.02.030](http://dx.doi.org/10.1016/j.jcp.2011.02.030)` . doi: `[10.1016/j.jcp.2011.02.030](http://dx.doi.org/10.1016/j.jcp.2011.02.030)` . 38. Lyras KG, Hanson B, Fairweather M, Heggs PJ. A coupled level set and volume of fluid method with a re-initialisation step suitable for unstruc tured meshes. _Journal_ _of_ _Computational_ _Physics_ 2020;:109224. 39. Hartmann D, Meinke M, Schr¨oder W. The constrained reinitializa tion equation for level set methods. _Journal_ _of_ _Computational_ _Physics_ 2010;229(5):1514–35. 40. Weller HG, Tabor G, Jasak H, Fureby C. A tensorial approach to com putational continuum mechanics using object-oriented techniques. _Comput_ _Phys_ 1998;12(6):620–31. URL: `[http://dx.doi.org/10.1063/1.168744](http://dx.doi.org/10.1063/1.168744)` . doi: `[10.1063/1.168744](http://dx.doi.org/10.1063/1.168744)` . 41. Crowe CT. Multiphase Flow Handbook. Mechanical and Aerospace Engi neering Series; CRC Press; 2005. ISBN 9781420040470. 42. Tsoutsanis P. Stencil selection algorithms for weno schemes on unstruc tured meshes. _Journal_ _of_ _Computational_ _Physics_ 2019;:108840. 43. Dumbser M, K¨aser M, De La Puente J. Arbitrary high-order finite volume schemes for seismic wave propagation on unstructured meshes in 2d and 3d. _Geophysical_ _Journal_ _International_ 2007;171(2):665–94. 44. Charest MR, Groth CP, Gauthier PQ. A high-order central eno finite volume scheme for three-dimensional low-speed viscous flows on unstruc tured mesh. _Communications in Computational Physics_ 2015;17(3):615–56. 45. Min C. On reinitializing level set functions. _Journal_ _of_ _computational_ _physics_ 2010;229(8):2764–72. 46. Prosperetti A, Tryggvason G. Computational Methods for Multiphase Flow. Cambridge University Press; 2009. ISBN 9780521847643. 38 47. Russo G, Smereka P. A remark on computing distance functions. _Journal_ _of_ _Computational_ _Physics_ 2000;163(1):51–67. doi: `[https://doi.org/10.](http://dx.doi.org/https://doi.org/10.1006/jcph.2000.6553)` `[1006/jcph.2000.6553](http://dx.doi.org/https://doi.org/10.1006/jcph.2000.6553)` . 48. Dianat M, Skarysz M, Garmory A. A coupled level set and volume of fluid method for automotive exterior water management applications. _International_ _Journal_ _of_ _Multiphase_ _Flow_ 2017;91:19 - 38. doi: `[https:](http://dx.doi.org/https://doi.org/10.1016/j.ijmultiphaseflow.2017.01.008)` `[//doi.org/10.1016/j.ijmultiphaseflow.2017.01.008](http://dx.doi.org/https://doi.org/10.1016/j.ijmultiphaseflow.2017.01.008)` . 49. Kunkelmann C, Stephan P. Modification and extension of a standard volume-of-fluid solver for simulating boiling heat transfer. ECCOMAS CFD2010; 2010. ISBN 9780521847643. 50. Vukˇcevi´c V, Jasak H, Malenica S. <sup>ˇ</sup> Decomposition model for naval hydro dynamic applications, part i: Computational method. _Ocean_ _Engineering_ 2016;121:37–46. 51. Brackbill JU, Kothe DB, Zemach C. A continuum method for modeling surface tension. _Journal_ _of_ _computational_ _physics_ 1992;100(2):335–54. 52. LeVeque RJ. High-resolution conservative algorithms for advection in incompressible flow. _SIAM_ _J_ _Numer_ _Anal_ 1996;33(2):627–65. URL: `[http://dx.doi.org/10.1137/0733033](http://dx.doi.org/10.1137/0733033)` . doi: `[10.1137/0733033](http://dx.doi.org/10.1137/0733033)` . 53. Yokoi K. Efficient implementation of thinc scheme: a simple and practical smoothed vof algorithm. _Journal_ _of_ _Computational_ _Physics_ 2007;226(2):1985–2002. 54. Qian L, Wei Y, Xiao F. Coupled thinc and level set method: A conservative interface capturing scheme with high-order surface representations. _Journal_ _of_ _Computational_ _Physics_ 2018;373:284–303. 55. Jemison M, Loch E, Sussman M, Shashkov M, Arienti M, Ohta M, Wang Y. A coupled level set-moment of fluid method for incompressible two-phase flows. _Journal_ _of_ _Scientific_ _Computing_ 2013;54(2-3):454–91. 39 56. Ningegowda B, Premachandran B. A coupled level set and volume of fluid method with multi-directional advection algorithms for two-phase flows with and without phase change. _International_ _Journal_ _of_ _Heat_ _and_ _Mass_ _Transfer_ 2014;79:532–50. 57. Singh NK, Premachandran B. A coupled level set and volume of fluid method on unstructured grids for the direct numerical simulations of two phase flows including phase change. _International_ _Journal_ _of_ _Heat_ _and_ _Mass_ _Transfer_ 2018;122:182 - 203. URL: `[http://www.sciencedirect.](http://www.sciencedirect.com/science/article/pii/S0017931017341194)` `[com/science/article/pii/S0017931017341194](http://www.sciencedirect.com/science/article/pii/S0017931017341194)` . doi: `[https://doi.org/](http://dx.doi.org/https://doi.org/10.1016/j.ijheatmasstransfer.2018.01.091)` `[10.1016/j.ijheatmasstransfer.2018.01.091](http://dx.doi.org/https://doi.org/10.1016/j.ijheatmasstransfer.2018.01.091)` . 58. Rider WJ, Kothe DB. Reconstructing volume tracking. _Journal_ _of_ _compu-_ _tational_ _physics_ 1998;141(2):112–52. 59. Aulisa E, Manservisi S, Scardovelli R, Zaleski S. A geometrical area preserving volume-of-fluid advection method. _Journal_ _of_ _Computational_ _Physics_ 2003;192(1):355–64. 60. Deshpande SS, Anumolu L, Trujillo MF. Evaluating the performance of the two-phase flow solver interfoam. _Computational_ _Science_ _&_ _Discovery_ 2012;5(1):014016. 61. Weller H. A new approach to vof-based interface capturing methods for incompressible and compressible flow. _OpenCFD Ltd technical report_ 2008;. 62. Roenby J, Bredmose H, Jasak H. A computational method for sharp in terface advection. _Royal_ _Society_ _open_ _science_ 2016;. 63. Hern´andez J, L´opez J, G´omez P, Zanzi C, Faura F. A new volume of fluid method in three dimensions—part i: Multidimensional advection method with face-matched flux polyhedra. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2008;58(8):897–921. 64. Zalesak ST. Fully multidimensional flux-corrected transport algorithms for fluids. _Journal_ _of_ _computational_ _physics_ 1979;31(3):335–62. 40 65. Hysing SR, Turek S, Kuzmin D, Parolini N, Burman E, Ganesan S, To biska L. Quantitative benchmark computations of two-dimensional bub ble dynamics. _International_ _Journal_ _for_ _Numerical_ _Methods_ _in_ _Fluids_ 2009;60(11):1259–88. 66. Hysing S. Mixed element fem level set method for numerical simulation of immiscible fluids. _Journal_ _of_ _Computational_ _Physics_ 2012;231(6):2449–65. 67. Issa R, Gosman AD, Watkins AP. The computation of compressible and incompressible recirculating flows by a non-iterative implicit scheme. _J_ _Comput_ _Phys_ 1986;62(1):66–82. doi: `[10.1016/0021-9991(86)90100-2](http://dx.doi.org/10.1016/0021-9991%0x2886%0x2990100-2)` . 41

섹션 본문 81문단 · 26,085자

(제목 없음)

1This paper presents a finite volume method for simulating two-phase flows using a level set approach coupled with volume of fluid method capable of simulating sharp fluid interfaces. The efficiency of the method is a result of the fact that * Corresponding author

2the interface is calculated in order to satisfy mass conservation with no explicit interface reconstruction step and the mass fluxes across cell-faces are corrected to respect the recovered volume fraction. The mass-conservation correction step proposed here, is utilised using an iterative algorithm which solves a reactiondiffusion equation for the mass correction of the level set. The re-sharpened volume fraction is used for the new volumetric fluxes at each cell which are calculated through the proposed algorithm that guarantees that they satisfy mass conservation. The algorithm is not limited in representing the interface with the 0.5-contour and is applicable for arbitrary polyhedral cells. Good accuracy and mass conservation are achieved when compared to other conservative approaches.

3Keywords: level set, volume of fluid, mass conservation, two-phase flow, finite volume method 1. Introduction

Scope

4Three-dimensional multiphase flows occur in multiple problems in biomedical, automotive, chemical and nuclear industries among others. In particular, the accurate numerical simulation of two-phase flows of two immiscible fluids faces the problem of resolving moving interfaces that deform under the influence of various forces such as surface tension and gravitational forces. Two of the most popular implicit methods for capturing the interface in interfacial flows that involve large topological changes are the volume of fluid (VOF) method 1,2,3,4,5,6,7,8,9,10,11 and the level set (LS) method 12,13,14,15,16,17,18,19,20 . One of the most attractive features of both methods is their ability to naturally adapt to any topological changes and the calculation of curvature can be implemented through simple formulations. LS methods offer a powerful tool for capturing the interface for various flow regimes including dispersed and bubbly flows. LS is particularly efficient in describing interfacial dynamics involving interfaces breaking up (or colliding) automatically. In contrast to VOF, mass loss in LS can be relatively high. This might be proven catastrophic for especially for long simulations where the error in mass conservation accumulates.

5Various studies have proposed different methodologies for improving mass conservation of the LS method 21,22,23,18,24,25,26,27,28,29,30,31,32 . The particle level set (PLS) in 18 is a semi-lagrangian level set method based on the advection of particles at both sides of the interface. Significant improvements were reported for mass conservation in the conservative level set method in 22,23 . The authors, in addition to the advection of the level set function ψ, implemented a re-initialisation step for the cells near the interface using the normal vector at the interface, n using a compressive flux ψ(1 − ψ)n. This correction step is applied for some iterations in steady-state ψ for re-sharpening the interface. The results in both two and three-dimensional tests showed improvements in the accuracy of interface capturing. The coupled-level-set-volume-of-fluid (CLSVOF) method of 21 was developed considering the advection of the volume fraction and coupling it with the advection of the level set function 33 . This is a coupled VOF-LS approach in which the interface normals, calculated from the level set, are employed for the interface reconstruction in the VOF advection. Based on this approach, many other variations have been proposed of coupling both VOF and LS making use of the advantages of both methods. The proposed CLSVOF methods rely on either geometrical VOF methods such as piecewise-linear interface construction/calculation (PLIC) 7,34,35 or algebraic methods 36 . Two of the most commonly met challenges for coupling VOF and LS are the interface reconstruction in VOF and the mapping algorithm to the level set field so that it conserves mass in an efficient setting suitable for different types of meshes.

6Both tasks are required to accurately advect the volume fraction and level set respectively.

Objectives

7In this paper a conservative level set method coupled with VOF is presented for simulating three-dimensional interfaces of two immiscible fluids in the framework of finite volume method. The LS field is advected first solving the level set equation and then is corrected in two steps: a mass-conservation step and an algorithm for correcting the mass fluxes.

8Our approach solves a reaction-diffusion equation for finding the corrected ψ that satisfies mass conservation using the obtained volume fraction from VOF.

9In this way the interface can be located at different levels and is not limited to only the 0.5 iso-surface. A novel algorithm for calculating the mass fluxes based on this level set is described. The new fluxes across all the mesh faces are required for the convection term for the velocity field and solution of the set of the discretised momentum equations. The proposed implementation provides an accurate calculation for the new fluxes and can be used for meshes with arbitrary number of faces and different finite volume methods regardless the re-initialisation correction they use. This novel algorithm gives a level set function that leads to a smoothed volume fraction which satisfies mass conservation. Based on this volume fraction, the volumetric fluxes at each face and all the mixture properties are calculated. Then, the new level set is used for accurately calculating the interface curvature and the surface tension force in the momentum equation.

10One difference of this approach with other coupled level set-VOF methods is that the interface is calculated in order to satisfy the mass conservation with no explicit interface reconstruction step and then corrects the mass fluxes across cell-faces accordingly. Although 37 have shown that such an interface advection might be efficient in finite element methods, this approach has garnered no attention from other level set methods implemented in the context of finite volume methods and has not prompted any further testing especially in opensource finite volume CFD codes since its publication. Such an approach would require a proper strategy for calculating fluxes to advect the updated velocity field through the cell faces.

11Here, we address this issue and choose to implement this approach in the context of finite volume method. Our approach also demonstrates at least two times better accuracy compared to the ILSVOF method which has previously reported lower error than the isoAdvector in 38 . We also show that presented method can improve the standard OpenFOAM solver interFoam almost by an order of magnitude for the tests here. Most interestingly, we show here that with this mass-conservation correction step for advecting level-set using a simple Runge-Kutta re-initialisation with the idea of 37 , and the flux update algorithm, one might generally be able to avoid using dedicated re-initialisation schemes for re-sharpening level set as in 38,39 . The latter are generally difficult to implement and might result to slower calculations if proper cell-search algorithms are not used for re-distancing. Here, a simple second-order scheme is used for the redistancing of level set which, when deploying the proposed algorithm leads to better accuracy. The solver is developed for various flow regimes that involve liquid/gas or liquid/liquid interface, and is implemented in the framework of the open source CFD code OpenFOAM 40 .

12Our work, shows an accuracy which is close or better than other PLIC-VOF methods and coupled level-set-VOF methods, including in our previous work in ILSVOF 38 which we extend with better accuracy as shown in the results.

13We improve the accuracy of the ILSVOF by using a fundamentally different algorithm of the level set advection: In 38 we simply do not solve any equation for level-set and use a specific second-order re-initialisation scheme to compensate for interface smearing.

14The methodology is tested with different test for fluid/fluid interfaces undergoing under strong deformation, for cases where interface shape is complex including corners and for flows that gravitational force is significant. Different meshes are used for assessing the capability of the algorithm to capture the interface. The results for both mass conservation and accuracy showed that the method can accurately simulate three-dimensional two-phase flows with complicated topologies.

Marker function for level set

15The level set function is used here to describe the interface dynamics of two immiscible fluids, fluid 1 and fluid 2. In standard level set methods, the level set function ψ is defined to be a signed distance function calculated from the distance at the interface, Γ that separates the two fluids

16A given point x in the domain may have either positive or negative distance which defines whether it belongs in fluid 1 or fluid 2. The interface that separates the two fluids is then the set of points that have a zero-distance (zero-level).

17A step (Heaviside) function H(ψ, t) is used to calculate the mixture properties that is equal to 1 if ψ > 0 and equal to 0 if ψ < 0. The total mass at a given time step is equal to V ρ i H(ψ)dV where ρ i is the density of the fluid i.

18The mass conservation requires the following to be mass conservative for incompressible flows the mass is no-longer equal to the mass at time t=0 e.g.

19The method presented here aims to finding the appropriate value of ψ for which the interfacial values of H(ψ, t) approximates the position of the interface exactly and satisfies the conservation property. This new corrected value will be denoted withH(ψ, t) e.g. we want to find an appropriate value ψ such that

20Here, choosing a proper ψ that is corrected with a method that guarantees the correct calculation of the face fluxes at each cell and the surface tension force in the momentum equation. A constraint-step is performed for satisfying volume fraction advection at each iteration while preserving its sharp interface with a second correction step.

Advection and correction of level set function

21The algorithm starts by tracking the volume occupied by one fluid (fluid 1) inside a computational cell P which contains fluids 1 and 2. In two-phase flows the void fraction χ is a function of the local density and the individual densities, ρ 1 , ρ 2 at the local pressure, χ = (ρ − ρ 1 )/(ρ 1 − ρ 2 ). This corresponds to the volume percentage inside each cell. In an arbitrary shaped cell that contains a dispersed flow e.g. bubbles, particles or droplets in a carrier or continuous phase, the volume fraction is defined as 41

22where n f is a unit vector defined for each on of the N f faces f for cell P , such that each inner product with the area vector S points outwards the cell. Eq. (6) is solved here here for obtaining the volume fraction.

23The level set function according to Eq.1 is a distance function that is defined wherever an interface exists. The distance function can be advected using

24where u is the velocity field. The convective term in the level set equation is integrated over a control volume V P , and using Gauss theorem for converting the volume integral to a surface integral Eq. (7) becomes

25where ψ f is the interpolated ψ at the face f of cell P and F f = S f · u f is the face flux, with S f being the face area vector normal to the face.

26For this study we use a high-order interpolation scheme for evaluating the fluxes at cell faces from the cell-averaged ψ. We implement a third-order weighted essentially non-oscillatory (WENO) scheme which is used for the advection of the level set in arbitrary polyhedral cells. The main idea is to use a polynomial representation for reaching high-order accuracy for interpolating from the cell centres of each volume. Writing the level set equation as a nonlinear hyperbolic conservation law we calculate the fluxes solving the Riemann problem 42 . Integrating over the volume V with surface S Eq. (7) becomes

27where < ψ > is the cell-averaged ψ in steady-state and n is the normal vector of the surface ∂V surrounding V . The cell-averaged value at x is calculated as

28where the polynomial g(x) of the level set is calculated based on a polynomial basis function as

29where c i are the degrees of freedom used and B i are the basis functions calculated for each volume V P expressed via the orthogonal polynomial basis functions L i (x) using Legendre polynomials as

30Eq.(9) can be written with respect to the surface integrals over all faces f of the cell as

31where F n f is the flux into the direction of the normal vector of each face f from the total number of faces N f . This is evaluated from the fluxes in the cells that

32share each face f , ψ L , and ψ R . We solve the Riemann problem interpolating both ψ L , and ψ R with polynomials via the expressions obtained through Eq.(11).

33More details for the implemented WENO stencil can be found in 43,44 Solving the transport equation for ψ yields an updated value for level set function that might lose its smooth profile and might no longer remain a signed distance function. Consequently, it needs to be re-initialised so that the Eikonal equation is satisfied, |∇ψ| − 1 = 0. This is a re-sharpening iterative procedure that uses as an initial guess the value obtained from Eq. (1) denoted with ψ 0 .

34The gradient magnitude in the Eikonal equation is calculated with the Godunov

35Hamiltonian G according to

36The

37where ∆ζ − , ∆ζ + are the distances of the cell centre P with the cell centre of the upwind and downwind cells respectively. The Hamiltonian-Godunov term is then calculated as

38Here, the terms a x − , a x + , a y − , a y + , a z − , a z + for each direction are calculated using the face normal vector of the level set. For instance at the x-direction, a x − , a x + are calculated using the unit vector ∆x N P of x N P . If ψ < 0 and

39x N P · ∆x N P < 0 or ψ > 0 and x N P · ∆x N P > 0 then

40If ψ < 0 and x N P · ∆x N P > 0 or ψ > 0 and x N P · ∆x N P < 0 then

41where the normal gradient of the level set function ∇ ⊥ f is calculated for all the faces f based on the orientation of the normal at the face. In general

42where ∇(ψ) f is the gradient of ψ that is interpolated at the face f and α corr is calculated from the angle θ between the cell centres and the normal face as cos −1 (θ). The following second order Runge-Kutta method is solved for a time-step τ 45

43Eq. (20) conserved. This means tha the new level set is now a signed distance function but it does not satisfy the condition in Eq. (4) and thus will lead to mass loss 22 .

44In order to minimise this induced error, a correctionψ is added toψ d as the proposed in 37 . This second correction step is performed next for choosing the appropriate ψ for a sharp profile that conserves mass. The following reactiondiffusion equation is solved

45where λ is a parameter that is a function of the cell size and is generally taken

46where Ω is the volume of the cell. Eq. (21) is solved with an inhouse implicit solver with the laplacian term using an unbounded, second-order conservative scheme using linear interpolation. The resultingψ value leads to the final level set value

47The new updated value satisfies the mass conservation since H(ψ n+1 ) = α allowing the accurate curvature calculation which is included in the surface tension force in momentum equation in Eq. (25) and Eq. (31). The latter step is extremely important since it avoids the assumption that the interface position is located at the iso-surface contour α-0.5 (as in 49 36 , 48 , 38

Mass-conservation correction algorithm & flux calculation

48The mass correction is the most important step of the algorithm here and makes sure that the advected level set respects continuity equation. Since we use a finite volume approach it is vital to use an algorithm that successfully calculates the mass fluxes across all faces of the mesh cells and is applicable for different types of polyhedral meshes. In this study we developed an approach that deploys the smoothed volume fraction and calculates the fluxes in each

49face. An overview of the steps used in the solver to calculate the interface is shown in Fig. 1.

50The mass-conservation algorithm is utilised in one or more cycles (ψ-subcycles). These are:

511. First the fluxes are averaged based on the current and previous time-steps.

52Then the in-house reaction-diffusion solver is called that calculates the correction for level set,ψ based on the Eq. (21). For the evaluation of all the flux terms, this solver uses a third-order WENO (weighted essentially non-oscillatory) interpolation scheme which is implemented in the solver for the presented approach in this paper.

532. The signed distance function is corrected calculating ψ n+1 and updating boundary conditions.

543. The smoothed volume fraction is calculated based on the Heaviside expression. A smeared Heaviside function, H, is used for numerical robustness, 50 defined as

Incompressible two-phase flow equations

55The governing incompressible Navier-Stokes equations for two-phase flow with surface tension are given by

56where

57The surface tension force acting on the interface is calculated as 51

58The Dirac function δ() is used for smoothing the surface tension force effect at the interface. Depending on the interface thickness δ() is evaluated from 36,38

59The curvature defined as κ = −∇ · ψ κ , where ψ κ = ∇ψ/|∇ψ| and the gradient can be discretised (since ψ is a continuous function) and the surface tension force is calculated at the cell faces using

60where (σκ) f and δ f are interpolated at the faces of the cell.

Numerical tests and discussions

61In this section, the proposed methodology is evaluated for capturing the interface between two immiscible fluids with some widely used advection benchmark tests. The rotating disc and sphere tests were performed to assess the capability of the method to capture the interface of rotating filaments under a non-uniform velocity field. Zalesak's slotted disc test is presented next, and the motion of a rising bubble in two and three dimensions is presented as an example of a flow where surface tension force plays an important role. In order to quantify the accuracy of the numerical results, the shape preservation error E α is calculated, defined as The error

62the sum considers all cells in the domain with numerical solution α i . The exact solution α i,exact is obtained from the position of the disc at t=0s. The advection error is also quantified using

Two-dimensional vortex deformation transport

63In this test an initially still disc filled with liquid starts to rotate under the influence of a velocity field that changes through time. The disc progressively deforms and streches until it becomes a ligament. After reaching its maximum deformation, the flow reverses, which causes the ligament to return back to its original shape. This classical numerical test of 52 demonstrates the capability of the numerical method to capture highly deformed interfaces. The disc is placed in a two-dimensional domain [0, 1] 2 and at t=0s has radius R with the disc centre at (x, y) = (0.5, 0.75). The velocity field is given by

64v(x, y, t) = sin(2πx)sin 2 (πy)cos πt T

65For this test, the simulation lasted for one period, T=8 and the Courant number Table 1.

66The numerical results for the different grids at t=0, T/2, T are shown in Fig. 2 for the smoothed volume fraction at t=T/2 and 0.5-contour of the field at t=0, T.

67The mesh resolution plays an important role for capturing the interface and in all cases it plays a major role to the ligament fragmentation due to the strong deformation. The droplet formation is more evident for coarse meshes at t=T/2, with a significant improvement for the finer meshes where the local cell size becomes closer to the local thickness of the stretched ligament.

68The results for shape preservation also illustrate how the mesh resolution influences the in Table 1 The results for the structured mesh are also compared with other numerical methods for either VOF or coupled methods with level set in Table 2. The results show that with this approach, one might generally be able to avoid using dedicated re-initialisation schemes for re-sharpening level set as in 39,38 .

69The mass conservation error time history is shown in Fig. 3. Overall, the proposed method demonstrated reasonably low mass conservation error for the structured mesh tests. Mass conservation is based on the Eq.21 with the parameter λ being here equal to 50% of the local mesh size.

Three-dimensional vortex deformation

70The methodology is assessed next for three-dimensional interfaces under- The liquid sphere is transported by a time-dependent velocity field given by u(x, y, z, t) = 2sin 2 (πx)sin(2πy)sin(2πz)cos πt T v(x, y, z, t) = −sin(2πx)sin 2 (πy)sin(2πz)cos πt T w(x, y, z, t) = −sin(2πx)sin(2πy)sin 2 (πz)cos πt T

71The period of the simulation was T = 3s and the sphere was stretched until t=T/2s when the flow reversed unstretching the sphere until t=T. Three different levels of refinement were used for the tests for structured and unstructured meshes. The grid resolutions indicated as coarse, medium and fine were 32 3 , 64 3 and 128 3 . For the unstructured meshes, the resolutions were similar and are listed in Table 3. Table 3 for the different meshes. The error is lower for the structured grids in general. Calculating the gradient of ψ for tetrahedral meshes is challenging and requires high order schemes when solving the level set equation. Furthermore, some algorithms for correcting the gradient in the vicinity of the interface for tetrahedral meshes can be used to properly calculate the re-initialised level set function 38 .

72The results for L 1 (α) are also shown in Table 4 for comparisons with other numerical methods using hexahedral meshes. The error is significantly lower than the results obtained in 60 using the solver interFoam of 61 . The later uses is an algebraic VOF method that has been previously shown to suffer from diffusion in the 3D rotating disc test 62 . The solver interFoam is also limited to smaller Courant numbers for stability reasons (no more than 0.1 is preferred).

73The results were better for the different grids compared to the RK-3D method of 63 using PLIC. Compared to the CLSVOF method of 54 , the error was lower than the ones obtained with THINC-LS (P1) and the THINC-LS (P4). Overall, the method is proven to be competitive to the other geometrical VOF methods having the advantage of no interface reconstruction regardless the mesh and shows a significant improvement in accuracy with 50-100% lower error for most cases with the presented formulation.

Zalesak's disc

74This case tests the capability of the proposed method to transport a notched disc by a rotating vortex. The test has been proposed by Zalesak 64 and is widely

75The values of E r calculated using different meshes are shown in Table 5. The results were comparable to other VOF geometrical approaches using the THINC/LS scheme with high-order surface polynomials and were generally more accurate than the second-order THINC-LS (P2) and the forth-order THINC-LS (P4) schemes with more than 50% lower error. The difference with the solver inter-Foam with the algebraic method in 60 is higher and the error of our method here has an order of magnitude less error.

Two-dimensional rising bubble

76In this test a gaseous bubble with volume Ω 1 is placed in a column filled with a heavier fluid of volume Ω 2 and rises under the effect of gravity. The bubble rises gradually at the top of the domain and deforms changing shape. The test has been proposed by 65 who presented quantitative benchmark quantities in terms of the mass-centre of the bubble, the rise velocity and its circularity.

77Initially at t=0s, the bubble is placed at (0.5, 0.5) in a rectangular domain [2d, 4d] as shown in Fig.9 and has diameter d = 0. Table 6. Different grid resolutions were used for the study: ∆x/40, ∆x/80, ∆x/160. The Reynolds (Re = ρ 2 U T d/µ 2 ) and Eötvös numbers (Eo = gd 2 ∆ρ 2 /σ) were Re=35 and Eo=10 for this study. Here, U T = √ gd is the gravitational velocity. The centre of mass (y c ), the rise velocity of the bubble (v c ) and its circularity (sphericity in 3D) (ζ) were defined by 65 as

78where Π is the perimeter of the bubble, y the coordinate value and v is the vertical velocity. The benchmark quantities are shown in Fig.10 The error in Reynolds number and circularity is calculated based on the finest mesh (exact). These are defined as E Re = (Re − Re exact )/Re exact and E ζ = (ζ − ζ exact )/ζ exact . Table 7 shows the values for E Re and E ζ compared to the results of the CLSVOF method of 35

Conclusions

79A conservative level set approach with a correction step using volume of fluid method is presented for simulating two-phase flows in the finite volume framework. The interface capturing is utilised using a resharpening method that conserves mass avoiding smearing of the interface. The mass fluxes are calculated based on the new smoothed volume fraction that is corrected. The proposed method supports different types of grids and allows for various options for choosing the VOF advection. We show here that with this mass-conservation method for advecting level-set using a simple re-initialisation and the flux update algorithm, one might generally be able to avoid using dedicated re-initialisation schemes for re-sharpening level set.

80The numerical results for highly deformed interfaces with moving and changing topology showed reasonable mass conservation error and accuracy. The mass loss remained low for long time simulations due to the mass-correction step based on the coupling with the volume of fluid method. Based on the numerical tests, the methodology can be used for accurately simulating flows with immiscible fluids with surface tension and flows with strong interface deformations.

81More tests for improving the calculation of the level set function during the re-initialisation could be used considering algorithms that guarantee at least second-order accuracy for the re-sharpening of the level set regardless of the mesh type. The method uses some predefined parameters that depend on the thickness of the interface and a sensitivity analysis could provide more information for its impact of the correction of ψ.

참고문헌 68건

  1. Multiphase Flow Handbook CRC Press eBooks · Informa · 2016 10.1201/9781315371924
  2. Level set methods and fast marching methods : evolving interfaces in computational geometry, fluid mechanics, computer vision, and materials science Cambridge University Press eBooks · Cambridge University Press · 1999
  3. Multiscale simulation of atomization with small droplets represented by a Lagrangian point-particle model International Journal of Multiphase Flow · Elsevier BV · 2015 10.1016/j.ijmultiphaseflow.2015.07.002
  4. Computational Methods for Multiphase Flow Cambridge University Press eBooks · Cambridge University Press · 2007 10.1017/cbo9780511607486
  5. A conservative local interface sharpening scheme for the constrained interpolation profile method International Journal for Numerical Methods in Fluids · Wiley · 2011 10.1002/fld.2695
  6. The computation of compressible and incompressible recirculating flows by a non-iterative implicit scheme Journal of Computational Physics · Elsevier BV · 1986 10.1016/0021-9991(86)90100-2
  7. Evaluating the performance of the two-phase flow solver interFoam Computational Science & Discovery · IOP Publishing · 2012 10.1088/1749-4699/5/1/014016
  8. Direct Numerical Simulations of Gas–Liquid Multiphase Flows 2001 10.1017/cbo9780511975264
  9. Analytical Relations Connecting Linear Interfaces and Volume Fractions in Rectangular Grids Journal of Computational Physics · Elsevier BV · 2000 10.1006/jcph.2000.6567
  10. Fully multidimensional flux-corrected transport algorithms for fluids Journal of Computational Physics · Elsevier BV · 1979 10.1016/0021-9991(79)90051-2
  11. A geometrical area-preserving Volume-of-Fluid advection method Journal of Computational Physics · Elsevier BV · 2003 10.1016/j.jcp.2003.07.003
  12. Fronts propagating with curvature-dependent speed: Algorithms based on Hamilton-Jacobi formulations Journal of Computational Physics · Elsevier BV · 1988 10.1016/0021-9991(88)90002-2
  13. Level Set Methods: An Overview and Some Recent Results Journal of Computational Physics · Elsevier BV · 2001 10.1006/jcph.2000.6636
  14. Efficient implementation of THINC scheme: A simple and practical smoothed VOF algorithm Journal of Computational Physics · Elsevier BV · 2007 10.1016/j.jcp.2007.06.020
  15. Volume-of-Fluid Interface Tracking with Smoothed Surface Stress Methods for Three-Dimensional Flows Journal of Computational Physics · Elsevier BV · 1999 10.1006/jcph.1998.6168
  16. High-Resolution Conservative Algorithms for Advection in Incompressible Flow SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 1996 10.1137/0733033
  17. Reconstructing Volume Tracking Journal of Computational Physics · Elsevier BV · 1998 10.1006/jcph.1998.5906
  18. Influence of surface tension implementation in Volume of Fluid and coupled Volume of Fluid with Level Set methods for bubble growth and detachment International Journal of Multiphase Flow · Elsevier BV · 2013 10.1016/j.ijmultiphaseflow.2013.01.005
  19. Arbitrary high-order finite volume schemes for seismic wave propagation on unstructured meshes in 2D and 3D Geophysical Journal International · Oxford University Press · 2007 10.1111/j.1365-246x.2007.03421.x
  20. Volume of fluid (VOF) method for the dynamics of free boundaries Journal of Computational Physics · Elsevier BV · 1981 10.1016/0021-9991(81)90145-5
  21. A Level Set Formulation of Eulerian Interface Capturing Methods for Incompressible Fluid Flows Journal of Computational Physics · Elsevier BV · 1996 10.1006/jcph.1996.0072
  22. A Coupled Level Set-Moment of Fluid Method for Incompressible Two-Phase Flows Journal of Scientific Computing · Springer Science+Business Media · 2012 10.1007/s10915-012-9614-7
  23. A Coupled Level Set and Volume-of-Fluid Method for Computing 3D and Axisymmetric Incompressible Two-Phase Flows Journal of Computational Physics · Elsevier BV · 2000 10.1006/jcph.2000.6537
  24. A conservative level set method suitable for variable-order approximations and unstructured meshes Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.02.030
  25. Motion of Multiple Junctions: A Level Set Approach Journal of Computational Physics · Elsevier BV · 1994 10.1006/jcph.1994.1105
  26. A Coupled Level Set and Volume of Fluid method with multi-directional advection algorithms for two-phase flows with and without phase change International Journal of Heat and Mass Transfer · Elsevier BV · 2014 10.1016/j.ijheatmasstransfer.2014.08.039
  27. Direct numerical simulations of gas/liquid multiphase flows Fluid Dynamics Research · IOP Publishing · 2006 10.1016/j.fluiddyn.2005.08.006
  28. The constrained reinitialization equation for level set methods Journal of Computational Physics · Elsevier BV · 2009 10.1016/j.jcp.2009.10.042
  29. A Hybrid Particle Level Set Method for Improved Interface Capturing Journal of Computational Physics · Elsevier BV · 2002 10.1006/jcph.2002.7166
  30. A Remark on Computing Distance Functions Journal of Computational Physics · Elsevier BV · 2000 10.1006/jcph.2000.6553
  31. A continuum method for modeling surface tension Journal of Computational Physics · Elsevier BV · 1992 10.1016/0021-9991(92)90240-y
  32. Level Set Methods and Dynamic Implicit Surfaces Applied mathematical sciences · Springer Nature · 2003 10.1007/b98879
  33. Consistent mass and momentum transport for simulating incompressible interfacial flows with large density ratios using the level set method Computers & Fluids · Elsevier BV · 2012 10.1016/j.compfluid.2012.04.002
  34. Quantitative benchmark computations of two‐dimensional bubble dynamics International Journal for Numerical Methods in Fluids · Wiley · 2008 10.1002/fld.1934
  35. A tensorial approach to computational continuum mechanics using object-oriented techniques Computers in Physics · American Institute of Physics · 1998 10.1063/1.168744
  36. On reinitializing level set functions Journal of Computational Physics · Elsevier BV · 2010 10.1016/j.jcp.2009.12.032
  37. L<scp>EVEL</scp> S<scp>ET</scp> M<scp>ETHODS FOR</scp> F<scp>LUID</scp> I<scp>NTERFACES</scp> Annual Review of Fluid Mechanics · Annual Reviews · 2002 10.1146/annurev.fluid.35.101101.161105
  38. A new volume of fluid method in three dimensions—Part I: Multidimensional advection method with face‐matched flux polyhedra International Journal for Numerical Methods in Fluids · Wiley · 2008 10.1002/fld.1776
  39. A conservative level set method for two phase flow Journal of Computational Physics · Elsevier BV · 2005 10.1016/j.jcp.2005.04.007
  40. A mass‐conserving level‐set method for simulation of multiphase flow in geometrically complicated domains International Journal for Numerical Methods in Fluids · Wiley · 2015 10.1002/fld.4188
  41. Parallel simulation of multiphase flows using octree adaptivity and the volume-of-fluid method Comptes Rendus Mécanique · Elsevier BV · 2011 10.1016/j.crme.2010.12.006
  42. Stabilized edge‐based finite element simulation of free‐surface flows International Journal for Numerical Methods in Fluids · Wiley · 2007 10.1002/fld.1475
  43. DIRECT NUMERICAL SIMULATION OF FREE-SURFACE AND INTERFACIAL FLOW Annual Review of Fluid Mechanics · Annual Reviews · 1999 10.1146/annurev.fluid.31.1.567
  44. Simulation of viscous water column collapse using adapting hierarchical grids International Journal for Numerical Methods in Fluids · Wiley · 2005 10.1002/fld.1073
  45. Mixed element FEM level set method for numerical simulation of immiscible fluids Journal of Computational Physics · Elsevier BV · 2011 10.1016/j.jcp.2011.11.035
  46. Vofi — A library to initialize the volume fraction scalar field Computer Physics Communications · Elsevier BV · 2015 10.1016/j.cpc.2015.10.026
  47. Capturing of interface topological changes in two-phase gas–liquid flows using a coupled volume-of-fluid and level-set method (VOSET) Computers & Fluids · Elsevier BV · 2015 10.1016/j.compfluid.2015.09.014
  48. A coupled volume-of-fluid/level-set method for simulation of two-phase flows on unstructured meshes Computers & Fluids · Elsevier BV · 2015 10.1016/j.compfluid.2015.10.005
  49. A computational method for sharp interface advection Royal Society Open Science · Royal Society · 2016 10.1098/rsos.160405
  50. Development of a high-order level set method: Compact Conservative Level Set (CCLS) Computers & Fluids · Elsevier BV · 2016 10.1016/j.compfluid.2016.02.002
  51. A High-Order Central ENO Finite-Volume Scheme for Three-Dimensional Low-Speed Viscous Flows on Unstructured Mesh Communications in Computational Physics · Cambridge University Press · 2015 10.4208/cicp.091013.281114a
  52. Decomposition model for naval hydrodynamic applications, Part I: Computational method Ocean Engineering · Elsevier BV · 2016 10.1016/j.oceaneng.2016.05.022
  53. A Coupled Level Set and Volume of Fluid method for automotive exterior water management applications International Journal of Multiphase Flow · Elsevier BV · 2017 10.1016/j.ijmultiphaseflow.2017.01.008
  54. Coupled THINC and level set method: A conservative interface capturing scheme with high-order surface representations Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.06.074
  55. A multiphase level-set approach for all-Mach numbers Computers & Fluids · Elsevier BV · 2018 10.1016/j.compfluid.2018.02.026
  56. A coupled level set and volume of fluid method on unstructured grids for the direct numerical simulations of two-phase flows including phase change International Journal of Heat and Mass Transfer · Elsevier BV · 2018 10.1016/j.ijheatmasstransfer.2018.01.091
  57. Improved THINC/SW scheme for computing incompressible two‐phase flows International Journal for Numerical Methods in Fluids · Wiley · 2018 10.1002/fld.4690
  58. Conservative and adaptive level-set method for the simulation of two-fluid flows Computers & Fluids · Elsevier BV · 2019 10.1016/j.compfluid.2019.06.022
  59. Stencil selection algorithms for WENO schemes on unstructured meshes Journal of Computational Physics X · Elsevier BV · 2019 10.1016/j.jcpx.2019.100037
  60. A coupled level set and volume of fluid method with a re-initialisation step suitable for unstructured meshes Journal of Computational Physics · Elsevier BV · 2020 10.1016/j.jcp.2019.109224
  61. A control volume finite element method for three‐dimensional three‐phase flows International Journal for Numerical Methods in Fluids · Wiley · 2020 10.1002/fld.4805
  62. An unstructured finite element model for incompressible two-phase flow based on a monolithic conservative level set method King Abdullah University of Science and Technology Repository (King Abdullah University of Science and Technology) · King Abdullah University of Science and Technology · 2020 10.1002/fld.4817
  63. Tetrahedral adaptive mesh refinement for two‐phase flows using conservative level‐set method International Journal for Numerical Methods in Fluids · Wiley · 2020 10.1002/fld.4893
  64. A computational method for sharp interface advection Royal Society Open Science · Royal Society · 2016 10.1098/rsos.160405
  65. Multiphase Flow Handbook CRC Press eBooks · Informa · 2005 10.1201/9781420040470
  66. Level Set Methods and Dynamic Implicit Surfaces Applied Mechanics Reviews · American Society of Mechanical Engineers · 2004 10.1115/1.1760520
  67. A conservative level set method for two phase flow II Journal of Computational Physics · Elsevier BV · 2007 10.1016/j.jcp.2006.12.027
  68. Deleted Work 1955